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 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
- const buildCmd = isTS ? "tsc && tsc-alias" : "echo 'No build step needed for JS projects'";
311
- runCommand(buildCmd, { NODE_ENV: "production" });
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
- const buildCmd = isTS ? "tsc && tsc-alias" : "echo 'No build step needed for JS projects'";
293
- runCommand(buildCmd, { NODE_ENV: "production" });
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": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprint-es",
3
- "version": "0.0.94",
3
+ "version": "0.0.95",
4
4
  "description": "Sprint - Quickly API",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",