Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/ten-cats-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@commencis/cli': patch
---

chore(deps): update dependency @commencis/eslint-config to v2
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"lint:check:types": "tsc --noEmit",
"lint:check:js": "eslint .",
"lint:fix:js": "eslint . --fix",
"lint:check:format": "prettier . --check",
"lint:fix:format": "prettier . --write",
"lint:check:format": "prettier \"**/*.{json,yaml,md}\" --check",
"lint:fix:format": "prettier \"**/*.{json,yaml,md}\" --write",
"lint": "pnpm run \"/^lint:check:.*/\"",
"lint:fix": "pnpm run \"/^lint:fix:.*/\"",
"changeset": "changeset",
Expand All @@ -55,7 +55,7 @@
"devDependencies": {
"@changesets/cli": "2.29.8",
"@commencis/commitlint-config": "1.2.0",
"@commencis/eslint-config": "1.8.0",
"@commencis/eslint-config": "2.3.0",
"@commencis/prettier-config": "2.0.0",
"@commitlint/cli": "19.8.1",
"@svitejs/changesets-changelog-github-compact": "1.2.0",
Expand Down
176 changes: 90 additions & 86 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
import commencisPrettierConfig from '@commencis/prettier-config';

export default commencisPrettierConfig;
export { default } from '@commencis/prettier-config';
2 changes: 1 addition & 1 deletion src/commands/create.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import chalk from 'chalk';

import type { TemplateId } from '@/types';
import { setupTemplate } from '@/helpers';
import { TemplateId } from '@/types';
import { printLogo, validateProjectName, validateTemplate } from '@/utils';

import { getProjectName, getSelectedTemplate } from '@/prompts';
Expand Down
2 changes: 1 addition & 1 deletion src/config/template.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ExtensionId, TemplateId } from '@/types';
import type { ExtensionId, TemplateId } from '@/types';

type TemplateConfig = {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion src/constants/template.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { templateConfigMap } from '@/config';
import { TemplateId } from '@/types';
import type { TemplateId } from '@/types';

export const TEMPLATE_IDS: TemplateId[] = Object.keys(
templateConfigMap
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/setupTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import path from 'node:path';
import hbs from 'handlebars';
import ora from 'ora';

import { TemplateId } from '@/types';
import type { TemplateId } from '@/types';
import { getTemplateDataById } from '@/utils';

import { cleanUpDirectory } from './cleanUpDirectory';
Expand Down
3 changes: 2 additions & 1 deletion src/lib/git.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { SimpleGit, simpleGit, SimpleGitOptions } from 'simple-git';
import type { SimpleGit, SimpleGitOptions } from 'simple-git';
import { simpleGit } from 'simple-git';

const options: SimpleGitOptions = {
baseDir: process.cwd(),
Expand Down
2 changes: 1 addition & 1 deletion src/prompts/getSelectedTemplate.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import enquirer from 'enquirer';

import { TemplateId } from '@/types';
import type { TemplateId } from '@/types';

export async function getSelectedTemplate(): Promise<TemplateId> {
const response = await enquirer.prompt<{ templateId: TemplateId }>({
Expand Down
4 changes: 2 additions & 2 deletions src/utils/getTemplateDataById.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { templateConfigMap, TemplateData } from '@/config';
import { ExtensionId, TemplateId } from '@/types';
import { templateConfigMap, type TemplateData } from '@/config';
import type { ExtensionId, TemplateId } from '@/types';

import packageJson from '../../package.json' with { type: 'json' };

Expand Down