Skip to content

Commit db5abfc

Browse files
committed
chore: run downlevel-ts script for older TypeScript compatibility
1 parent 28cf456 commit db5abfc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"version": "6.0.2",
44
"description": "Next-generation ZeroMQ bindings for Node.js",
55
"main": "lib/index.js",
6-
"types": "lib/index.d.ts",
76
"type": "commonjs",
7+
"types": "lib/index.d.ts",
88
"typesVersions": {
9-
">=3.7": {
9+
"<3.7": {
1010
"lib/*": [
1111
"lib/ts3.7/*"
1212
]
@@ -88,7 +88,8 @@
8888
"clean.script": "shx rm -rf ./script/*.js ./script/*.mjs ./script/*.js.map ./script/*.mjs.map ./script/*.d.ts ./script/*.d.mts ./script/*.cjs ./scripts/*.cjs.map ./scripts/*.d.cts ./script/*.tsbuildinfo",
8989
"clean.release": "shx rm -rf ./build/Release",
9090
"clean.temp": "shx rm -rf ./tmp && shx mkdir -p ./tmp",
91-
"build.library": "tsc -p ./src/tsconfig.json",
91+
"build.library": "tsc -p ./src/tsconfig.json && run-s build.downlevel",
92+
"build.downlevel": "downlevel-dts ./lib ./lib/ts3.7",
9293
"build.script": "tsc -p ./script/tsconfig.esm.json && tsc -p ./script/tsconfig.json",
9394
"build.js": "run-p build.script build.library",
9495
"build.doc": "typedoc --options ./typedoc.json && minify-all -s docs-unminified -d docs --jsCompressor terser && shx rm -rf docs-unminified",

0 commit comments

Comments
 (0)