generator-code 1.8.3 → 1.8.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.
@@ -34,13 +34,13 @@ extends:
34
34
  testPlatforms:
35
35
  - name: Linux
36
36
  nodeVersions:
37
- - 16.x
37
+ - 18.x
38
38
  - name: MacOS
39
39
  nodeVersions:
40
- - 16.x
40
+ - 18.x
41
41
  - name: Windows
42
42
  nodeVersions:
43
- - 16.x
43
+ - 18.x
44
44
 
45
45
  testSteps:
46
46
  - script: npm i
@@ -7,25 +7,25 @@
7
7
  "@types/mocha": "^10.0.6",
8
8
  "@types/node": "18.x",
9
9
  "@types/assert": "^1.5.10",
10
- "@typescript-eslint/eslint-plugin": "^6.19.1",
11
- "@typescript-eslint/parser": "^6.19.1",
10
+ "@typescript-eslint/eslint-plugin": "^7.0.2",
11
+ "@typescript-eslint/parser": "^7.0.2",
12
12
  "eslint": "^8.56.0",
13
13
  "glob": "^10.3.10",
14
- "mocha": "^10.2.0",
14
+ "mocha": "^10.3.0",
15
15
  "typescript": "^5.3.3",
16
- "@vscode/test-cli": "^0.0.4",
16
+ "@vscode/test-cli": "^0.0.6",
17
17
  "@vscode/test-electron": "^2.3.9",
18
- "@vscode/test-web": "^0.0.51",
18
+ "@vscode/test-web": "^0.0.52",
19
19
  "@types/webpack-env": "^1.18.4",
20
20
  "@types/vscode-notebook-renderer": "^1.72.3",
21
21
  "concurrently": "^8.2.2",
22
- "css-loader": "^6.9.1",
22
+ "css-loader": "^6.10.0",
23
23
  "fork-ts-checker-webpack-plugin": "^9.0.2",
24
24
  "style-loader": "^3.3.4",
25
25
  "ts-loader": "^9.5.1",
26
26
  "vscode-dts": "^0.3.3",
27
27
  "vscode-notebook-error-overlay": "^1.0.1",
28
- "webpack": "^5.90.0",
28
+ "webpack": "^5.90.3",
29
29
  "util": "^0.12.5",
30
30
  "webpack-cli": "^5.1.4",
31
31
  "webpack-dev-server": "^4.15.1",
@@ -189,11 +189,11 @@ export default class extends Generator {
189
189
 
190
190
  // Git init
191
191
  if (this.extensionConfig.gitInit) {
192
- this.spawnCommand('git', ['init', '--quiet']);
192
+ await this.spawn('git', ['init', '--quiet']);
193
193
  }
194
194
 
195
195
  if (this.extensionConfig.proposedAPI) {
196
- this.spawnCommand(this.extensionConfig.pkgManager, ['run', 'update-proposed-api']);
196
+ await this.spawn(this.extensionConfig.pkgManager, ['run', 'update-proposed-api']);
197
197
  }
198
198
  this.log('');
199
199
 
@@ -228,20 +228,20 @@ export default class extends Generator {
228
228
  if (this.options["open"]) {
229
229
  if (codeStableLocation) {
230
230
  this.log(`Opening ${this.destinationPath()} in Visual Studio Code...`);
231
- this.spawnCommand(codeStableLocation, [this.destinationPath()]);
231
+ await this.spawn(codeStableLocation, [this.destinationPath()]);
232
232
  } else {
233
233
  this.log(`'code' command not found.`);
234
234
  }
235
235
  } else if (this.options["openInInsiders"]) {
236
236
  if (codeInsidersLocation) {
237
237
  this.log(`Opening ${this.destinationPath()} with Visual Studio Code Insiders...`);
238
- this.spawnCommand(codeInsidersLocation, [this.destinationPath()]);
238
+ await this.spawn(codeInsidersLocation, [this.destinationPath()]);
239
239
  } else {
240
240
  this.log(`'code-insiders' command not found.`);
241
241
  }
242
242
  } else if (codeInsidersLocation || codeStableLocation) {
243
243
  if (this.options["quick"]) {
244
- this.spawnCommand(codeInsidersLocation || codeStableLocation, [this.destinationPath()]);
244
+ await this.spawn(codeInsidersLocation || codeStableLocation, [this.destinationPath()]);
245
245
  } else {
246
246
  const choices = [];
247
247
  if (codeInsidersLocation) {
@@ -259,7 +259,7 @@ export default class extends Generator {
259
259
  choices
260
260
  });
261
261
  if (answer && answer.openWith && answer.openWith !== 'skip') {
262
- this.spawnCommand(answer.openWith, [this.destinationPath()]);
262
+ await this.spawn(answer.openWith, [this.destinationPath()]);
263
263
  }
264
264
  }
265
265
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-code",
3
- "version": "1.8.3",
3
+ "version": "1.8.4",
4
4
  "description": "Yeoman generator for Visual Studio Code extensions.",
5
5
  "keywords": [
6
6
  "yeoman-generator",
@@ -44,8 +44,8 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/mocha": "^10.0.6",
47
- "@types/node": "^16.18.76",
48
- "mocha": "^10.2.0",
47
+ "@types/node": "^16.18.82",
48
+ "mocha": "^10.3.0",
49
49
  "yeoman-environment": "^3.19.3",
50
50
  "yeoman-test": "^8.2.0"
51
51
  }