diff --git a/.github/funding.yml b/.github/funding.yml deleted file mode 100644 index d867f68..0000000 --- a/.github/funding.yml +++ /dev/null @@ -1,4 +0,0 @@ -github: sindresorhus -open_collective: sindresorhus -tidelift: npm/meow -custom: https://sindresorhus.com/donate diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1ed55d5..a023591 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/package.json b/package.json index 2ceac05..4be0556 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ }, "sideEffects": false, "engines": { - "node": ">=16.10" + "node": ">=18" }, "scripts": { "prepare": "npm run build", @@ -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" }, diff --git a/rollup.config.js b/rollup.config.js index 39f5760..db0976e 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -44,7 +44,7 @@ const config = defineConfig({ moduleSideEffects: 'no-external', }, plugins: [ - nodeResolve(), + nodeResolve({exportConditions: ['node']}), commonjs({ include: 'node_modules/**', }), diff --git a/source/options.js b/source/options.js index 05169ef..2c7d5cd 100644 --- a/source/options.js +++ b/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 => {