sprint-es 0.0.106 → 0.0.107

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
@@ -400,7 +400,6 @@ async function main() {
400
400
  case "build": {
401
401
  console.log("🚀 Building for production...");
402
402
  const isTS = fs.existsSync(path.join(projectRoot, "sprint.config.ts"));
403
- const buildCmd = "tsc && tsc-esm-fix --src=dist --ext=.js && tsc-alias";
404
403
  if (isTS) {
405
404
  const tsconfigPath = path.join(projectRoot, "tsconfig.json");
406
405
  const tsconfig = JSON.parse(stripJsonComments(fs.readFileSync(tsconfigPath, "utf-8")));
@@ -409,16 +408,23 @@ async function main() {
409
408
  if (patched.length !== originalInclude.length) {
410
409
  fs.writeFileSync(tsconfigPath, JSON.stringify({ ...tsconfig, include: patched }, null, 4));
411
410
  try {
412
- await runCommand(buildCmd, { NODE_ENV: "production" });
411
+ await runCommand("tsc", { NODE_ENV: "production" });
412
+ await runCommand("tsc-alias", { NODE_ENV: "production" });
413
413
  } finally {
414
414
  fs.writeFileSync(tsconfigPath, JSON.stringify(tsconfig, null, 4));
415
415
  }
416
- } else await runCommand(buildCmd, { NODE_ENV: "production" });
416
+ } else {
417
+ await runCommand("tsc", { NODE_ENV: "production" });
418
+ await runCommand("tsc-alias", { NODE_ENV: "production" });
419
+ }
417
420
  await runCommand(
418
421
  "esbuild sprint.config.ts --outfile=dist/sprint.config.js --platform=node --format=esm --bundle=false",
419
422
  { NODE_ENV: "production" }
420
423
  );
421
- } else await runCommand(buildCmd, { NODE_ENV: "production" });
424
+ } else {
425
+ await runCommand("tsc", { NODE_ENV: "production" });
426
+ await runCommand("tsc-alias", { NODE_ENV: "production" });
427
+ }
422
428
  break;
423
429
  }
424
430
  case "start": {
package/dist/esm/cli.js CHANGED
@@ -381,7 +381,6 @@ async function main() {
381
381
  case "build": {
382
382
  console.log("🚀 Building for production...");
383
383
  const isTS = existsSync(join(projectRoot, "sprint.config.ts"));
384
- const buildCmd = "tsc && tsc-esm-fix --src=dist --ext=.js && tsc-alias";
385
384
  if (isTS) {
386
385
  const tsconfigPath = join(projectRoot, "tsconfig.json");
387
386
  const tsconfig = JSON.parse(stripJsonComments(readFileSync(tsconfigPath, "utf-8")));
@@ -390,16 +389,23 @@ async function main() {
390
389
  if (patched.length !== originalInclude.length) {
391
390
  writeFileSync(tsconfigPath, JSON.stringify({ ...tsconfig, include: patched }, null, 4));
392
391
  try {
393
- await runCommand(buildCmd, { NODE_ENV: "production" });
392
+ await runCommand("tsc", { NODE_ENV: "production" });
393
+ await runCommand("tsc-alias", { NODE_ENV: "production" });
394
394
  } finally {
395
395
  writeFileSync(tsconfigPath, JSON.stringify(tsconfig, null, 4));
396
396
  }
397
- } else await runCommand(buildCmd, { NODE_ENV: "production" });
397
+ } else {
398
+ await runCommand("tsc", { NODE_ENV: "production" });
399
+ await runCommand("tsc-alias", { NODE_ENV: "production" });
400
+ }
398
401
  await runCommand(
399
402
  "esbuild sprint.config.ts --outfile=dist/sprint.config.js --platform=node --format=esm --bundle=false",
400
403
  { NODE_ENV: "production" }
401
404
  );
402
- } else await runCommand(buildCmd, { NODE_ENV: "production" });
405
+ } else {
406
+ await runCommand("tsc", { NODE_ENV: "production" });
407
+ await runCommand("tsc-alias", { NODE_ENV: "production" });
408
+ }
403
409
  break;
404
410
  }
405
411
  case "start": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprint-es",
3
- "version": "0.0.106",
3
+ "version": "0.0.107",
4
4
  "description": "Sprint - Quickly API",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -82,6 +82,7 @@
82
82
  "axios": "^1.13.2",
83
83
  "cors": "^2.8.5",
84
84
  "dotenv": "^17.3.1",
85
+ "esbuild": "^0.27.3",
85
86
  "express": "^5.1.0",
86
87
  "morgan": "^1.10.1",
87
88
  "node-cron": "^3.0.3",