chore: update for node 20 LTS

This commit is contained in:
2023-11-23 20:07:10 +01:00
parent 5d2a45ef81
commit 5c1e528304
4 changed files with 937 additions and 963 deletions

View File

@@ -12,7 +12,7 @@
"bugs": "https://git.cerxes.net/rollup-apps/plugin-html/issues",
"type": "module",
"engines": {
"node": ">=18"
"node": ">=20"
},
"main": "dist/es/index.js",
"module": "./dist/es/index.js",
@@ -30,8 +30,8 @@
"ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov",
"ci:lint": "pnpm build && pnpm lint-staged",
"ci:test": "pnpm test -- --verbose",
"test": "ava",
"save-test": "ava --update-snapshots"
"test": "NODE_OPTIONS='--import tsx' ava",
"save-test": "NODE_OPTIONS='--import tsx' ava --update-snapshots"
},
"files": [
"dist",
@@ -55,33 +55,33 @@
}
},
"dependencies": {
"@rollup/pluginutils": "^5.0.1",
"parse5": "^7.1.2",
"magic-string": "^0.30.0"
"@rollup/pluginutils": "^5.0.5",
"magic-string": "^0.30.5",
"parse5": "^7.1.2"
},
"devDependencies": {
"@types/node": "^18.15.11",
"@rollup/plugin-typescript": "^11.1.0",
"postcss": "^8.4.22",
"rollup": "^3.20.3",
"rollup-plugin-postcss": "^4.0.2",
"typescript": "^5.0.4",
"del-cli": "^5.0.0",
"tslib": "^2.5.0",
"ava": "^5.2.0",
"ts-node": "^10.9.1",
"@babel/core": "^7.21.4",
"@babel/plugin-syntax-import-assertions": "^7.20.0",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-node-resolve": "^15.0.2",
"rollup-plugin-delete": "^2.0.0",
"@babel/preset-typescript": "^7.21.4",
"@babel/core": "^7.23.3",
"@babel/plugin-syntax-import-assertions": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.5",
"@rollup/plugin-url": "^8.0.2",
"@types/node": "^18.18.12",
"ava": "^5.3.1",
"chalk": "^5.3.0",
"del-cli": "^5.1.0",
"handlebars": "^4.7.8",
"lint-staged": "^13.3.0",
"nyc": "^15.1.0",
"lint-staged": "^13.2.1",
"handlebars": "^4.7.7",
"@rollup/plugin-url": "^8.0.1",
"chalk": "^5.2.0",
"rollup-plugin-livereload": "^2.0.5"
"postcss": "^8.4.31",
"rollup": "^3.29.4",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-livereload": "^2.0.5",
"rollup-plugin-postcss": "^4.0.2",
"tslib": "^2.6.2",
"tsx": "^4.4.0",
"typescript": "^5.3.2"
},
"types": "./types/index.d.ts",
"ava": {
@@ -98,7 +98,6 @@
"js": true
},
"nodeArguments": [
"--loader=ts-node/esm",
"--experimental-vm-modules"
]
}