Skip to content

Commit 5b71a5d

Browse files
chore: add typesversion to package.json && bump downlevel-dts version
1 parent cae95ff commit 5b71a5d

File tree

2 files changed

+38
-12
lines changed

2 files changed

+38
-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: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
"bower.json"
1616
],
1717
"types": "bson.d.ts",
18+
"typesVersions": {
19+
"<=4.0.2": {
20+
"bson.d.ts": [
21+
"bson.ts34.d.ts"
22+
]
23+
}
24+
},
1825
"version": "4.6.2",
1926
"author": {
2027
"name": "The MongoDB NodeJS Team",
@@ -41,7 +48,7 @@
4148
"array-includes": "^3.1.3",
4249
"benchmark": "^2.1.4",
4350
"chai": "^4.2.0",
44-
"downlevel-dts": "^0.7.0",
51+
"downlevel-dts": "^0.9.0",
4552
"eslint": "^7.7.0",
4653
"eslint-config-prettier": "^6.11.0",
4754
"eslint-plugin-prettier": "^3.1.4",
@@ -99,7 +106,7 @@
99106
"test-tsd": "npm run build:dts && tsd",
100107
"test-browser": "node --max-old-space-size=4096 ./node_modules/.bin/karma start karma.conf.js",
101108
"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",
109+
"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",
103110
"build:bundle": "rollup -c rollup.config.js",
104111
"build": "npm run build:dts && npm run build:bundle",
105112
"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)