Skip to content

Commit 9422764

Browse files
authored
Merge pull request #538 from zeromq/down-level [skip ci]
2 parents 0ed62a4 + 4089d52 commit 9422764

File tree

3 files changed

+20
-180
lines changed

3 files changed

+20
-180
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"url": "https://github.com/zeromq/zeromq.js.git"
1818
},
1919
"dependencies": {
20-
"node-addon-api": "^5.0.0",
2120
"@aminya/node-gyp-build": "4.5.0-aminya.1",
21+
"node-addon-api": "^5.0.0",
2222
"shelljs": "^0.8.5",
2323
"shx": "^0.3.4"
2424
},
@@ -36,6 +36,7 @@
3636
"chai": ">=4.3",
3737
"cross-env": "^7.0.3",
3838
"deasync": "^0.1.28",
39+
"downlevel-dts": "^0.11.0",
3940
"eslint-config-atomic": "^1.18.1",
4041
"eslint-plugin-prettier": "^4.2.1",
4142
"fs-extra": "^10.1.0",
@@ -75,7 +76,7 @@
7576
"install": "(shx test -f ./script/build.js || run-s build.js) && node-gyp-build",
7677
"clean": "shx rm -rf ./build ./lib/ ./prebuilds",
7778
"clean.temp": "shx rm -rf ./tmp && shx mkdir -p tmp && shx touch tmp/.gitkeep",
78-
"build.library": "shx rm -rf ./lib && tsc -p ./src/tsconfig.json && ts-node ./script/downlevel-dts.ts",
79+
"build.library": "shx rm -rf ./lib && tsc -p ./src/tsconfig.json && downlevel-dts ./lib ./lib/ts3.7 --to=3.7",
7980
"build.script": "tsc -p ./script/tsconfig.json",
8081
"build.js": "run-p build.script build.library",
8182
"build.doc": "typedoc --out docs --name zeromq.js --excludeProtected --excludePrivate --excludeNotExported --excludeExternals --externalPattern 'src/+(draft|native|compat).ts' --tsconfig tsconfig-build.json --mode file",

pnpm-lock.yaml

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

script/downlevel-dts.ts

Lines changed: 0 additions & 178 deletions
This file was deleted.

0 commit comments

Comments
 (0)