@fullstackunicorn/create-root 1.0.10 → 1.0.11

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.
Files changed (2) hide show
  1. package/index.cmd.js +12 -1
  2. package/package.json +1 -1
package/index.cmd.js CHANGED
@@ -7,8 +7,19 @@ import { init } from '#@/index.js'
7
7
  const [nodePath, nodeScriptPath, foldername] = process.argv
8
8
 
9
9
  try {
10
- await init.run(foldername ?? null)
10
+
11
+ if (!F3.str.isGood(foldername)) {
12
+ console.error('Error: missing foldername')
13
+ console.error('\nSuggestion:')
14
+ console.error('yarn create @fullstackunicorn/root foldername')
15
+ console.error('npm create @fullstackunicorn/root foldername')
16
+ console.error('npx @fullstackunicorn/create-root foldername')
17
+ process.exit(1)
18
+ }
19
+
20
+ await init.run(foldername)
11
21
  process.exit(0)
22
+
12
23
  } catch (err) {
13
24
  console.error('Error:', err)
14
25
  process.exit(1)
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.10",
2
+ "version": "1.0.11",
3
3
  "name": "@fullstackunicorn/create-root",
4
4
  "author": "lucanigido (https://fullstackunicorn.dev/author/lucanigido)",
5
5
  "description": "create-root: bootstrapper that writes config assets and installs @fullstackunicorn/root",