create-blocklet 0.9.21 → 0.9.22

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/index.js CHANGED
@@ -266,8 +266,6 @@ async function init() {
266
266
  onState: (state) => {
267
267
  projectName = state.value.trim() || transferName;
268
268
  },
269
- validate: (value) =>
270
- isValidName(value) ? true : 'Please enter a valid project name, the "." is not allowed.',
271
269
  },
272
270
  {
273
271
  type: () => (!fs.existsSync(targetDir) || isEmpty(targetDir) ? null : 'confirm'),
package/lib/utils.js CHANGED
@@ -12,7 +12,7 @@ export function copy(src, dest) {
12
12
  }
13
13
 
14
14
  export function isValidName(name) {
15
- return !name.includes('.');
15
+ return !!name.trim();
16
16
  }
17
17
 
18
18
  export function isValidPackageName(projectName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-blocklet",
3
- "version": "0.9.21",
3
+ "version": "0.9.22",
4
4
  "exports": "./index.js",
5
5
  "type": "module",
6
6
  "repository": "git@github.com:blocklet/create-blocklet.git",
@@ -77,7 +77,7 @@
77
77
  "rimraf": "^5.0.10",
78
78
  "simple-git-hooks": "^2.11.1",
79
79
  "vite": "^5.4.14",
80
- "vite-plugin-blocklet": "^0.9.21",
80
+ "vite-plugin-blocklet": "^0.9.22",
81
81
  "vite-plugin-svgr": "^4.3.0",
82
82
  "zx": "^8.3.2"
83
83
  },
@@ -53,7 +53,7 @@
53
53
  "simple-git-hooks": "^2.11.1",
54
54
  "vite": "^5.4.14",
55
55
  "vite-node": "^2.1.9",
56
- "vite-plugin-blocklet": "^0.9.21",
56
+ "vite-plugin-blocklet": "^0.9.22",
57
57
  "vite-plugin-require": "^1.2.14",
58
58
  "vite-plugin-svgr": "^4.3.0",
59
59
  "zx": "^8.3.2"
@@ -97,7 +97,7 @@
97
97
  "ts-node": "^10.9.2",
98
98
  "typescript": "^5.7.3",
99
99
  "vite": "^5.4.14",
100
- "vite-plugin-blocklet": "^0.9.21",
100
+ "vite-plugin-blocklet": "^0.9.22",
101
101
  "vite-plugin-svgr": "^4.3.0",
102
102
  "zx": "^8.3.2"
103
103
  },
@@ -71,7 +71,7 @@
71
71
  "rimraf": "^5.0.10",
72
72
  "simple-git-hooks": "^2.11.1",
73
73
  "vite": "^5.4.14",
74
- "vite-plugin-blocklet": "^0.9.21",
74
+ "vite-plugin-blocklet": "^0.9.22",
75
75
  "vite-plugin-svgr": "^4.3.0",
76
76
  "zx": "^8.3.2"
77
77
  },
@@ -81,7 +81,7 @@
81
81
  "ts-node": "^10.9.2",
82
82
  "typescript": "^5.7.3",
83
83
  "vite": "^5.4.14",
84
- "vite-plugin-blocklet": "^0.9.21",
84
+ "vite-plugin-blocklet": "^0.9.22",
85
85
  "vite-plugin-svgr": "^4.3.0",
86
86
  "zx": "^8.3.2"
87
87
  },
@@ -71,7 +71,7 @@
71
71
  "rimraf": "^5.0.10",
72
72
  "simple-git-hooks": "^2.11.1",
73
73
  "vite": "^5.4.14",
74
- "vite-plugin-blocklet": "^0.9.21",
74
+ "vite-plugin-blocklet": "^0.9.22",
75
75
  "vite-plugin-svgr": "^4.3.0",
76
76
  "zx": "^8.3.2"
77
77
  },
@@ -52,7 +52,7 @@
52
52
  "rimraf": "^5.0.10",
53
53
  "simple-git-hooks": "^2.11.1",
54
54
  "vite": "^5.4.14",
55
- "vite-plugin-blocklet": "^0.9.21",
55
+ "vite-plugin-blocklet": "^0.9.22",
56
56
  "vite-plugin-svgr": "^4.3.0",
57
57
  "zx": "^8.3.2"
58
58
  },
