sprint-es 0.0.153 → 0.0.155
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 +11 -5
- package/dist/esm/cli.js +11 -5
- package/package.json +1 -1
package/dist/cjs/cli.cjs
CHANGED
|
@@ -389,8 +389,7 @@ async function runDoctor() {
|
|
|
389
389
|
}
|
|
390
390
|
const commandDependencies = {
|
|
391
391
|
build: {
|
|
392
|
-
ts: ["tsup", "typescript"]
|
|
393
|
-
js: ["tsup"]
|
|
392
|
+
ts: ["tsup", "typescript"]
|
|
394
393
|
}
|
|
395
394
|
};
|
|
396
395
|
function checkDependencies(command2, isTS) {
|
|
@@ -400,11 +399,18 @@ function checkDependencies(command2, isTS) {
|
|
|
400
399
|
const missing = [];
|
|
401
400
|
for (const dep of deps) {
|
|
402
401
|
const binPath = path.join(projectRoot, "node_modules", ".bin", dep);
|
|
403
|
-
if (!fs.existsSync(binPath))
|
|
404
|
-
|
|
402
|
+
if (!fs.existsSync(binPath)) missing.push(dep);
|
|
403
|
+
}
|
|
404
|
+
if (missing.length > 0) {
|
|
405
|
+
console.error("\n❌ Missing required dependencies:");
|
|
406
|
+
for (const dep of missing) {
|
|
407
|
+
console.error(` • ${dep}`);
|
|
405
408
|
}
|
|
409
|
+
console.error("\n👉 Install with:");
|
|
410
|
+
console.error(" npm install --save-dev " + missing.join(" "));
|
|
411
|
+
console.error("");
|
|
412
|
+
process.exit(1);
|
|
406
413
|
}
|
|
407
|
-
return missing;
|
|
408
414
|
}
|
|
409
415
|
async function main() {
|
|
410
416
|
const hasDist = fs.existsSync(path.join(projectRoot, "dist"));
|
package/dist/esm/cli.js
CHANGED
|
@@ -370,8 +370,7 @@ async function runDoctor() {
|
|
|
370
370
|
}
|
|
371
371
|
const commandDependencies = {
|
|
372
372
|
build: {
|
|
373
|
-
ts: ["tsup", "typescript"]
|
|
374
|
-
js: ["tsup"]
|
|
373
|
+
ts: ["tsup", "typescript"]
|
|
375
374
|
}
|
|
376
375
|
};
|
|
377
376
|
function checkDependencies(command2, isTS) {
|
|
@@ -381,11 +380,18 @@ function checkDependencies(command2, isTS) {
|
|
|
381
380
|
const missing = [];
|
|
382
381
|
for (const dep of deps) {
|
|
383
382
|
const binPath = join(projectRoot, "node_modules", ".bin", dep);
|
|
384
|
-
if (!existsSync(binPath))
|
|
385
|
-
|
|
383
|
+
if (!existsSync(binPath)) missing.push(dep);
|
|
384
|
+
}
|
|
385
|
+
if (missing.length > 0) {
|
|
386
|
+
console.error("\n❌ Missing required dependencies:");
|
|
387
|
+
for (const dep of missing) {
|
|
388
|
+
console.error(` • ${dep}`);
|
|
386
389
|
}
|
|
390
|
+
console.error("\n👉 Install with:");
|
|
391
|
+
console.error(" npm install --save-dev " + missing.join(" "));
|
|
392
|
+
console.error("");
|
|
393
|
+
process.exit(1);
|
|
387
394
|
}
|
|
388
|
-
return missing;
|
|
389
395
|
}
|
|
390
396
|
async function main() {
|
|
391
397
|
const hasDist = existsSync(join(projectRoot, "dist"));
|