sprint-es 0.0.126 → 0.0.128

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,14 +405,9 @@ 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 ✓");
package/dist/esm/cli.js CHANGED
@@ -386,14 +386,9 @@ 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 ✓");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprint-es",
3
- "version": "0.0.126",
3
+ "version": "0.0.128",
4
4
  "description": "Sprint - Quickly API",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",