generator-code 1.7.7 → 1.7.9

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,31 +4,30 @@
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
6
  "dependencies": {
7
- "@types/glob": "^8.1.0",
8
- "@types/mocha": "^10.0.1",
9
- "@types/node": "20.2.5",
10
- "@typescript-eslint/eslint-plugin": "^5.59.8",
11
- "@typescript-eslint/parser": "^5.59.8",
12
- "eslint": "^8.41.0",
13
- "glob": "^8.1.0",
7
+ "@types/mocha": "^10.0.2",
8
+ "@types/node": "18.x",
9
+ "@typescript-eslint/eslint-plugin": "^6.7.3",
10
+ "@typescript-eslint/parser": "^6.7.3",
11
+ "eslint": "^8.50.0",
12
+ "glob": "^10.3.3",
14
13
  "mocha": "^10.2.0",
15
- "typescript": "^5.1.3",
16
- "@vscode/test-electron": "^2.3.2",
17
- "@vscode/test-web": "^0.0.44",
18
- "@types/webpack-env": "^1.18.1",
19
- "@types/vscode-notebook-renderer": "^1.72.0",
20
- "concurrently": "^5.3.0",
14
+ "typescript": "^5.2.2",
15
+ "@vscode/test-electron": "^2.3.4",
16
+ "@vscode/test-web": "^0.0.46",
17
+ "@types/webpack-env": "^1.18.2",
18
+ "@types/vscode-notebook-renderer": "^1.72.1",
19
+ "concurrently": "^8.2.1",
21
20
  "css-loader": "^6.8.1",
22
- "fork-ts-checker-webpack-plugin": "^5.0.14",
21
+ "fork-ts-checker-webpack-plugin": "^8.0.0",
23
22
  "style-loader": "^3.3.3",
24
- "ts-loader": "^9.4.3",
23
+ "ts-loader": "^9.4.4",
25
24
  "vscode-dts": "^0.3.3",
26
25
  "vscode-notebook-error-overlay": "^1.0.1",
27
- "webpack": "^5.85.0",
26
+ "webpack": "^5.88.2",
28
27
  "util": "^0.12.5",
29
- "webpack-cli": "^5.1.1",
30
- "webpack-dev-server": "^4.15.0",
31
- "assert": "^2.0.0",
28
+ "webpack-cli": "^5.1.4",
29
+ "webpack-dev-server": "^4.15.1",
30
+ "assert": "^2.1.0",
32
31
  "process": "^0.11.10"
33
32
  }
34
33
  }
@@ -24,7 +24,6 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  <%- dep("@types/vscode") %>,
27
- <%- dep("@types/glob") %>,
28
27
  <%- dep("@types/mocha") %>,
29
28
  <%- dep("@types/node") %>,
30
29
  <%- dep("eslint") %>,
