sprint-es 0.0.127 → 0.0.129

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
@@ -405,21 +405,16 @@ async function main() {
405
405
  console.log("[Sprint] Cleaning dist...");
406
406
  fs.rmSync(distPath, { recursive: true, force: true });
407
407
  console.log("[Sprint] dist cleaned ✓");
408
- const entryFile = fs.existsSync(path.join(projectRoot, "src/app.ts")) ? "src/app.ts" : fs.existsSync(path.join(projectRoot, "src/index.ts")) ? "src/index.ts" : fs.existsSync(path.join(projectRoot, "src/app.js")) ? "src/app.js" : "src/index.js";
409
- console.log(`[Sprint] Entry point: ${entryFile}`);
410
- console.log("[Sprint] Type checking...");
411
- await runCommand(`tsc --project "${tsconfigPath}" --noEmit`, { NODE_ENV: "production" });
412
- console.log("[Sprint] Type check completed ✓");
413
408
  console.log("[Sprint] Compiling with tsup...");
414
409
  await runCommand(
415
- `tsup "${entryFile}" --outDir "${distPath}" --format cjs --target es2022 --sourcemap --clean --tsconfig "${tsconfigPath}"`,
410
+ `tsc && tsup`,
416
411
  { NODE_ENV: "production" }
417
412
  );
418
413
  console.log("[Sprint] Compilation completed ✓");
419
414
  if (isTS) {
420
415
  console.log("[Sprint] Compiling sprint.config.ts...");
421
416
  await runCommand(
422
- `tsup sprint.config.ts --outDir "${distPath}" --format cjs --tsconfig "${tsconfigPath}"`,
417
+ `tsup sprint.config.ts --outDir "${distPath}" --format cjs --tsconfig "${tsconfigPath}" --clean false`,
423
418
  { NODE_ENV: "production" }
424
419
  );
425
420
  console.log("[Sprint] sprint.config.js generated ✓");
package/dist/esm/cli.js CHANGED
@@ -386,21 +386,16 @@ async function main() {
386
386
  console.log("[Sprint] Cleaning dist...");
387
387
  rmSync(distPath, { recursive: true, force: true });
388
388
  console.log("[Sprint] dist cleaned ✓");
389
- const entryFile = existsSync(join(projectRoot, "src/app.ts")) ? "src/app.ts" : existsSync(join(projectRoot, "src/index.ts")) ? "src/index.ts" : existsSync(join(projectRoot, "src/app.js")) ? "src/app.js" : "src/index.js";
390
- console.log(`[Sprint] Entry point: ${entryFile}`);
391
- console.log("[Sprint] Type checking...");
392
- await runCommand(`tsc --project "${tsconfigPath}" --noEmit`, { NODE_ENV: "production" });
393
- console.log("[Sprint] Type check completed ✓");
394
389
  console.log("[Sprint] Compiling with tsup...");
395
390
  await runCommand(
396
- `tsup "${entryFile}" --outDir "${distPath}" --format cjs --target es2022 --sourcemap --clean --tsconfig "${tsconfigPath}"`,
391
+ `tsc && tsup`,
397
392
  { NODE_ENV: "production" }
398
393
  );
399
394
  console.log("[Sprint] Compilation completed ✓");
400
395
  if (isTS) {
401
396
  console.log("[Sprint] Compiling sprint.config.ts...");
402
397
  await runCommand(
403
- `tsup sprint.config.ts --outDir "${distPath}" --format cjs --tsconfig "${tsconfigPath}"`,
398
+ `tsup sprint.config.ts --outDir "${distPath}" --format cjs --tsconfig "${tsconfigPath}" --clean false`,
404
399
  { NODE_ENV: "production" }
405
400
  );
406
401
  console.log("[Sprint] sprint.config.js generated ✓");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprint-es",
3
- "version": "0.0.127",
3
+ "version": "0.0.129",
4
4
  "description": "Sprint - Quickly API",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",