@ng-annotate/angular 0.2.3 → 0.2.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-annotate/angular",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "repository": {
6
6
  "type": "git",
@@ -75,12 +75,12 @@ function addMcpConfig() {
75
75
  context.logger.info('.mcp.json already exists, skipping.');
76
76
  return;
77
77
  }
78
+ const isWindows = process.platform === 'win32';
78
79
  const mcpConfig = {
79
80
  mcpServers: {
80
- 'ng-annotate': {
81
- command: 'npx',
82
- args: ['-y', '@ng-annotate/mcp-server'],
83
- },
81
+ 'ng-annotate': isWindows
82
+ ? { command: 'cmd', args: ['/c', 'npx', '-y', '@ng-annotate/mcp-server'] }
83
+ : { command: 'npx', args: ['-y', '@ng-annotate/mcp-server'] },
84
84
  },
85
85
  };
86
86
  tree.create('.mcp.json', JSON.stringify(mcpConfig, null, 2) + '\n');
@@ -107,12 +107,12 @@ function addMcpConfig(): Rule {
107
107
  return;
108
108
  }
109
109
 
110
+ const isWindows = process.platform === 'win32';
110
111
  const mcpConfig = {
111
112
  mcpServers: {
112
- 'ng-annotate': {
113
- command: 'npx',
114
- args: ['-y', '@ng-annotate/mcp-server'],
115
- },
113
+ 'ng-annotate': isWindows
114
+ ? { command: 'cmd', args: ['/c', 'npx', '-y', '@ng-annotate/mcp-server'] }
115
+ : { command: 'npx', args: ['-y', '@ng-annotate/mcp-server'] },
116
116
  },
117
117
  };
118
118