@nitrostack/cli 1.0.1 → 1.0.4
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/commands/build.d.ts.map +1 -1
- package/dist/commands/build.js +6 -0
- package/package.json +1 -1
- package/templates/typescript-oauth/package.json +1 -0
- package/templates/typescript-oauth/src/modules/flights/booking.tools.ts +2 -1
- package/templates/typescript-oauth/src/modules/flights/flights.prompts.ts +2 -1
- package/templates/typescript-oauth/src/modules/flights/flights.resources.ts +2 -1
- package/templates/typescript-oauth/src/modules/flights/flights.tools.ts +2 -1
- package/templates/typescript-oauth/tsconfig.json +2 -1
- package/templates/typescript-pizzaz/package.json +1 -0
- package/templates/typescript-pizzaz/src/modules/pizzaz/pizzaz.tools.ts +2 -1
- package/templates/typescript-pizzaz/tsconfig.json +21 -28
- package/templates/typescript-starter/package.json +1 -0
- package/templates/typescript-starter/tsconfig.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":"AAeA,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":"AAeA,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,iBA8MvD"}
|
package/dist/commands/build.js
CHANGED
|
@@ -166,6 +166,12 @@ function init() {
|
|
|
166
166
|
}
|
|
167
167
|
catch (error) {
|
|
168
168
|
tscSpinner.fail('TypeScript compilation failed');
|
|
169
|
+
// Show the actual TypeScript errors
|
|
170
|
+
const execError = error;
|
|
171
|
+
if (execError.stdout)
|
|
172
|
+
console.log('\n' + execError.stdout.toString());
|
|
173
|
+
if (execError.stderr)
|
|
174
|
+
console.log('\n' + execError.stderr.toString());
|
|
169
175
|
throw error;
|
|
170
176
|
}
|
|
171
177
|
// Summary
|
package/package.json
CHANGED
|
@@ -2,7 +2,8 @@ import { ToolDecorator as Tool, Widget, ExecutionContext, z, UseGuards, Injectab
|
|
|
2
2
|
import { OAuthGuard } from '../../guards/oauth.guard.js';
|
|
3
3
|
import { DuffelService } from '../../services/duffel.service.js';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// Note: Using explicit deps for ESM compatibility
|
|
6
|
+
@Injectable({ deps: [DuffelService] })
|
|
6
7
|
export class BookingTools {
|
|
7
8
|
constructor(private duffelService: DuffelService) { }
|
|
8
9
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PromptDecorator as Prompt, ExecutionContext, Injectable } from 'nitrostack';
|
|
2
2
|
import { DuffelService } from '../../services/duffel.service.js';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// Note: Using explicit deps for ESM compatibility
|
|
5
|
+
@Injectable({ deps: [DuffelService] })
|
|
5
6
|
export class FlightPrompts {
|
|
6
7
|
constructor(private duffelService: DuffelService) { }
|
|
7
8
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ResourceDecorator as Resource, ExecutionContext, z, Injectable } from 'nitrostack';
|
|
2
2
|
import { DuffelService } from '../../services/duffel.service.js';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// Note: Using explicit deps for ESM compatibility
|
|
5
|
+
@Injectable({ deps: [DuffelService] })
|
|
5
6
|
export class FlightResources {
|
|
6
7
|
constructor(private duffelService: DuffelService) { }
|
|
7
8
|
|
|
@@ -3,7 +3,8 @@ import { OAuthGuard } from '../../guards/oauth.guard.js';
|
|
|
3
3
|
import { DuffelService } from '../../services/duffel.service.js';
|
|
4
4
|
import { format } from 'date-fns';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// Note: Using explicit deps for ESM compatibility
|
|
7
|
+
@Injectable({ deps: [DuffelService] })
|
|
7
8
|
export class FlightTools {
|
|
8
9
|
constructor(private duffelService: DuffelService) { }
|
|
9
10
|
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"declarationMap": true,
|
|
16
16
|
"sourceMap": true,
|
|
17
17
|
"experimentalDecorators": true,
|
|
18
|
-
"emitDecoratorMetadata": true
|
|
18
|
+
"emitDecoratorMetadata": true,
|
|
19
|
+
"types": ["node"]
|
|
19
20
|
},
|
|
20
21
|
"include": ["src/**/*"],
|
|
21
22
|
"exclude": ["node_modules", "dist", "src/widgets"]
|
|
@@ -15,7 +15,8 @@ const ShowShopSchema = z.object({
|
|
|
15
15
|
shopId: z.string().describe('ID of the pizza shop to display'),
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
// Note: Using explicit deps for ESM compatibility
|
|
19
|
+
@Injectable({ deps: [PizzazService] })
|
|
19
20
|
export class PizzazTools {
|
|
20
21
|
constructor(private readonly pizzazService: PizzazService) { }
|
|
21
22
|
|
|
@@ -1,30 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"src/**/*"
|
|
24
|
-
],
|
|
25
|
-
"exclude": [
|
|
26
|
-
"node_modules",
|
|
27
|
-
"dist",
|
|
28
|
-
"src/widgets"
|
|
29
|
-
]
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ES2022",
|
|
5
|
+
"lib": ["ES2022"],
|
|
6
|
+
"moduleResolution": "node",
|
|
7
|
+
"rootDir": "./src",
|
|
8
|
+
"outDir": "./dist",
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"forceConsistentCasingInFileNames": true,
|
|
11
|
+
"strict": true,
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"declaration": true,
|
|
15
|
+
"declarationMap": true,
|
|
16
|
+
"sourceMap": true,
|
|
17
|
+
"experimentalDecorators": true,
|
|
18
|
+
"emitDecoratorMetadata": true,
|
|
19
|
+
"types": ["node"]
|
|
20
|
+
},
|
|
21
|
+
"include": ["src/**/*"],
|
|
22
|
+
"exclude": ["node_modules", "dist", "src/widgets"]
|
|
30
23
|
}
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"declarationMap": true,
|
|
16
16
|
"sourceMap": true,
|
|
17
17
|
"experimentalDecorators": true,
|
|
18
|
-
"emitDecoratorMetadata": true
|
|
18
|
+
"emitDecoratorMetadata": true,
|
|
19
|
+
"types": ["node"]
|
|
19
20
|
},
|
|
20
21
|
"include": ["src/**/*"],
|
|
21
22
|
"exclude": ["node_modules", "dist", "src/widgets"]
|