@majordigital/create-acorn 1.0.3 → 1.0.4
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/README.md +2 -10
- package/bin/create-acorn.mjs +1 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,16 +37,8 @@ First iteration of an interactive CLI to scaffold a Headless CMS skeleton with N
|
|
|
37
37
|
|
|
38
38
|
Recommended usage (once published to npm):
|
|
39
39
|
|
|
40
|
-
- Use npm init-style:
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
npm create acorn@latest
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
- Or via npx with the alias:
|
|
47
|
-
|
|
48
40
|
```bash
|
|
49
|
-
npx
|
|
41
|
+
npx @majordigital/create-acorn@latest
|
|
50
42
|
```
|
|
51
43
|
|
|
52
44
|
Local (from this repo):
|
|
@@ -70,7 +62,7 @@ You can also pass the repository name non-interactively:
|
|
|
70
62
|
```bash
|
|
71
63
|
npm run acorn -- --cms prismic --repo my-repo
|
|
72
64
|
# or
|
|
73
|
-
npx
|
|
65
|
+
npx @majordigital/create-acorn@latest --cms prismic --repo my-repo
|
|
74
66
|
```
|
|
75
67
|
|
|
76
68
|
Repository name rules: lowercase letters, numbers, and hyphens only.
|
package/bin/create-acorn.mjs
CHANGED
|
@@ -140,12 +140,7 @@ async function setupPrismic() {
|
|
|
140
140
|
}
|
|
141
141
|
console.log('');
|
|
142
142
|
|
|
143
|
-
|
|
144
|
-
if (isExisting) {
|
|
145
|
-
initArgs.push('--existing-repo');
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
await runCommand('npx', initArgs);
|
|
143
|
+
await runCommand('npx', ['@slicemachine/init@latest', '--repository', repo]);
|
|
149
144
|
|
|
150
145
|
// Ensure slicemachine script exists in package.json
|
|
151
146
|
const pkgPath = join(process.cwd(), 'package.json');
|
package/package.json
CHANGED