@@ -36,7 +36,7 @@
36
36
  "rimraf": "^5.0.10",
37
37
  "simple-git-hooks": "^2.11.1",
38
38
  "vite": "^5.4.14",
39
- "vite-plugin-blocklet": "^0.9.21",
39
+ "vite-plugin-blocklet": "^0.9.22",
40
40
  "vite-plugin-solid": "^2.11.2",
41
41
  "zx": "^8.3.2"
42
42
  },
@@ -32,7 +32,7 @@
32
32
  "simple-git-hooks": "^2.11.1",
33
33
  "solid-js": "^1.9.4",
34
34
  "vite": "^5.4.14",
35
- "vite-plugin-blocklet": "^0.9.21",
35
+ "vite-plugin-blocklet": "^0.9.22",
36
36
  "vite-plugin-solid": "^2.11.2",
37
37
  "zx": "^8.3.2"
38
38
  },
@@ -44,7 +44,7 @@
44
44
  "simple-git-hooks": "^2.11.1",
45
45
  "svelte": "^4.2.19",
46
46
  "vite": "^5.4.14",
47
- "vite-plugin-blocklet": "^0.9.21",
47
+ "vite-plugin-blocklet": "^0.9.22",
48
48
  "zx": "^8.3.2"
49
49
  },
50
50
  "lint-staged": {
@@ -25,7 +25,7 @@
25
25
  "simple-git-hooks": "^2.11.1",
26
26
  "svelte": "^4.2.19",
27
27
  "vite": "^5.4.14",
28
- "vite-plugin-blocklet": "^0.9.21",
28
+ "vite-plugin-blocklet": "^0.9.22",
29
29
  "zx": "^8.3.2"
30
30
  },
31
31
  "lint-staged": {
@@ -96,7 +96,7 @@
96
96
  "ts-node": "^10.9.2",
97
97
  "typescript": "^5.7.3",
98
98
  "vite": "^5.4.14",
99
- "vite-plugin-blocklet": "^0.9.21",
99
+ "vite-plugin-blocklet": "^0.9.22",
100
100
  "vite-plugin-svgr": "^4.3.0",
101
101
  "zx": "^8.3.2"
102
102
  },
@@ -49,7 +49,7 @@
49
49
  "rimraf": "^5.0.10",
50
50
  "simple-git-hooks": "^2.11.1",
51
51
  "vite": "^5.4.14",
52
- "vite-plugin-blocklet": "^0.9.21",
52
+ "vite-plugin-blocklet": "^0.9.22",
53
53
  "vue": "^3.5.13",
54
54
  "zx": "^8.3.2"
55
55
  },
@@ -30,7 +30,7 @@
30
30
  "rimraf": "^5.0.10",
31
31
  "simple-git-hooks": "^2.11.1",
32
32
  "vite": "^5.4.14",
33
- "vite-plugin-blocklet": "^0.9.21",
33
+ "vite-plugin-blocklet": "^0.9.22",
34
34
  "vue": "^3.5.13",
35
35
  "zx": "^8.3.2"
36
36
  },
@@ -39,7 +39,7 @@
39
39
  "taze": "^0.16.9",
40
40
  "typescript": "^5.7.3",
41
41
  "vite": "^5.4.14",
42
- "vite-plugin-blocklet": "^0.9.21",
42
+ "vite-plugin-blocklet": "^0.9.22",
43
43
  "vue-tsc": "^2.2.2",
44
44
  "zx": "^8.3.2"
45
45
  },
@@ -48,7 +48,7 @@
48
48
  "rimraf": "^5.0.10",
49
49
  "simple-git-hooks": "^2.11.1",
50
50
  "vite": "^5.4.14",
51
- "vite-plugin-blocklet": "^0.9.21",
51
+ "vite-plugin-blocklet": "^0.9.22",
52
52
  "vue": "^2.7.16",
53
53
  "zx": "^8.3.2"
54
54
  },
@@ -30,7 +30,7 @@
30
30
  "rimraf": "^5.0.10",
31
31
  "simple-git-hooks": "^2.11.1",
32
32
  "vite": "^5.4.14",
33
- "vite-plugin-blocklet": "^0.9.21",
33
+ "vite-plugin-blocklet": "^0.9.22",
34
34
  "vue": "^2.7.16",
35
35
  "zx": "^8.3.2"
36
36
  },