@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.
@@ -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,iBA0MvD"}
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"}
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitrostack/cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.4",
4
4
  "description": "CLI for NitroStack - Create and manage MCP server projects",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -23,6 +23,7 @@
23
23
  },
24
24
  "devDependencies": {
25
25
  "@nitrostack/cli": "^1",
26
+ "@types/node": "^22.10.0",
26
27
  "typescript": "^5.3.3"
27
28
  },
28
29
  "author": ""
@@ -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
- @Injectable()
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
- @Injectable()
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
- @Injectable()
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
- @Injectable()
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"]
@@ -29,6 +29,7 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@nitrostack/cli": "^1",
32
+ "@types/node": "^22.10.0",
32
33
  "typescript": "^5.3.3"
33
34
  }
34
35
  }
@@ -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
- @Injectable()
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
- "compilerOptions": {
3
- "target": "ES2022",
4
- "module": "ES2022",
5
- "lib": [
6
- "ES2022"
7
- ],
8
- "moduleResolution": "node",
9
- "rootDir": "./src",
10
- "outDir": "./dist",
11
- "esModuleInterop": true,
12
- "forceConsistentCasingInFileNames": true,
13
- "strict": true,
14
- "skipLibCheck": true,
15
- "resolveJsonModule": true,
16
- "declaration": true,
17
- "declarationMap": true,
18
- "sourceMap": true,
19
- "experimentalDecorators": true,
20
- "emitDecoratorMetadata": true
21
- },
22
- "include": [
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
  }
@@ -20,6 +20,7 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@nitrostack/cli": "^1",
23
+ "@types/node": "^22.10.0",
23
24
  "typescript": "^5.3.3"
24
25
  }
25
26
  }
@@ -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"]