generator-code 1.6.14 → 1.7.0

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.
@@ -4,24 +4,24 @@
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
6
  "dependencies": {
7
- "@types/glob": "^7.2.0",
8
- "@types/mocha": "^9.1.1",
7
+ "@types/glob": "^8.0.0",
8
+ "@types/mocha": "^10.0.0",
9
9
  "@types/node": "16.x",
10
- "@typescript-eslint/eslint-plugin": "^5.31.0",
11
- "@typescript-eslint/parser": "^5.31.0",
12
- "eslint": "^8.20.0",
10
+ "@typescript-eslint/eslint-plugin": "^5.38.1",
11
+ "@typescript-eslint/parser": "^5.38.1",
12
+ "eslint": "^8.24.0",
13
13
  "glob": "^8.0.3",
14
14
  "mocha": "^10.0.0",
15
- "typescript": "^4.7.4",
15
+ "typescript": "^4.8.4",
16
16
  "@vscode/test-electron": "^2.1.5",
17
- "@vscode/test-web": "^0.0.29",
18
- "@types/webpack-env": "^1.17.0",
17
+ "@vscode/test-web": "^0.0.30",
18
+ "@types/webpack-env": "^1.18.0",
19
19
  "@types/vscode-notebook-renderer": "^1.60.0",
20
20
  "concurrently": "^5.3.0",
21
21
  "css-loader": "^4.2.0",
22
22
  "fork-ts-checker-webpack-plugin": "^5.0.14",
23
23
  "style-loader": "^1.2.1",
24
- "ts-loader": "^9.3.1",
24
+ "ts-loader": "^9.4.1",
25
25
  "vscode-dts": "^0.3.3",
26
26
  "vscode-notebook-error-overlay": "^1.0.1",
27
27
  "webpack": "^5.74.0",
@@ -56,6 +56,8 @@ module.exports = {
56
56
 
57
57
  if (extensionConfig.pkgManager === 'yarn') {
58
58
  generator.fs.copyTpl(generator.templatePath('.yarnrc'), generator.destinationPath('.yarnrc'), extensionConfig);
59
+ } else if (extensionConfig.pkgManager === 'pnpm') {
60
+ generator.fs.copyTpl(generator.templatePath('.npmrc-pnpm'), generator.destinationPath('.npmrc'), extensionConfig);
59
61
  }
60
62
 
61
63
  extensionConfig.installDependencies = true;
@@ -54,6 +54,8 @@ module.exports = {
54
54
 
55
55
  if (extensionConfig.pkgManager === 'yarn') {
56
56
  generator.fs.copyTpl(generator.templatePath('.yarnrc'), generator.destinationPath('.yarnrc'), extensionConfig);
57
+ } else if (extensionConfig.pkgManager === 'pnpm') {
58
+ generator.fs.copyTpl(generator.templatePath('.npmrc-pnpm'), generator.destinationPath('.npmrc'), extensionConfig);
57
59
  }
58
60
 
59
61
  extensionConfig.installDependencies = true;
@@ -47,6 +47,8 @@ module.exports = {
47
47
 
48
48
  if (extensionConfig.pkgManager === 'yarn') {
49
49
  generator.fs.copyTpl(generator.templatePath('.yarnrc'), generator.destinationPath('.yarnrc'), extensionConfig);
50
+ } else if (extensionConfig.pkgManager === 'pnpm') {
51
+ generator.fs.copyTpl(generator.templatePath('.npmrc-pnpm'), generator.destinationPath('.npmrc'), extensionConfig);
50
52
  }
51
53
 
52
54
  extensionConfig.installDependencies = true;
@@ -40,6 +40,8 @@ module.exports = {
40
40
 
41
41
  if (extensionConfig.pkgManager === 'yarn') {
42
42
  generator.fs.copyTpl(generator.templatePath('.yarnrc'), generator.destinationPath('.yarnrc'), extensionConfig);
43
+ } else if (extensionConfig.pkgManager === 'pnpm') {
44
+ generator.fs.copyTpl(generator.templatePath('.npmrc-pnpm'), generator.destinationPath('.npmrc'), extensionConfig);
43
45
  }
44
46
 
45
47
  extensionConfig.installDependencies = true;
@@ -51,6 +51,8 @@ module.exports = {
51
51
 
52
52
  if (extensionConfig.pkgManager === 'yarn') {
53
53
  generator.fs.copyTpl(generator.templatePath('.yarnrc'), generator.destinationPath('.yarnrc'), extensionConfig);
54
+ } else if (extensionConfig.pkgManager === 'pnpm') {
55
+ generator.fs.copyTpl(generator.templatePath('.npmrc-pnpm'), generator.destinationPath('.npmrc'), extensionConfig);
54
56
  }
55
57
 
56
58
  extensionConfig.installDependencies = true;
@@ -249,11 +249,3 @@ function getFileContent(filePath, errors) {
249
249
  return null;
250
250
  }
251
251
  }
252
-
253
- function isFile(filePath) {
254
- try {
255
- return fs.statSync(filePath).isFile()
256
- } catch (e) {
257
- return false;
258
- }
259
- }
@@ -0,0 +1 @@
1
+ enable-pre-post-scripts = true
@@ -2,8 +2,8 @@
2
2
  // Import the module and reference it with the alias vscode in your code below
3
3
  const vscode = require('vscode');
4
4
 
5
- // this method is called when your extension is activated
6
- // your extension is activated the very first time the command is executed
5
+ // This method is called when your extension is activated
6
+ // Your extension is activated the very first time the command is executed
7
7
 
8
8
  /**
9
9
  * @param {vscode.ExtensionContext} context
@@ -27,7 +27,7 @@ function activate(context) {
27
27
  context.subscriptions.push(disposable);
28
28
  }
29
29
 
30
- // this method is called when your extension is deactivated
30
+ // This method is called when your extension is deactivated
31
31
  function deactivate() {}
32
32
 
33
33
  module.exports = {
@@ -0,0 +1 @@
1
+ enable-pre-post-scripts = true
@@ -2,10 +2,10 @@
2
2
  // Import the module and reference it with the alias vscode in your code below
3
3
  import * as vscode from 'vscode';
4
4
 
5
- // this method is called when your extension is activated
6
- // your extension is activated the very first time the command is executed
5
+ // This method is called when your extension is activated
6
+ // Your extension is activated the very first time the command is executed
7
7
  export function activate(context: vscode.ExtensionContext) {
8
-
8
+
9
9
  // Use the console to output diagnostic information (console.log) and errors (console.error)
10
10
  // This line of code will only be executed once when your extension is activated
11
11
  console.log('Congratulations, your extension "<%= name %>" is now active!');
@@ -22,5 +22,5 @@ export function activate(context: vscode.ExtensionContext) {
22
22
  context.subscriptions.push(disposable);
23
23
  }
24
24
 
25
- // this method is called when your extension is deactivated
25
+ // This method is called when your extension is deactivated
26
26
  export function deactivate() {}
@@ -0,0 +1 @@
1
+ enable-pre-post-scripts = true
@@ -2,8 +2,8 @@
2
2
  // Import the module and reference it with the alias vscode in your code below
3
3
  import * as vscode from 'vscode';
4
4
 
5
- // this method is called when your extension is activated
6
- // your extension is activated the very first time the command is executed
5
+ // This method is called when your extension is activated
6
+ // Your extension is activated the very first time the command is executed
7
7
  export function activate(context: vscode.ExtensionContext) {
8
8
 
9
9
  // Use the console to output diagnostic information (console.log) and errors (console.error)
@@ -23,5 +23,5 @@ export function activate(context: vscode.ExtensionContext) {
23
23
  context.subscriptions.push(disposable);
24
24
  }
25
25
 
26
- // this method is called when your extension is deactivated
26
+ // This method is called when your extension is deactivated
27
27
  export function deactivate() {}
@@ -1,4 +1,4 @@
1
- // imports mocha for the browser, defining the `mocha` global.
1
+ // Imports mocha for the browser, defining the `mocha` global.
2
2
  require('mocha/mocha');
3
3
 
4
4
  export function run(): Promise<void> {
@@ -9,7 +9,7 @@ export function run(): Promise<void> {
9
9
  reporter: undefined
10
10
  });
11
11
 
12
- // bundles all files in the current directory matching `*.test`
12
+ // Bundles all files in the current directory matching `*.test`
13
13
  const importAll = (r: __WebpackModuleApi.RequireContext) => r.keys().forEach(r);
14
14
  importAll(require.context('.', true, /\.test$/));
15
15
 
@@ -0,0 +1 @@
1
+ enable-pre-post-scripts = true
@@ -0,0 +1 @@
1
+ enable-pre-post-scripts = true
@@ -3,7 +3,7 @@
3
3
  import * as vscode from 'vscode';
4
4
 
5
5
  // This method is called when your extension is activated
6
- // your extension is activated the very first time the command is executed
6
+ // Your extension is activated the very first time the command is executed
7
7
  export function activate(context: vscode.ExtensionContext) {
8
8
  // Nothing (yet)
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-code",
3
- "version": "1.6.14",
3
+ "version": "1.7.0",
4
4
  "description": "Yeoman generator for Visual Studio Code extensions.",
5
5
  "keywords": [
6
6
  "yeoman-generator",
@@ -25,7 +25,7 @@
25
25
  "url": "https://github.com/Microsoft"
26
26
  },
27
27
  "engines": {
28
- "node": ">=12.10.0"
28
+ "node": ">=14.15.0"
29
29
  },
30
30
  "scripts": {
31
31
  "test": "mocha",
@@ -39,16 +39,16 @@
39
39
  "request-light": "^0.5.8",
40
40
  "sanitize-filename": "^1.6.3",
41
41
  "which": "^2.0.2",
42
- "yeoman-generator": "^5.6.1",
42
+ "yeoman-generator": "^5.7.0",
43
43
  "yosay": "^2.0.2"
44
44
  },
45
45
  "devDependencies": {
46
- "@types/mocha": "^9.1.1",
47
- "@types/node": "^16.11.6",
48
- "@types/yeoman-generator": "^5.2.10",
46
+ "@types/mocha": "^10.0.0",
47
+ "@types/node": "^16.x",
48
+ "@types/yeoman-generator": "^5.2.11",
49
49
  "@types/yeoman-test": "^4.0.3",
50
50
  "mocha": "^10.0.0",
51
- "yeoman-environment": "^3.9.1",
51
+ "yeoman-environment": "^3.12.0",
52
52
  "yeoman-test": "^6.3.0"
53
53
  }
54
54
  }