Skip to content

Commit 824bfd7

Browse files
committed
chore: Bump npm versions
1 parent 4d2fd47 commit 824bfd7

File tree

8 files changed

+1933
-5338
lines changed

8 files changed

+1933
-5338
lines changed

package-lock.json

+1,906-5,309
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"test/*"
1414
],
1515
"devDependencies": {
16-
"prettier": "^2.5.1"
16+
"prettier": "^2.7.1"
1717
}
1818
}

pkgs/cargo-cp-artifact/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
},
3030
"homepage": "https://github.com/neon-bindings/neon/tree/main/pkgs/cargo-cp-artifact",
3131
"devDependencies": {
32-
"mocha": "^9.1.0"
32+
"mocha": "^10.0.0"
3333
}
3434
}

pkgs/create-neon/.mocharc.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"extension": ["ts"],
3-
"spec": "test/**/*.ts",
4-
"require": "ts-node/register",
3+
"spec": "dist/test/**/*.js",
54
"timeout": 5000
65
}

pkgs/create-neon/package.json

+8-9
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,17 @@
3030
"neon"
3131
],
3232
"devDependencies": {
33-
"@types/chai": "^4.2.15",
34-
"@types/mocha": "^9.1.0",
35-
"@types/node": "^14.14.31",
36-
"@types/rimraf": "^3.0.0",
37-
"chai": "^4.3.3",
38-
"execa": "^5.0.0",
39-
"mocha": "^9.1.0",
33+
"@types/chai": "^4.3.1",
34+
"@types/mocha": "^9.1.1",
35+
"@types/node": "^18.0.0",
36+
"@types/rimraf": "^3.0.2",
37+
"chai": "^4.3.6",
38+
"execa": "^6.1.0",
39+
"mocha": "^10.0.0",
4040
"rimraf": "^3.0.2",
4141
"stream-to-string": "^1.2.0",
4242
"toml": "^3.0.0",
43-
"ts-node": "^9.1.1",
44-
"typescript": "^4.2.2"
43+
"typescript": "^4.7.4"
4544
},
4645
"dependencies": {
4746
"handlebars": "^4.7.7"

pkgs/create-neon/test/create-neon.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
import { assert } from "chai";
22
import { spawn } from "child_process";
3-
import execa from "execa";
43
import * as path from "path";
54
import { promises as fs } from "fs";
65
import * as TOML from "toml";
76
import expect from "../dev/expect";
87
import rimraf from "../dev/rimraf";
98

9+
// HACK: `execa` is an ES module, but Neon tests in Node which doesn't include
10+
// an ESM loader. This is a small wrapper for `execa` that covers the test cases.
11+
async function execa(command: string, args: readonly string[]): Promise<void> {
12+
const { execa } = await import("execa");
13+
14+
await execa(command, args);
15+
}
16+
1017
const NODE: string = process.execPath;
11-
const CREATE_NEON = path.join(
12-
__dirname,
13-
"..",
14-
"dist",
15-
"src",
16-
"bin",
17-
"create-neon.js"
18-
);
18+
const CREATE_NEON = path.join(__dirname, "..", "src", "bin", "create-neon.js");
1919

2020
describe("Command-line argument validation", () => {
2121
it("requires an argument", async () => {

test/electron/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
},
1313
"repository": "https://github.com/electron/electron-quick-start",
1414
"devDependencies": {
15-
"@playwright/test": "^1.17.1",
16-
"cargo-cp-artifact": "^0.1.0",
17-
"electron": "^16.2.6",
18-
"playwright": "^1.17.1"
15+
"@playwright/test": "^1.23.1",
16+
"cargo-cp-artifact": "^0.1.6",
17+
"electron": "^19.0.7",
18+
"playwright": "^1.23.1"
1919
}
2020
}

test/napi/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"test": "mocha --v8-expose-gc --timeout 5000 --recursive lib"
1010
},
1111
"devDependencies": {
12-
"cargo-cp-artifact": "^0.1.0",
13-
"chai": "^4.2.0",
14-
"mocha": "^9.1.0"
12+
"cargo-cp-artifact": "^0.1.6",
13+
"chai": "^4.3.6",
14+
"mocha": "^10.0.0"
1515
}
1616
}

0 commit comments

Comments
 (0)