sprint-es 0.0.154 → 0.0.156
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 +0 -27
- package/dist/esm/cli.js +0 -27
- package/package.json +1 -1
package/dist/cjs/cli.cjs
CHANGED
|
@@ -387,32 +387,6 @@ async function runDoctor() {
|
|
|
387
387
|
}
|
|
388
388
|
logger.break();
|
|
389
389
|
}
|
|
390
|
-
const commandDependencies = {
|
|
391
|
-
build: {
|
|
392
|
-
ts: ["tsup", "typescript"],
|
|
393
|
-
js: ["tsup"]
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
function checkDependencies(command2, isTS) {
|
|
397
|
-
const config = commandDependencies[command2];
|
|
398
|
-
if (!config) return [];
|
|
399
|
-
const deps = config.ts ?? [];
|
|
400
|
-
const missing = [];
|
|
401
|
-
for (const dep of deps) {
|
|
402
|
-
const binPath = path.join(projectRoot, "node_modules", ".bin", 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}`);
|
|
409
|
-
}
|
|
410
|
-
console.error("\n👉 Install with:");
|
|
411
|
-
console.error(" npm install --save-dev " + missing.join(" "));
|
|
412
|
-
console.error("");
|
|
413
|
-
process.exit(1);
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
390
|
async function main() {
|
|
417
391
|
const hasDist = fs.existsSync(path.join(projectRoot, "dist"));
|
|
418
392
|
const hasTsConfig = fs.existsSync(path.join(projectRoot, "tsconfig.json"));
|
|
@@ -433,7 +407,6 @@ async function main() {
|
|
|
433
407
|
}
|
|
434
408
|
case "build": {
|
|
435
409
|
console.log("🚀 Building for production...");
|
|
436
|
-
checkDependencies("build");
|
|
437
410
|
const distPath = path.join(projectRoot, "dist");
|
|
438
411
|
const tsconfigPath = path.join(projectRoot, "tsconfig.json");
|
|
439
412
|
const hasSprintConfigTs = fs.existsSync(path.join(projectRoot, "sprint.config.ts"));
|
package/dist/esm/cli.js
CHANGED
|
@@ -368,32 +368,6 @@ async function runDoctor() {
|
|
|
368
368
|
}
|
|
369
369
|
logger.break();
|
|
370
370
|
}
|
|
371
|
-
const commandDependencies = {
|
|
372
|
-
build: {
|
|
373
|
-
ts: ["tsup", "typescript"],
|
|
374
|
-
js: ["tsup"]
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
function checkDependencies(command2, isTS) {
|
|
378
|
-
const config = commandDependencies[command2];
|
|
379
|
-
if (!config) return [];
|
|
380
|
-
const deps = config.ts ?? [];
|
|
381
|
-
const missing = [];
|
|
382
|
-
for (const dep of deps) {
|
|
383
|
-
const binPath = join(projectRoot, "node_modules", ".bin", 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}`);
|
|
390
|
-
}
|
|
391
|
-
console.error("\n👉 Install with:");
|
|
392
|
-
console.error(" npm install --save-dev " + missing.join(" "));
|
|
393
|
-
console.error("");
|
|
394
|
-
process.exit(1);
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
371
|
async function main() {
|
|
398
372
|
const hasDist = existsSync(join(projectRoot, "dist"));
|
|
399
373
|
const hasTsConfig = existsSync(join(projectRoot, "tsconfig.json"));
|
|
@@ -414,7 +388,6 @@ async function main() {
|
|
|
414
388
|
}
|
|
415
389
|
case "build": {
|
|
416
390
|
console.log("🚀 Building for production...");
|
|
417
|
-
checkDependencies("build");
|
|
418
391
|
const distPath = join(projectRoot, "dist");
|
|
419
392
|
const tsconfigPath = join(projectRoot, "tsconfig.json");
|
|
420
393
|
const hasSprintConfigTs = existsSync(join(projectRoot, "sprint.config.ts"));
|