sprint-es 0.0.131 → 0.0.132
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 +1 -12
- package/dist/cjs/index.cjs +4 -0
- package/dist/esm/cli.js +1 -12
- package/dist/esm/index.js +4 -0
- package/dist/types/sprint.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/cli.cjs
CHANGED
|
@@ -406,19 +406,8 @@ async function main() {
|
|
|
406
406
|
fs.rmSync(distPath, { recursive: true, force: true });
|
|
407
407
|
console.log("[Sprint] dist cleaned ✓");
|
|
408
408
|
console.log("[Sprint] Compiling with tsup...");
|
|
409
|
-
const tsupCmd = `
|
|
410
|
-
tsup src/**/*.ts
|
|
411
|
-
--outDir dist
|
|
412
|
-
--format esm,cjs
|
|
413
|
-
--target es2020
|
|
414
|
-
--sourcemap
|
|
415
|
-
--clean
|
|
416
|
-
--dts
|
|
417
|
-
--splitting false
|
|
418
|
-
--skip-node-modules-bundle
|
|
419
|
-
`;
|
|
420
409
|
await runCommand(
|
|
421
|
-
`tsc &&
|
|
410
|
+
`tsc && tsup`,
|
|
422
411
|
{ NODE_ENV: "production" }
|
|
423
412
|
);
|
|
424
413
|
console.log("[Sprint] Compilation completed ✓");
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -783,6 +783,10 @@ class Sprint {
|
|
|
783
783
|
console.log(` ${dim}Local:${reset} http://localhost:${bold}${port}${reset}`);
|
|
784
784
|
console.log(` ${dim}Prefix:${reset} ${bold}${prefixInfo}${reset}`);
|
|
785
785
|
console.log(` ${dim}Healthcheck:${reset} http://localhost:${port}/healthcheck ${dim}(also available at /health)${reset}`);
|
|
786
|
+
console.log("");
|
|
787
|
+
console.log(` ${dim}Loaded routes:${reset} ${bold}${this.registeredRoutes.length}${reset}`);
|
|
788
|
+
console.log(` ${dim}Loaded middlewares:${reset} ${bold}${this.loadedMiddlewares.length}${reset}`);
|
|
789
|
+
console.log(` ${dim}Healthcheck:${reset} http://localhost:${port}/healthcheck ${dim}(also available at /health)${reset}`);
|
|
786
790
|
if (this.openapi.generateOnBuild || this.openapi.swaggerUi.enabled) console.log("");
|
|
787
791
|
if (this.openapi.generateOnBuild) console.log(` ${dim}OpenAPI Spec:${reset} http://localhost:${port}${this.openapi.path}`);
|
|
788
792
|
if (this.openapi.swaggerUi.enabled) console.log(` ${dim}Swagger UI:${reset} http://localhost:${port}${this.openapi.swaggerUi.path}`);
|
package/dist/esm/cli.js
CHANGED
|
@@ -387,19 +387,8 @@ async function main() {
|
|
|
387
387
|
rmSync(distPath, { recursive: true, force: true });
|
|
388
388
|
console.log("[Sprint] dist cleaned ✓");
|
|
389
389
|
console.log("[Sprint] Compiling with tsup...");
|
|
390
|
-
const tsupCmd = `
|
|
391
|
-
tsup src/**/*.ts
|
|
392
|
-
--outDir dist
|
|
393
|
-
--format esm,cjs
|
|
394
|
-
--target es2020
|
|
395
|
-
--sourcemap
|
|
396
|
-
--clean
|
|
397
|
-
--dts
|
|
398
|
-
--splitting false
|
|
399
|
-
--skip-node-modules-bundle
|
|
400
|
-
`;
|
|
401
390
|
await runCommand(
|
|
402
|
-
`tsc &&
|
|
391
|
+
`tsc && tsup`,
|
|
403
392
|
{ NODE_ENV: "production" }
|
|
404
393
|
);
|
|
405
394
|
console.log("[Sprint] Compilation completed ✓");
|
package/dist/esm/index.js
CHANGED
|
@@ -758,6 +758,10 @@ class Sprint {
|
|
|
758
758
|
console.log(` ${dim}Local:${reset} http://localhost:${bold}${port}${reset}`);
|
|
759
759
|
console.log(` ${dim}Prefix:${reset} ${bold}${prefixInfo}${reset}`);
|
|
760
760
|
console.log(` ${dim}Healthcheck:${reset} http://localhost:${port}/healthcheck ${dim}(also available at /health)${reset}`);
|
|
761
|
+
console.log("");
|
|
762
|
+
console.log(` ${dim}Loaded routes:${reset} ${bold}${this.registeredRoutes.length}${reset}`);
|
|
763
|
+
console.log(` ${dim}Loaded middlewares:${reset} ${bold}${this.loadedMiddlewares.length}${reset}`);
|
|
764
|
+
console.log(` ${dim}Healthcheck:${reset} http://localhost:${port}/healthcheck ${dim}(also available at /health)${reset}`);
|
|
761
765
|
if (this.openapi.generateOnBuild || this.openapi.swaggerUi.enabled) console.log("");
|
|
762
766
|
if (this.openapi.generateOnBuild) console.log(` ${dim}OpenAPI Spec:${reset} http://localhost:${port}${this.openapi.path}`);
|
|
763
767
|
if (this.openapi.swaggerUi.enabled) console.log(` ${dim}Swagger UI:${reset} http://localhost:${port}${this.openapi.swaggerUi.path}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sprint.d.ts","sourceRoot":"","sources":["../../src/sprint.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,OAAO,EAA+B,gBAAgB,EAAoB,MAAM,SAAS,CAAC;AACnG,OAAO,OAAO,EAAE,EAAE,WAAW,EAAoD,MAAM,SAAS,CAAC;AAejG,eAAO,MAAM,aAAa,SAAQ,CAAC;AACnC,eAAO,MAAM,YAAY,SAAS,CAAC;AA8CnC,qBAAa,MAAM;IACR,GAAG,EAAE,WAAW,CAAC;IACxB,OAAO,CAAC,IAAI,CAAwD;IACpE,OAAO,CAAC,UAAU,CAAsB;IACxC,OAAO,CAAC,eAAe,CAA2B;IAClD,OAAO,CAAC,YAAY,CAAwB;IAC5C,OAAO,CAAC,SAAS,CAAkB;IACnC,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,YAAY,CAAiB;IACrC,OAAO,CAAC,MAAM,CAAe;IAC7B,OAAO,CAAC,iBAAiB,CAA0B;IACnD,OAAO,CAAC,OAAO,CAcb;IACF,OAAO,CAAC,OAAO,CAcb;IACF,OAAO,CAAC,aAAa,CAAa;IAClC,OAAO,CAAC,gBAAgB,CAIhB;;YAsJM,IAAI;IA0ClB,OAAO,CAAC,YAAY;IAiDpB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IA4B9B;;OAEG;YACW,eAAe;IA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