Skip to content

Commit

Permalink
Require Node.js 18
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Dec 22, 2023
1 parent 1d08326 commit 2ecd29d
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 27 deletions.
4 changes: 0 additions & 4 deletions .github/funding.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Expand Up @@ -14,8 +14,8 @@ jobs:
- 18
- 16
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
38 changes: 19 additions & 19 deletions package.json
Expand Up @@ -17,7 +17,7 @@
},
"sideEffects": false,
"engines": {
"node": ">=16.10"
"node": ">=18"
},
"scripts": {
"prepare": "npm run build",
Expand Down Expand Up @@ -54,39 +54,39 @@
"hard-rejection",
"minimist-options",
"normalize-package-data",
"read-pkg-up",
"read-package-up",
"redent",
"trim-newlines",
"type-fest",
"yargs-parser"
],
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.3",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.1.0",
"@types/minimist": "^1.2.2",
"ava": "^5.3.1",
"camelcase-keys": "^8.0.2",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@types/minimist": "^1.2.5",
"ava": "^6.0.1",
"camelcase-keys": "^9.1.2",
"common-tags": "^2.0.0-alpha.1",
"decamelize": "^6.0.0",
"decamelize-keys": "^2.0.1",
"delete_comments": "^0.0.2",
"execa": "^7.2.0",
"globby": "^13.2.2",
"execa": "^8.0.1",
"globby": "^14.0.0",
"hard-rejection": "^2.1.0",
"indent-string": "^5.0.0",
"minimist-options": "4.1.0",
"normalize-package-data": "^5.0.0",
"read-pkg": "^8.0.0",
"read-pkg-up": "^10.0.0",
"normalize-package-data": "^6.0.0",
"read-package-up": "^11.0.0",
"read-pkg": "^9.0.1",
"redent": "^4.0.0",
"rollup": "^3.27.0",
"rollup-plugin-dts": "^6.0.0",
"rollup-plugin-license": "^3.0.1",
"rollup": "^4.9.1",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-license": "^3.2.0",
"trim-newlines": "^5.0.0",
"tsd": "^0.28.1",
"type-fest": "^4.3.1",
"typescript": "~5.1.6",
"tsd": "^0.30.0",
"type-fest": "^4.8.3",
"typescript": "^5.3.3",
"xo": "^0.56.0",
"yargs-parser": "^21.1.1"
},
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Expand Up @@ -44,7 +44,7 @@ const config = defineConfig({
moduleSideEffects: 'no-external',
},
plugins: [
nodeResolve(),
nodeResolve({exportConditions: ['node']}),
commonjs({
include: 'node_modules/**',
}),
Expand Down
2 changes: 1 addition & 1 deletion source/options.js
@@ -1,7 +1,7 @@
import process from 'node:process';
import {dirname} from 'node:path';
import {fileURLToPath} from 'node:url';
import {readPackageUpSync} from 'read-pkg-up';
import {readPackageUpSync} from 'read-package-up';
import {decamelizeFlagKey, joinFlagKeys} from './utils.js';

const validateOptions = options => {
Expand Down

0 comments on commit 2ecd29d

Please sign in to comment.