@anaemia/cli 0.1.5 → 0.1.7

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/dist/index.js CHANGED
@@ -265,14 +265,14 @@ cli
265
265
  packageManager = "yarn";
266
266
  try {
267
267
  if (packageManager === "pnpm") {
268
- execSync(`pnpm dlx dlx-unzip @anaemia/template-base "${targetPath}"`, { stdio: "ignore" });
268
+ execSync(`pnpm dlx degit colourlabs/anaemia/templates/base-app "${targetPath}"`, { stdio: "ignore" });
269
269
  }
270
270
  else {
271
271
  execSync(`npx degit colourlabs/anaemia/templates/base-app "${targetPath}"`, { stdio: "ignore" });
272
272
  }
273
273
  }
274
- catch {
275
- logger.error("Could not source template workspace assets locally or from network registry nodes.");
274
+ catch (err) {
275
+ logger.error("could not source template workspace assets locally or from network registry nodes. " + err);
276
276
  process.exit(1);
277
277
  }
278
278
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anaemia/cli",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "anaemia": "./dist/index.js"
package/src/index.ts CHANGED
@@ -316,12 +316,12 @@ cli
316
316
 
317
317
  try {
318
318
  if (packageManager === "pnpm") {
319
- execSync(`pnpm dlx dlx-unzip @anaemia/template-base "${targetPath}"`, { stdio: "ignore" });
319
+ execSync(`pnpm dlx degit colourlabs/anaemia/templates/base-app "${targetPath}"`, { stdio: "ignore" });
320
320
  } else {
321
321
  execSync(`npx degit colourlabs/anaemia/templates/base-app "${targetPath}"`, { stdio: "ignore" });
322
322
  }
323
- } catch {
324
- logger.error("Could not source template workspace assets locally or from network registry nodes.");
323
+ } catch (err) {
324
+ logger.error("could not source template workspace assets locally or from network registry nodes. " + err);
325
325
  process.exit(1);
326
326
  }
327
327
  }