create-soybean 1.4.0-beta.4 → 1.4.1

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.
package/dist/index.js CHANGED
@@ -23,29 +23,20 @@ function toValidPackageName(projectName) {
23
23
  return projectName.trim().toLowerCase().replace(/\s+/g, "-").replace(/^[._]/, "").replace(/[^a-z\d\-~]+/g, "-");
24
24
  }
25
25
  function emptyDir(dir) {
26
- const isExist = existsSync(dir);
27
- if (!isExist) return;
26
+ if (!existsSync(dir)) return;
28
27
  const files = readdirSync(dir);
29
- for (const file of files) if (file !== ".git") {
30
- const filePath = path.resolve(dir, file);
31
- rmSync(filePath, {
32
- recursive: true,
33
- force: true
34
- });
35
- }
28
+ for (const file of files) if (file !== ".git") rmSync(path.resolve(dir, file), {
29
+ recursive: true,
30
+ force: true
31
+ });
36
32
  }
37
33
  function copyDir(srcDir, destDir) {
38
34
  mkdirSync(destDir, { recursive: true });
39
35
  const files = readdirSync(srcDir);
40
- for (const file of files) {
41
- const srcFile = path.resolve(srcDir, file);
42
- const destFile = path.resolve(destDir, file);
43
- copy(srcFile, destFile);
44
- }
36
+ for (const file of files) copy(path.resolve(srcDir, file), path.resolve(destDir, file));
45
37
  }
46
38
  function copy(src, dest) {
47
- const stat = statSync(src);
48
- if (stat.isDirectory()) copyDir(src, dest);
39
+ if (statSync(src).isDirectory()) copyDir(src, dest);
49
40
  else copyFileSync(src, dest);
50
41
  }
51
42
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-soybean",
3
3
  "type": "module",
4
- "version": "1.4.0-beta.4",
4
+ "version": "1.4.1",
5
5
  "description": "SoybeanJS's command line to create different project templates",
