create-commandkit 1.1.4-dev.20250716021102 → 1.1.4-dev.20250717021130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,11 +8,11 @@ const baseDependencies = [
8
8
  const dependencies = {
9
9
  js: {
10
10
  dependencies: baseDependencies,
11
- devDependencies: ['@types/node', 'typescript'],
11
+ devDependencies: ['@types/node', 'typescript', 'prettier'],
12
12
  },
13
13
  ts: {
14
14
  dependencies: baseDependencies,
15
- devDependencies: ['@types/node', 'typescript'],
15
+ devDependencies: ['@types/node', 'typescript', 'prettier'],
16
16
  },
17
17
  };
18
18
  function getInstallCommand(manager, deps, dev = false) {
@@ -24,6 +24,7 @@ export async function setup({ manager, token, dir, stdio = 'pipe', }) {
24
24
  useTabs: false,
25
25
  lineWidth: 120,
26
26
  indentWidth: 2,
27
+ endOfLine: 'lf',
27
28
  semiColons: true,
28
29
  singleQuote: true,
29
30
  include: ['src/'],
@@ -32,6 +33,18 @@ export async function setup({ manager, token, dir, stdio = 'pipe', }) {
32
33
  };
33
34
  await fs.writeJSON(denoJsonPath, denoJson, { spaces: 2, EOL: '\n' });
34
35
  }
36
+ const prettierrc = path.join(dir, '.prettierrc');
37
+ const prettierConfig = {
38
+ printWidth: 120,
39
+ tabWidth: 2,
40
+ useTabs: false,
41
+ semi: true,
42
+ endOfLine: 'lf',
43
+ singleQuote: true,
44
+ trailingComma: 'all',
45
+ arrowParens: 'always',
46
+ };
47
+ await fs.writeJSON(prettierrc, prettierConfig, { spaces: 2, EOL: '\n' });
35
48
  const packageJsonPath = path.join(dir, 'package.json');
36
49
  const packageJson = {
37
50
  name: dir.replaceAll('\\', '/').split('/').pop()?.toLowerCase() ||
@@ -45,6 +58,7 @@ export async function setup({ manager, token, dir, stdio = 'pipe', }) {
45
58
  dev: 'commandkit dev',
46
59
  build: 'commandkit build',
47
60
  start: 'commandkit start',
61
+ format: 'prettier --write "src/**/*.{js,ts}"',
48
62
  },
49
63
  devDependencies: {},
50
64
  dependencies: {},
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-commandkit",
3
3
  "description": "Effortlessly create a CommandKit project",
4
- "version": "1.1.4-dev.20250716021102",
4
+ "version": "1.1.4-dev.20250717021130",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
7
7
  "bin": "./dist/index.js",
@@ -39,7 +39,7 @@
39
39
  "@types/gradient-string": "^1.1.5",
40
40
  "@types/node": "^22.0.0",
41
41
  "typescript": "^5.8.3",
42
- "tsconfig": "0.0.0-dev.20250716021102"
42
+ "tsconfig": "0.0.0-dev.20250717021130"
43
43
  },
44
44
  "scripts": {
45
45
  "lint": "tsc --noEmit",