Skip to content

Commit 33c9bde

Browse files
committed
Make @types/node dependency optional
1 parent a2f3465 commit 33c9bde

File tree

3 files changed

+24
-19
lines changed

3 files changed

+24
-19
lines changed

package-lock.json

Lines changed: 19 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"ts-test": "tsc --project test/tsconfig.json"
4343
},
4444
"dependencies": {
45-
"@types/node": ">=12",
4645
"eslint": "8 || 9",
4746
"fancy-log": "^2.0.0",
4847
"plugin-error": "^2.0.1",
@@ -75,7 +74,8 @@
7574
"vinyl": "^3.0.0"
7675
},
7776
"optionalDependencies": {
78-
"@types/eslint": "^9.6.1"
77+
"@types/eslint": "^9.6.1",
78+
"@types/node": ">=12"
7979
},
8080
"engines": {
8181
"node": "^12.20 || ^14.13 || >=16"
@@ -87,6 +87,6 @@
8787
"imports": {
8888
"#util": "./lib/util.js"
8989
},
90-
"types": "lib/gulp-eslint-new.d.ts",
91-
"type": "commonjs"
90+
"type": "commonjs",
91+
"types": "lib/gulp-eslint-new.d.ts"
9292
}

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"forceConsistentCasingInFileNames": true,
66
"moduleResolution": "node",
77
"noEmit": true,
8+
"noUncheckedSideEffectImports": true,
89
"strict": true,
910
"types": [],
1011
}

0 commit comments

Comments
 (0)