sprint-es 0.0.109 → 0.0.110
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 +6 -5
- package/dist/esm/cli.js +6 -5
- package/package.json +1 -1
package/dist/cjs/cli.cjs
CHANGED
|
@@ -420,10 +420,10 @@ async function main() {
|
|
|
420
420
|
}
|
|
421
421
|
try {
|
|
422
422
|
console.log("[Sprint] Running tsc...");
|
|
423
|
-
await runCommand(
|
|
423
|
+
await runCommand(`tsc --project "${tsconfigPath}"`, { NODE_ENV: "production" });
|
|
424
424
|
console.log("[Sprint] tsc completed ✓");
|
|
425
425
|
console.log("[Sprint] Running tsc-alias...");
|
|
426
|
-
await runCommand(
|
|
426
|
+
await runCommand(`tsc-alias --project "${tsconfigPath}"`, { NODE_ENV: "production" });
|
|
427
427
|
console.log("[Sprint] tsc-alias completed ✓");
|
|
428
428
|
} finally {
|
|
429
429
|
if (needsPatching) {
|
|
@@ -434,16 +434,17 @@ async function main() {
|
|
|
434
434
|
}
|
|
435
435
|
console.log("[Sprint] Compiling sprint.config.ts with esbuild...");
|
|
436
436
|
await runCommand(
|
|
437
|
-
|
|
437
|
+
`esbuild "${path.join(projectRoot, "sprint.config.ts")}" --outfile="${path.join(projectRoot, "dist/sprint.config.js")}" --platform=node --format=esm --bundle=false`,
|
|
438
438
|
{ NODE_ENV: "production" }
|
|
439
439
|
);
|
|
440
440
|
console.log("[Sprint] sprint.config.js generated ✓");
|
|
441
441
|
} else {
|
|
442
|
+
const tsconfigPath = path.join(projectRoot, "tsconfig.json");
|
|
442
443
|
console.log("[Sprint] Running tsc...");
|
|
443
|
-
await runCommand(
|
|
444
|
+
await runCommand(`tsc --project "${tsconfigPath}"`, { NODE_ENV: "production" });
|
|
444
445
|
console.log("[Sprint] tsc completed ✓");
|
|
445
446
|
console.log("[Sprint] Running tsc-alias...");
|
|
446
|
-
await runCommand(
|
|
447
|
+
await runCommand(`tsc-alias --project "${tsconfigPath}"`, { NODE_ENV: "production" });
|
|
447
448
|
console.log("[Sprint] tsc-alias completed ✓");
|
|
448
449
|
}
|
|
449
450
|
break;
|
package/dist/esm/cli.js
CHANGED
|
@@ -401,10 +401,10 @@ async function main() {
|
|
|
401
401
|
}
|
|
402
402
|
try {
|
|
403
403
|
console.log("[Sprint] Running tsc...");
|
|
404
|
-
await runCommand(
|
|
404
|
+
await runCommand(`tsc --project "${tsconfigPath}"`, { NODE_ENV: "production" });
|
|
405
405
|
console.log("[Sprint] tsc completed ✓");
|
|
406
406
|
console.log("[Sprint] Running tsc-alias...");
|
|
407
|
-
await runCommand(
|
|
407
|
+
await runCommand(`tsc-alias --project "${tsconfigPath}"`, { NODE_ENV: "production" });
|
|
408
408
|
console.log("[Sprint] tsc-alias completed ✓");
|
|
409
409
|
} finally {
|
|
410
410
|
if (needsPatching) {
|
|
@@ -415,16 +415,17 @@ async function main() {
|
|
|
415
415
|
}
|
|
416
416
|
console.log("[Sprint] Compiling sprint.config.ts with esbuild...");
|
|
417
417
|
await runCommand(
|
|
418
|
-
|
|
418
|
+
`esbuild "${join(projectRoot, "sprint.config.ts")}" --outfile="${join(projectRoot, "dist/sprint.config.js")}" --platform=node --format=esm --bundle=false`,
|
|
419
419
|
{ NODE_ENV: "production" }
|
|
420
420
|
);
|
|
421
421
|
console.log("[Sprint] sprint.config.js generated ✓");
|
|
422
422
|
} else {
|
|
423
|
+
const tsconfigPath = join(projectRoot, "tsconfig.json");
|
|
423
424
|
console.log("[Sprint] Running tsc...");
|
|
424
|
-
await runCommand(
|
|
425
|
+
await runCommand(`tsc --project "${tsconfigPath}"`, { NODE_ENV: "production" });
|
|
425
426
|
console.log("[Sprint] tsc completed ✓");
|
|
426
427
|
console.log("[Sprint] Running tsc-alias...");
|
|
427
|
-
await runCommand(
|
|
428
|
+
await runCommand(`tsc-alias --project "${tsconfigPath}"`, { NODE_ENV: "production" });
|
|
428
429
|
console.log("[Sprint] tsc-alias completed ✓");
|
|
429
430
|
}
|
|
430
431
|
break;
|