create-sprint 0.0.60 → 0.0.62

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.
@@ -9,7 +9,7 @@ export function generateJWTKeys() {
9
9
  }
10
10
  export function getTypeScriptPackageJson(name, telemetry) {
11
11
  const deps = {
12
- "sprint-es": "^0.0.48"
12
+ "sprint-es": "^0.0.54"
13
13
  };
14
14
  const devDeps = {
15
15
  "@types/node": "^22.0.0",
@@ -39,7 +39,7 @@ export function getTypeScriptPackageJson(name, telemetry) {
39
39
  }
40
40
  export function getJavaScriptPackageJson(name, telemetry) {
41
41
  const deps = {
42
- "sprint-es": "^0.0.48"
42
+ "sprint-es": "^0.0.54"
43
43
  };
44
44
  if (telemetry === "sentry" || telemetry === "glitchtip") {
45
45
  deps["@sentry/node"] = "^8.0.0";
@@ -545,14 +545,16 @@ export function getSprintConfigFile(language, telemetry) {
545
545
  let config = `import type { SprintOptions } from "sprint-es";
546
546
 
547
547
  export const config: SprintOptions = {
548
- port: process.env.PORT ? parseInt(process.env.PORT) : 3000
548
+ openapi: {
549
+ /* Generate OpenAPI spec on build - Coming Soon */
550
+ generateOnBuild: false
551
+ }
549
552
  };
550
553
 
551
554
  // Add Vite config here if needed
552
555
  // export const vite = {
553
556
  // build: { ... }
554
557
  // };
555
-
556
558
  `;
557
559
  if (telemetry === "sentry" || telemetry === "glitchtip") {
558
560
  config += `import { initTelemetry } from "sprint-es/telemetry";
@@ -576,7 +578,10 @@ initTelemetry({
576
578
  return config;
577
579
  }
578
580
  let config = `export const config = {
579
- port: process.env.PORT ? parseInt(process.env.PORT) : 3000
581
+ openapi: {
582
+ /* Generate OpenAPI spec on build - Coming Soon */
583
+ generateOnBuild: false
584
+ }
580
585
  };
581
586
  `;
582
587
  if (telemetry === "sentry" || telemetry === "glitchtip") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sprint",
3
- "version": "0.0.60",
3
+ "version": "0.0.62",
4
4
  "description": "Create a new Sprint API project",
5
5
  "type": "module",
6
6
  "bin": {
package/src/generators.ts CHANGED
@@ -16,7 +16,7 @@ export function generateJWTKeys(): JWTKeys {
16
16
 
17
17
  export function getTypeScriptPackageJson(name: string, telemetry: string) {
18
18
  const deps: Record<string, string> = {
19
- "sprint-es": "^0.0.48"
19
+ "sprint-es": "^0.0.54"
20
20
  };
21
21
 
22
22
  const devDeps: Record<string, string> = {
@@ -49,7 +49,7 @@ export function getTypeScriptPackageJson(name: string, telemetry: string) {
49
49
 
50
50
  export function getJavaScriptPackageJson(name: string, telemetry: string) {
51
51
  const deps: Record<string, string> = {
52
- "sprint-es": "^0.0.48"
52
+ "sprint-es": "^0.0.54"
53
53
  };
54
54
 
55
55
  if (telemetry === "sentry" || telemetry === "glitchtip") {
@@ -572,14 +572,16 @@ export function getSprintConfigFile(language: string, telemetry: string) {
572
572
  let config = `import type { SprintOptions } from "sprint-es";
573
573
 
574
574
  export const config: SprintOptions = {
575
- port: process.env.PORT ? parseInt(process.env.PORT) : 3000
575
+ openapi: {
576
+ /* Generate OpenAPI spec on build - Coming Soon */
577
+ generateOnBuild: false
578
+ }
576
579
  };
577
580
 
578
581
  // Add Vite config here if needed
579
582
  // export const vite = {
580
583
  // build: { ... }
581
584
  // };
582
-
583
585
  `;
584
586
 
585
587
  if (telemetry === "sentry" || telemetry === "glitchtip") {
@@ -605,7 +607,10 @@ initTelemetry({
605
607
  }
606
608
 
607
609
  let config = `export const config = {
608
- port: process.env.PORT ? parseInt(process.env.PORT) : 3000
610
+ openapi: {
611
+ /* Generate OpenAPI spec on build - Coming Soon */
612
+ generateOnBuild: false
613
+ }
609
614
  };
610
615
  `;
611
616