sprint-es 0.0.153 → 0.0.154

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/cjs/cli.cjs CHANGED
@@ -400,11 +400,18 @@ function checkDependencies(command2, isTS) {
400
400
  const missing = [];
401
401
  for (const dep of deps) {
402
402
  const binPath = path.join(projectRoot, "node_modules", ".bin", dep);
403
- if (!fs.existsSync(binPath)) {
404
- missing.push(dep);
403
+ if (!fs.existsSync(binPath)) missing.push(dep);
404
+ }
405
+ if (missing.length > 0) {
406
+ console.error("\n❌ Missing required dependencies:");
407
+ for (const dep of missing) {
408
+ console.error(` • ${dep}`);
405
409
  }
410
+ console.error("\n👉 Install with:");
411
+ console.error(" npm install --save-dev " + missing.join(" "));
412
+ console.error("");
413
+ process.exit(1);
406
414
  }
407
- return missing;
408
415
  }
409
416
  async function main() {
410
417
  const hasDist = fs.existsSync(path.join(projectRoot, "dist"));
package/dist/esm/cli.js CHANGED
@@ -381,11 +381,18 @@ function checkDependencies(command2, isTS) {
381
381
  const missing = [];
382
382
  for (const dep of deps) {
383
383
  const binPath = join(projectRoot, "node_modules", ".bin", dep);
384
- if (!existsSync(binPath)) {
385
- missing.push(dep);
384
+ if (!existsSync(binPath)) missing.push(dep);
385
+ }
386
+ if (missing.length > 0) {
387
+ console.error("\n❌ Missing required dependencies:");
388
+ for (const dep of missing) {
389
+ console.error(` • ${dep}`);
386
390
  }
391
+ console.error("\n👉 Install with:");
392
+ console.error(" npm install --save-dev " + missing.join(" "));
393
+ console.error("");
394
+ process.exit(1);
387
395
  }
388
- return missing;
389
396
  }
390
397
  async function main() {
391
398
  const hasDist = existsSync(join(projectRoot, "dist"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprint-es",
3
- "version": "0.0.153",
3
+ "version": "0.0.154",
4
4
  "description": "Sprint - Quickly API",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",