sprint-es 0.0.115 → 0.0.116
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 +15 -2
- package/dist/esm/cli.js +16 -3
- package/package.json +1 -1
package/dist/cjs/cli.cjs
CHANGED
|
@@ -416,8 +416,21 @@ async function main() {
|
|
|
416
416
|
await runCommand(`tsc --project "${tsconfigPath}" --noEmit`, { NODE_ENV: "production" });
|
|
417
417
|
console.log("[Sprint] Type check completed ✓");
|
|
418
418
|
console.log("[Sprint] Resolving aliases...");
|
|
419
|
-
|
|
420
|
-
|
|
419
|
+
const aliasConfig = {
|
|
420
|
+
extends: "./tsconfig.json",
|
|
421
|
+
compilerOptions: {
|
|
422
|
+
outDir: "./dist",
|
|
423
|
+
noEmit: false
|
|
424
|
+
}
|
|
425
|
+
};
|
|
426
|
+
const aliasConfigPath = path.join(projectRoot, "tsconfig.alias.json");
|
|
427
|
+
fs.writeFileSync(aliasConfigPath, JSON.stringify(aliasConfig, null, 4));
|
|
428
|
+
try {
|
|
429
|
+
await runCommand(`tsc-alias --project "${aliasConfigPath}"`, { NODE_ENV: "production" });
|
|
430
|
+
console.log("[Sprint] Aliases resolved ✓");
|
|
431
|
+
} finally {
|
|
432
|
+
fs.rmSync(aliasConfigPath, { force: true });
|
|
433
|
+
}
|
|
421
434
|
if (isTS) {
|
|
422
435
|
console.log("[Sprint] Compiling sprint.config.ts...");
|
|
423
436
|
await runCommand(
|
package/dist/esm/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { existsSync, rmSync, readFileSync, readdirSync, statSync } from "fs";
|
|
2
|
+
import { existsSync, rmSync, writeFileSync, readFileSync, readdirSync, statSync } from "fs";
|
|
3
3
|
import * as crypto from "crypto";
|
|
4
4
|
import { resolve, join } from "path";
|
|
5
5
|
import { spawn } from "child_process";
|
|
@@ -397,8 +397,21 @@ async function main() {
|
|
|
397
397
|
await runCommand(`tsc --project "${tsconfigPath}" --noEmit`, { NODE_ENV: "production" });
|
|
398
398
|
console.log("[Sprint] Type check completed ✓");
|
|
399
399
|
console.log("[Sprint] Resolving aliases...");
|
|
400
|
-
|
|
401
|
-
|
|
400
|
+
const aliasConfig = {
|
|
401
|
+
extends: "./tsconfig.json",
|
|
402
|
+
compilerOptions: {
|
|
403
|
+
outDir: "./dist",
|
|
404
|
+
noEmit: false
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
const aliasConfigPath = join(projectRoot, "tsconfig.alias.json");
|
|
408
|
+
writeFileSync(aliasConfigPath, JSON.stringify(aliasConfig, null, 4));
|
|
409
|
+
try {
|
|
410
|
+
await runCommand(`tsc-alias --project "${aliasConfigPath}"`, { NODE_ENV: "production" });
|
|
411
|
+
console.log("[Sprint] Aliases resolved ✓");
|
|
412
|
+
} finally {
|
|
413
|
+
rmSync(aliasConfigPath, { force: true });
|
|
414
|
+
}
|
|
402
415
|
if (isTS) {
|
|
403
416
|
console.log("[Sprint] Compiling sprint.config.ts...");
|
|
404
417
|
await runCommand(
|