@@ -12,14 +12,17 @@ function run() {
12
12
  const testsRoot = path.resolve(__dirname, '..');
13
13
 
14
14
  return new Promise((c, e) => {
15
- glob('**/**.test.js', { cwd: testsRoot }, (err, files) => {
16
- if (err) {
17
- return e(err);
18
- }
15
+ const testFiles = new glob.Glob('**/**.test.js', { cwd: testsRoot });
16
+ const testFileStream = testFiles.stream();
19
17
 
18
+ testFileStream.on('data', (file) => {
20
19
  // Add files to the test suite
21
- files.forEach(f => mocha.addFile(path.resolve(testsRoot, f)));
22
-
20
+ mocha.addFile(path.resolve(testsRoot, file));
21
+ });
22
+ testFileStream.on('error', (err) => {
23
+ e(err);
24
+ });
25
+ testFileStream.on('end', () => {
23
26
  try {
24
27
  // Run the mocha test
25
28
  mocha.run(failures => {
@@ -31,7 +31,6 @@
31
31
  },
32
32
  "devDependencies": {
33
33
  <%- dep("@types/vscode") %>,
34
- <%- dep("@types/glob") %>,
35
34
  <%- dep("@types/mocha") %>,
36
35
  <%- dep("@types/node") %>,
37
36
  <%- dep("@typescript-eslint/eslint-plugin") %>,
@@ -12,14 +12,16 @@ export function run(): Promise<void> {
12
12
  const testsRoot = path.resolve(__dirname, '..');
13
13
 
14
14
  return new Promise((c, e) => {
15
- glob('**/**.test.js', { cwd: testsRoot }, (err, files) => {
16
- if (err) {
17
- return e(err);
18
- }
19
-
20
- // Add files to the test suite
21
- files.forEach(f => mocha.addFile(path.resolve(testsRoot, f)));
15
+ const testFiles = new glob.Glob("**/**.test.js", { cwd: testsRoot });
16
+ const testFileStream = testFiles.stream();
22
17
 
18
+ testFileStream.on("data", (file) => {
19
+ mocha.addFile(path.resolve(testsRoot, file));
20
+ });
21
+ testFileStream.on("error", (err) => {
22
+ e(err);
23
+ });
24
+ testFileStream.on("end", () => {
23
25
  try {
24
26
  // Run the mocha test
25
27
  mocha.run(failures => {
@@ -34,7 +34,6 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  <%- dep("@types/vscode") %>,
37
- <%- dep("@types/glob") %>,
38
37
  <%- dep("@types/mocha") %>,
39
38
  <%- dep("@types/node") %>,
40
39
  <%- dep("@typescript-eslint/eslint-plugin") %>,
@@ -34,7 +34,6 @@
34
34
  "test": "node ./out/test/runTest.js"
35
35
  },
36
36
  "devDependencies": {
37
- <%- dep("@types/glob") %>,
38
37
  <%- dep("@types/mocha") %>,
39
38
  <%- dep("@types/node") %>,
40
39
  <%- dep("@types/webpack-env") %>,
@@ -6,19 +6,22 @@ export function run(): Promise<void> {
6
6
  // Create the mocha test
7
7
  const mocha = new Mocha({
8
8
  ui: 'tdd',
9
+ color: true
9
10
  });
10
11
 
11
12
  const testsRoot = path.resolve(__dirname, '..');
12
13
 
13
14
  return new Promise((c, e) => {
14
- glob('**/**.test.js', { cwd: testsRoot }, (err, files) => {
15
- if (err) {
16
- return e(err);
17
- }
18
-
19
- // Add files to the test suite
20
- files.forEach(f => mocha.addFile(path.resolve(testsRoot, f)));
15
+ const testFiles = new glob.Glob("**/**.test.js", { cwd: testsRoot });
16
+ const testFileStream = testFiles.stream();
21
17
 
18
+ testFileStream.on("data", (file) => {
19
+ mocha.addFile(path.resolve(testsRoot, file));
20
+ });
21
+ testFileStream.on("error", (err) => {
22
+ e(err);
23
+ });
24
+ testFileStream.on("end", () => {
22
25
  try {
23
26
  // Run the mocha test
24
27
  mocha.run(failures => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-code",
3
- "version": "1.7.7",
3
+ "version": "1.7.9",
4
4
  "description": "Yeoman generator for Visual Studio Code extensions.",
5
5
  "keywords": [
6
6
  "yeoman-generator",
@@ -43,9 +43,9 @@
43
43
  "yosay": "^2.0.2"
44
44
  },
45
45
  "devDependencies": {
46
- "@types/mocha": "^10.0.1",
46
+ "@types/mocha": "^10.0.2",
47
47
  "@types/node": "^16.x",
48
- "@types/yeoman-generator": "^5.2.11",
48
+ "@types/yeoman-generator": "^5.2.12",
49
49
  "mocha": "^10.2.0",
50
50
  "yeoman-environment": "^3.19.3",
51
51
  "yeoman-test": "^7.4.0"