Skip to content

Commit 1dc33b2

Browse files
committed
Fix type generation using new compiler
1 parent ab5b5df commit 1dc33b2

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
},
2323
"scripts": {
2424
"benchmark": "node lib/deep-equal-benchmark.js",
25-
"build": "rm -rf types && tsgo",
25+
"prebuild": "rm -rf types",
26+
"build": "tsgo",
2627
"jsdoc": "jsdoc -c jsdoc.conf.json",
2728
"lint": "eslint .",
2829
"prepublishOnly": "npm run build && mkdocs gh-deploy -r upstream || mkdocs gh-deploy -r origin",

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"include": ["lib/*.js"],
33
"exclude": ["lib/*.test.js"],
44
"compilerOptions": {
5+
"allowJs": true,
56
"declaration": true,
67
"emitDeclarationOnly": true,
7-
"allowJs": true,
8-
"rootDir": ".",
8+
"rootDir": "lib",
99
"outDir": "types"
1010
}
1111
}

0 commit comments

Comments
 (0)