Skip to content

Commit 7faeb17

Browse files
chore: add typesversion to package.json && bump downlevel-dts version (#494)
1 parent cae95ff commit 7faeb17

File tree

2 files changed

+39
-12
lines changed

2 files changed

+39
-12
lines changed

package-lock.json

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

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,18 @@
1111
"src",
1212
"dist",
1313
"bson.d.ts",
14+
"bson-ts34.d.ts",
1415
"etc/prepare.js",
1516
"bower.json"
1617
],
1718
"types": "bson.d.ts",
19+
"typesVersions": {
20+
"<=4.0.2": {
21+
"bson.d.ts": [
22+
"bson.ts34.d.ts"
23+
]
24+
}
25+
},
1826
"version": "4.6.2",
1927
"author": {
2028
"name": "The MongoDB NodeJS Team",
@@ -41,7 +49,7 @@
4149
"array-includes": "^3.1.3",
4250
"benchmark": "^2.1.4",
4351
"chai": "^4.2.0",
44-
"downlevel-dts": "^0.7.0",
52+
"downlevel-dts": "^0.9.0",
4553
"eslint": "^7.7.0",
4654
"eslint-config-prettier": "^6.11.0",
4755
"eslint-plugin-prettier": "^3.1.4",
@@ -99,7 +107,7 @@
99107
"test-tsd": "npm run build:dts && tsd",
100108
"test-browser": "node --max-old-space-size=4096 ./node_modules/.bin/karma start karma.conf.js",
101109
"build:ts": "tsc",
102-
"build:dts": "npm run build:ts && api-extractor run --typescript-compiler-folder node_modules/typescript --local && rimraf 'lib/**/*.d.ts*' && downlevel-dts bson.d.ts bson.d.ts",
110+
"build:dts": "npm run build:ts && api-extractor run --typescript-compiler-folder node_modules/typescript --local && rimraf 'lib/**/*.d.ts*' && downlevel-dts bson.d.ts bson-ts34.d.ts",
103111
"build:bundle": "rollup -c rollup.config.js",
104112
"build": "npm run build:dts && npm run build:bundle",
105113
"lint": "eslint -v && eslint --ext '.js,.ts' --max-warnings=0 src test && tsc -v && tsc --noEmit && npm run test-tsd",

0 commit comments

Comments
 (0)