Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Node.js",
"image": "mcr.microsoft.com/devcontainers/javascript-node:4.0.6-24-trixie",
"customizations": {
"vscode": {
"extensions": [
"editorconfig.editorconfig"
]
}
},
"postCreateCommand": "sudo npm install -g npm-check-updates"
}
6 changes: 3 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ jobs:
build:
strategy:
matrix:
node-version: [20, 22, 24]
node-version: [20, 22, 24, 25]
platform: [ubuntu-latest]

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: true
- uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Publish Package to npmjs
on:
release:
types: [published]
workflow_call:
secrets:
NPM_TOKEN:
required: true

jobs:
build:
Expand All @@ -14,17 +10,15 @@ jobs:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
registry-url: 'https://registry.npmjs.org'
cache: pnpm
- run: pnpm i -r
- run: npm run test
- run: npm run lint
- run: npm pkg delete devDependencies scripts packageManager
- run: npm publish --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
coverage/
.nyc_output/
.vscode/
.pnpm-store/
2 changes: 1 addition & 1 deletion .ncurc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dep": ["prod", "dev", "packageManager"],
"reject": [
"rimraf"
"eslint"
]
}
7 changes: 0 additions & 7 deletions .ncurc.js

This file was deleted.

21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,27 @@
],
"license": "Apache-2.0",
"scripts": {
"test": "ava",
"test": "node --test",
"lint": "eslint .",
"coverage": "c8 npm test",
"nock": "rm -f test/fixtures/wsd.ava.js.json && NOCK_BACK_MODE=record npx ava --serial test/wsd.ava.js",
"nock": "rm -f test/fixtures/wsd.test.js.json && NOCK_BACK_MODE=record npx ava --serial test/wsd.test.js",
"release": "npm version patch && git push --follow-tags && npm publish"
},
"devDependencies": {
"@cto.af/eslint-config": "^6.0.13",
"@eslint/markdown": "7.1.0",
"@types/node": "^24.2.0",
"ava": "^6.4.1",
"@cto.af/eslint-config": "^6.2.3",
"@eslint/markdown": "7.5.1",
"@types/node": "^25.2.3",
"c8": "10.1.3",
"eslint": "^9.32.0",
"eslint-plugin-jsdoc": "^52.0.4",
"nock": "14.0.9",
"eslint": "9.39.2",
"eslint-plugin-jsdoc": "^62.5.5",
"nock": "14.0.11",
"tmp-promise": "^3.0.3",
"typescript": "5.9.2"
"typescript": "5.9.3"
},
"dependencies": {
"yargs": "^18.0.0"
},
"packageManager": "pnpm@10.14.0",
"packageManager": "pnpm@10.30.0",
"engines": {
"node": ">=20"
}
Expand Down
Loading