sprint-es 0.0.94 → 0.0.95
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 +4 -2
- package/dist/esm/cli.js +4 -2
- package/package.json +1 -1
package/dist/cjs/cli.cjs
CHANGED
|
@@ -307,8 +307,10 @@ switch (command) {
|
|
|
307
307
|
case "build": {
|
|
308
308
|
console.log("🚀 Building for production...");
|
|
309
309
|
const isTS = fs.existsSync(path.join(projectRoot, "sprint.config.ts"));
|
|
310
|
-
|
|
311
|
-
|
|
310
|
+
if (isTS) {
|
|
311
|
+
runCommand("tsc && tsc-alias", { NODE_ENV: "production" });
|
|
312
|
+
runCommand("tsc sprint.config.ts --outDir dist --noEmit false --skipLibCheck true", { NODE_ENV: "production" });
|
|
313
|
+
} else runCommand("tsc && tsc-alias", { NODE_ENV: "production" });
|
|
312
314
|
break;
|
|
313
315
|
}
|
|
314
316
|
case "start": {
|
package/dist/esm/cli.js
CHANGED
|
@@ -289,8 +289,10 @@ switch (command) {
|
|
|
289
289
|
case "build": {
|
|
290
290
|
console.log("🚀 Building for production...");
|
|
291
291
|
const isTS = existsSync(join(projectRoot, "sprint.config.ts"));
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
if (isTS) {
|
|
293
|
+
runCommand("tsc && tsc-alias", { NODE_ENV: "production" });
|
|
294
|
+
runCommand("tsc sprint.config.ts --outDir dist --noEmit false --skipLibCheck true", { NODE_ENV: "production" });
|
|
295
|
+
} else runCommand("tsc && tsc-alias", { NODE_ENV: "production" });
|
|
294
296
|
break;
|
|
295
297
|
}
|
|
296
298
|
case "start": {
|