Skip to content

Commit

Permalink
Make @types/node dependency optional
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime committed Oct 28, 2024
1 parent a2f3465 commit 33c9bde
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
34 changes: 19 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"ts-test": "tsc --project test/tsconfig.json"
},
"dependencies": {
"@types/node": ">=12",
"eslint": "8 || 9",
"fancy-log": "^2.0.0",
"plugin-error": "^2.0.1",
Expand Down Expand Up @@ -75,7 +74,8 @@
"vinyl": "^3.0.0"
},
"optionalDependencies": {
"@types/eslint": "^9.6.1"
"@types/eslint": "^9.6.1",
"@types/node": ">=12"
},
"engines": {
"node": "^12.20 || ^14.13 || >=16"
Expand All @@ -87,6 +87,6 @@
"imports": {
"#util": "./lib/util.js"
},
"types": "lib/gulp-eslint-new.d.ts",
"type": "commonjs"
"type": "commonjs",
"types": "lib/gulp-eslint-new.d.ts"
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",
"noEmit": true,
"noUncheckedSideEffectImports": true,
"strict": true,
"types": [],
}
Expand Down

0 comments on commit 33c9bde

Please sign in to comment.