Skip to content

Commit 8cc54d3

Browse files
authored
fix(update): update install-local (#51)
- migrate to pure esm - update all dependencies - configure modern typescript - update ci pipeline
1 parent ad0c26c commit 8cc54d3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+5697
-5082
lines changed

.eslintrc.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ on:
44
push: ~
55
pull_request: ~
66
schedule:
7-
- cron: '0 12 * * *'
7+
- cron: '0 12 * * 0'
88

99
jobs:
1010
build_and_test:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
node-version: [12.x, 14.x]
14+
node-version: [22, 24]
1515
os: ['ubuntu-latest', 'windows-latest']
1616

1717
runs-on: ${{ matrix.os }}
1818

1919
steps:
20-
- uses: actions/checkout@v1
20+
- uses: actions/checkout@v5
2121
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v1
22+
uses: actions/setup-node@v6
2323
with:
2424
node-version: ${{ matrix.node-version }}
2525
- name: Install dependencies
@@ -30,7 +30,11 @@ jobs:
3030
mutation_test:
3131
runs-on: ubuntu-latest
3232
steps:
33-
- uses: actions/checkout@v1
33+
- uses: actions/checkout@v5
34+
- name: Use Node.js latest
35+
uses: actions/setup-node@v6
36+
with:
37+
node-version: 'latest'
3438
- name: Install dependencies
3539
run: npm ci
3640
- name: test-mutation

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ reports
33
node_modules
44
*.map
55
*.d.ts
6-
/dist
6+
/dist
7+
*.tsbuildinfo

.mocharc.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"require": ["source-map-support/register", "dist/test/setup.js"]
3-
}
2+
"require": ["test/setup.ts"]
3+
}

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.mocharc.jsonc

.prettierrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"singleQuote": true,
3-
"trailingComma": "all",
4-
}
3+
"trailingComma": "all"
4+
}

.vscode/launch.json

Lines changed: 43 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,44 @@
11
{
2-
// Use IntelliSense to learn about possible Node.js debug attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5-
"version": "0.2.0",
6-
"configurations": [
7-
{
8-
"name": "Attach",
9-
"port": 9229,
10-
"request": "attach",
11-
"skipFiles": [
12-
"<node_internals>/**"
13-
],
14-
"type": "pwa-node"
15-
},
16-
{
17-
"type": "node",
18-
"request": "launch",
19-
"name": "All Tests",
20-
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
21-
"args": [
22-
"--no-timeout",
23-
"--colors",
24-
"${workspaceRoot}/dist/test/unit/*.js",
25-
"${workspaceRoot}/dist/test/integration/*.js"
26-
],
27-
"internalConsoleOptions": "openOnSessionStart",
28-
"outFiles": [
29-
"${workspaceRoot}/dist/**/*.js"
30-
],
31-
"skipFiles": [
32-
"<node_internals>/**"
33-
]
34-
},
35-
{
36-
"type": "node",
37-
"request": "launch",
38-
"name": "Unit Tests",
39-
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
40-
"args": [
41-
"--no-timeout",
42-
"--colors",
43-
"${workspaceRoot}/dist/test/unit/**/*.js"
44-
],
45-
"internalConsoleOptions": "openOnSessionStart",
46-
"outFiles": [
47-
"${workspaceRoot}/dist/**/*.js"
48-
],
49-
"skipFiles": [
50-
"<node_internals>/**"
51-
]
52-
}
53-
]
54-
}
2+
// Use IntelliSense to learn about possible Node.js debug attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Attach",
9+
"port": 9229,
10+
"request": "attach",
11+
"skipFiles": ["<node_internals>/**"],
12+
"type": "node"
13+
},
14+
{
15+
"type": "node",
16+
"request": "launch",
17+
"name": "All Tests",
18+
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
19+
"args": [
20+
"--no-timeout",
21+
"--colors",
22+
"${workspaceRoot}/test/unit/*.ts",
23+
"${workspaceRoot}/test/integration/*.ts"
24+
],
25+
"internalConsoleOptions": "openOnSessionStart",
26+
"outFiles": ["${workspaceRoot}/dist/**/*.js"],
27+
"skipFiles": ["<node_internals>/**"]
28+
},
29+
{
30+
"type": "node",
31+
"request": "launch",
32+
"name": "Unit Tests",
33+
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
34+
"args": [
35+
"--no-timeout",
36+
"--colors",
37+
"${workspaceRoot}/test/unit/**/*.ts"
38+
],
39+
"internalConsoleOptions": "openOnSessionStart",
40+
"outFiles": ["${workspaceRoot}/dist/**/*.js"],
41+
"skipFiles": ["<node_internals>/**"]
42+
}
43+
]
44+
}

.vscode/settings.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
2-
"files.eol": "\n",
3-
"cSpell.words": [
4-
"execa"
5-
]
6-
}
2+
"files.eol": "\n",
3+
"cSpell.words": ["execa"],
4+
"eslint.rules.customizations": [
5+
{
6+
"rule": "*",
7+
"severity": "warn"
8+
}
9+
],
10+
"strykerMutator.server.configFile": "stryker.conf.json",
11+
"strykerMutator.enable": true
12+
}

.vscode/tasks.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
// See https://go.microsoft.com/fwlink/?LinkId=733558
3-
// for the documentation about the tasks.json format
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"label": "tsc -w",
8-
"type": "shell",
9-
"command": "npm",
10-
"args": ["start"],
11-
"problemMatcher": "$tsc-watch",
12-
"isBackground": true,
13-
"group": {
14-
"isDefault": true,
15-
"kind": "build"
16-
}
17-
}
18-
]
19-
}
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "tsc -w",
8+
"type": "shell",
9+
"command": "npm",
10+
"args": ["start"],
11+
"problemMatcher": "$tsc-watch",
12+
"isBackground": true,
13+
"group": {
14+
"isDefault": true,
15+
"kind": "build"
16+
}
17+
}
18+
]
19+
}

0 commit comments

Comments
 (0)