create-blocklet 0.9.15 → 0.9.16
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 +2 -2
- package/lib/utils.js +1 -1
- package/package.json +1 -1
- package/templates/did-connect-dapp/package.json +1 -1
- package/templates/did-wallet-dapp/package.json +1 -1
- package/templates/react-dapp/package.json +1 -1
- package/templates/react-dapp-ts/package.json +1 -1
- package/templates/react-gun-dapp/package.json +1 -1
- package/templates/react-static/package.json +1 -1
- package/templates/solidjs-dapp/package.json +1 -1
- package/templates/solidjs-static/package.json +1 -1
- package/templates/svelte-dapp/package.json +1 -1
- package/templates/svelte-static/package.json +1 -1
- package/templates/todo-list-example/package.json +1 -1
- package/templates/vue-dapp/package.json +1 -1
- package/templates/vue-static/package.json +1 -1
- package/templates/vue-ts-static/package.json +1 -1
- package/templates/vue2-dapp/package.json +1 -1
- package/templates/vue2-static/package.json +1 -1
package/index.js
CHANGED
|
@@ -248,7 +248,7 @@ async function init() {
|
|
|
248
248
|
|
|
249
249
|
let result = {};
|
|
250
250
|
const authorInfo = await getUser();
|
|
251
|
-
const transferName =
|
|
251
|
+
const transferName = defaultProjectName.replace('.', '-');
|
|
252
252
|
|
|
253
253
|
try {
|
|
254
254
|
result = await prompts(
|
|
@@ -262,7 +262,7 @@ async function init() {
|
|
|
262
262
|
projectName = state.value.trim() || transferName;
|
|
263
263
|
},
|
|
264
264
|
validate: (value) =>
|
|
265
|
-
isValidName(value) ? true : 'Please enter a valid project name,
|
|
265
|
+
isValidName(value) ? true : 'Please enter a valid project name, the "." is not allowed.',
|
|
266
266
|
},
|
|
267
267
|
{
|
|
268
268
|
type: () => (!fs.existsSync(targetDir) || isEmpty(targetDir) ? null : 'confirm'),
|
package/lib/utils.js
CHANGED
package/package.json
CHANGED