6
6
  "author": {
7
7
  "name": "Soybean",
@@ -35,8 +35,8 @@
35
35
  "devDependencies": {
36
36
  "@types/minimist": "1.2.5",
37
37
  "@types/prompts": "2.4.9",
38
- "tsdown": "0.14.2",
39
- "typescript": "5.9.2"
38
+ "tsdown": "0.15.11",
39
+ "typescript": "5.9.3"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "pnpm typecheck && pnpm build-only",
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
- "packageManager": "pnpm@10.15.0",
6
+ "packageManager": "pnpm@10.20.0",
7
7
  "scripts": {
8
8
  "cleanup": "soy cleanup",
9
9
  "commit": "soy git-commit",
@@ -15,13 +15,13 @@
15
15
  },
16
16
  "dependencies": {},
17
17
  "devDependencies": {
18
- "@soybeanjs/cli": "1.4.0-beta.4",
18
+ "@soybeanjs/cli": "1.4.1",
19
19
  "@soybeanjs/eslint-config": "1.7.1",
20
- "eslint": "9.34.0",
21
- "lint-staged": "16.1.5",
20
+ "eslint": "9.38.0",
21
+ "lint-staged": "16.2.6",
22
22
  "simple-git-hooks": "2.13.1",
23
- "tsx": "4.20.5",
24
- "typescript": "5.9.2"
23
+ "tsx": "4.20.6",
24
+ "typescript": "5.9.3"
25
25
  },
26
26
  "simple-git-hooks": {
27
27
  "commit-msg": "pnpm soy git-commit-verify",
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "demo-pkg",
3
3
  "type": "module",
4
- "version": "1.4.0-beta.4",
4
+ "version": "1.4.1",
5
5
  "private": true,
6
- "packageManager": "pnpm@10.15.0",
6
+ "packageManager": "pnpm@10.20.0",
7
7
  "scripts": {
8
8
  "typecheck": "tsc --noEmit --skipLibCheck"
9
9
  },
10
10
  "dependencies": {},
11
11
  "devDependencies": {
12
- "typescript": "5.9.2"
12
+ "typescript": "5.9.3"
13
13
  }
14
14
  }
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
- "packageManager": "pnpm@10.15.0",
6
+ "packageManager": "pnpm@10.20.0",
7
7
  "publishConfig": {
8
8
  "registry": "https://registry.npmjs.org/"
9
9
  },
@@ -34,22 +34,22 @@
34
34
  "dependencies": {
35
35
  "cli-progress": "3.12.0",
36
36
  "consola": "3.4.2",
37
- "dayjs": "1.11.15",
37
+ "dayjs": "1.11.18",
38
38
  "execa": "9.6.0",
39
39
  "kolorist": "1.8.0",
40
- "ofetch": "1.4.1"
40
+ "ofetch": "1.5.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@soybeanjs/cli": "1.4.0-beta.4",
43
+ "@soybeanjs/cli": "1.4.1",
44
44
  "@soybeanjs/eslint-config": "1.7.1",
45
45
  "@types/cli-progress": "3.11.6",
46
- "@types/node": "24.3.0",
47
- "eslint": "9.34.0",
48
- "lint-staged": "16.1.5",
46
+ "@types/node": "24.9.2",
47
+ "eslint": "9.38.0",
48
+ "lint-staged": "16.2.6",
49
49
  "simple-git-hooks": "2.13.1",
50
- "tsdown": "0.14.2",
51
- "tsx": "4.20.5",
52
- "typescript": "5.9.2"
50
+ "tsdown": "0.15.11",
51
+ "tsx": "4.20.6",
52
+ "typescript": "5.9.3"
53
53
  },
54
54
  "simple-git-hooks": {
55
55
  "commit-msg": "pnpm soy git-commit-verify",
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
- "packageManager": "pnpm@10.15.0",
6
+ "packageManager": "pnpm@10.20.0",
7
7
  "scripts": {
8
8
  "build": "pnpm typecheck && pnpm build-only",
9
9
  "build-only": "vite build",
@@ -17,33 +17,33 @@
17
17
  "update-pkg": "soy ncu"
18
18
  },
19
19
  "dependencies": {
20
- "@unocss/reset": "66.4.2",
20
+ "@unocss/reset": "66.5.4",
21
21
  "klona": "2.0.6",
22
22
  "pinia": "3.0.3",
23
23
  "soy-ui": "0.0.2-beta.5",
24
- "vue": "3.5.20",
25
- "vue-router": "4.5.1"
24
+ "vue": "3.5.22",
25
+ "vue-router": "4.6.3"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@soybean-ui/unocss-preset": "0.0.2-beta.5",
29
- "@soybeanjs/cli": "1.4.0-beta.4",
29
+ "@soybeanjs/cli": "1.4.1",
30
30
  "@soybeanjs/eslint-config": "1.7.1",
31
- "@types/node": "24.3.0",
32
- "@unocss/eslint-config": "66.4.2",
31
+ "@types/node": "24.9.2",
32
+ "@unocss/eslint-config": "66.5.4",
33
33
  "@vitejs/plugin-vue": "6.0.1",
34
34
  "@vitejs/plugin-vue-jsx": "5.1.1",
35
- "elegant-router": "1.0.3",
36
- "eslint": "9.34.0",
37
- "eslint-plugin-vue": "10.4.0",
38
- "lint-staged": "16.1.5",
35
+ "elegant-router": "1.0.4",
36
+ "eslint": "9.38.0",
37
+ "eslint-plugin-vue": "10.5.1",
38
+ "lint-staged": "16.2.6",
39
39
  "simple-git-hooks": "2.13.1",
40
- "typescript": "5.9.2",
41
- "unocss": "66.4.2",
42
- "unplugin-vue-components": "29.0.0",
43
- "vite": "7.1.3",
44
- "vite-plugin-vue-devtools": "8.0.1",
40
+ "typescript": "5.9.3",
41
+ "unocss": "66.5.4",
42
+ "unplugin-vue-components": "30.0.0",
43
+ "vite": "7.1.12",
44
+ "vite-plugin-vue-devtools": "8.0.3",
45
45
  "vue-eslint-parser": "10.2.0",
46
- "vue-tsc": "3.0.6"
46
+ "vue-tsc": "3.1.2"
47
47
  },
48
48
  "simple-git-hooks": {
49
49
  "commit-msg": "pnpm soy git-commit-verify",
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
- "packageManager": "pnpm@10.15.0",
6
+ "packageManager": "pnpm@10.20.0",
7
7
  "publishConfig": {
8
8
  "registry": "https://registry.npmjs.org/"
9
9
  },
@@ -35,25 +35,25 @@
35
35
  },
36
36
  "dependencies": {},
37
37
  "devDependencies": {
38
- "@soybeanjs/cli": "1.4.0-beta.4",
38
+ "@soybeanjs/cli": "1.4.1",
39
39
  "@soybeanjs/eslint-config": "1.7.1",
40
- "@types/node": "24.3.0",
40
+ "@types/node": "24.9.2",
41
41
  "@vue/test-utils": "2.4.6",
42
- "eslint": "9.34.0",
43
- "eslint-plugin-vue": "10.4.0",
44
- "happy-dom": "18.0.1",
45
- "lint-staged": "16.1.5",
42
+ "eslint": "9.38.0",
43
+ "eslint-plugin-vue": "10.5.1",
44
+ "happy-dom": "20.0.10",
45
+ "lint-staged": "16.2.6",
46
46
  "simple-git-hooks": "2.13.1",
47
- "tsdown": "0.14.2",
48
- "tsx": "4.20.5",
49
- "typescript": "5.9.2",
50
- "unplugin-vue": "7.0.1",
51
- "unplugin-vue-jsx": "0.6.1",
52
- "vite": "7.1.3",
53
- "vitest": "3.2.4",
54
- "vue": "3.5.20",
47
+ "tsdown": "0.15.11",
48
+ "tsx": "4.20.6",
49
+ "typescript": "5.9.3",
50
+ "unplugin-vue": "7.0.3",
51
+ "unplugin-vue-jsx": "0.8.1",
52
+ "vite": "7.1.12",
53
+ "vitest": "4.0.5",
54
+ "vue": "3.5.22",
55
55
  "vue-eslint-parser": "10.2.0",
56
- "vue-tsc": "3.0.6"
56
+ "vue-tsc": "3.1.2"
57
57
  },
58
58
  "simple-git-hooks": {
59
59
  "commit-msg": "pnpm soy git-commit-verify",