@majordigital/create-acorn 1.1.3 → 1.1.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/bin/create-acorn.mjs +10 -1
- package/package.json +1 -1
package/bin/create-acorn.mjs
CHANGED
|
@@ -178,7 +178,16 @@ async function setupPrismic() {
|
|
|
178
178
|
}
|
|
179
179
|
console.log('');
|
|
180
180
|
|
|
181
|
-
|
|
181
|
+
try {
|
|
182
|
+
await runCommand('npx', ['@slicemachine/init@latest', '--repository', repo]);
|
|
183
|
+
} catch {
|
|
184
|
+
console.log('');
|
|
185
|
+
console.log('⚠ Prismic Slice Machine init did not complete successfully.');
|
|
186
|
+
console.log(' This usually means the browser login was not completed.');
|
|
187
|
+
console.log(' You can retry later by running:');
|
|
188
|
+
console.log(` npx @slicemachine/init@latest --repository ${repo}`);
|
|
189
|
+
console.log('');
|
|
190
|
+
}
|
|
182
191
|
|
|
183
192
|
// Ensure slicemachine script exists in package.json
|
|
184
193
|
const pkgPath = join(process.cwd(), 'package.json');
|
package/package.json
CHANGED