Skip to content

Commit

Permalink
[Breaking] update @npmcli/arborist; require node 16+
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 31, 2024
1 parent 26b4121 commit 5690ff2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ jobs:
tests:
uses: ljharb/actions/.github/workflows/node.yml@main
with:
range: '>= 16 || ^14.15 || ^12.13'
range: '>= 22 || ^20.9 || ^18.12 || ^16.14'
type: minors
command: npm run tests-only

node:
name: 'node'
needs: [tests]
runs-on: ubuntu-latest
steps:
- run: 'echo tests completed'
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,20 @@
},
"homepage": "https://github.com/ljharb/npm-lockfile#readme",
"dependencies": {
"@npmcli/arborist": "=5.2.1",
"@npmcli/arborist": "^7.5.4",
"colors": "=1.4.0",
"find-package-json": "^1.2.0",
"object-inspect": "^1.12.3",
"pacote": "=13.6.0",
"object-inspect": "^1.13.2",
"yargs": "^17.7.2"
},
"engines": {
"node": ">= 16 || ^14.15 || ^12.13"
"node": ">= 22 || ^20.9 || ^18.12 || ^16.14"
},
"devDependencies": {
"@ljharb/eslint-config": "^21.1.1",
"aud": "^2.0.4",
"auto-changelog": "^2.4.0",
"eslint": "=8.8.0",
"jackspeak": "=2.1.1",
"npmignore": "^0.3.1",
"nyc": "^10.3.2",
"safe-publish-latest": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test('simple test', (t) => {
execSync(`"${path.join(__dirname, '../bin.js')}" -o package-lock.json --date=now`);
const lockPackage = readFileSync(lockPath, { encoding: 'utf-8' });
t.ok(lockPackage, 'lockfile produced by package');
execSync('npm install --package-lock --package-lock-only', { encoding: 'utf-8' });
execSync('npm install --package-lock --package-lock-only', { encoding: 'utf-8', cwd: path.join(__dirname, '..') });
const lockActual = readFileSync(lockPath, { encoding: 'utf-8' });
t.ok(lockActual, 'lockfile produced by npm');
unlinkSync(lockPath);
Expand Down

0 comments on commit 5690ff2

Please sign in to comment.