sprint-es 0.0.90 → 0.0.91

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
@@ -303,16 +303,11 @@ switch (command) {
303
303
  break;
304
304
  case "build":
305
305
  console.log("🚀 Building for production...");
306
- const hasViteConfig = fs.existsSync(path.join(projectRoot, "vite.config.ts")) || fs.existsSync(path.join(projectRoot, "vite.config.js"));
307
- if (hasViteConfig) runCommand("vite build", { NODE_ENV: "production" });
308
- else {
309
- console.error("❌ Error: no vite config found.");
310
- process.exit(1);
311
- }
306
+ runCommand("tsc && tsc-alias", { NODE_ENV: "production" });
312
307
  break;
313
308
  case "start":
314
309
  console.log("🚀 Starting production server...");
315
- runCommand("node dist/app.js", { NODE_ENV: "production" });
310
+ runCommand("node -r ts-node/register/transpile-only -r tsconfig-paths/register build/app.js", { NODE_ENV: "production" });
316
311
  break;
317
312
  case "doctor":
318
313
  runDoctor();
package/dist/esm/cli.js CHANGED
@@ -285,16 +285,11 @@ switch (command) {
285
285
  break;
286
286
  case "build":
287
287
  console.log("🚀 Building for production...");
288
- const hasViteConfig = existsSync(join(projectRoot, "vite.config.ts")) || existsSync(join(projectRoot, "vite.config.js"));
289
- if (hasViteConfig) runCommand("vite build", { NODE_ENV: "production" });
290
- else {
291
- console.error("❌ Error: no vite config found.");
292
- process.exit(1);
293
- }
288
+ runCommand("tsc && tsc-alias", { NODE_ENV: "production" });
294
289
  break;
295
290
  case "start":
296
291
  console.log("🚀 Starting production server...");
297
- runCommand("node dist/app.js", { NODE_ENV: "production" });
292
+ runCommand("node -r ts-node/register/transpile-only -r tsconfig-paths/register build/app.js", { NODE_ENV: "production" });
298
293
  break;
299
294
  case "doctor":
300
295
  runDoctor();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprint-es",
3
- "version": "0.0.90",
3
+ "version": "0.0.91",
4
4
  "description": "Sprint - Quickly API",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",