Skip to content
This repository was archived by the owner on Oct 24, 2021. It is now read-only.

Commit 8f2475c

Browse files
authored
Resolve parse5 typings issue differently. (#114)
1 parent dcfd0e6 commit 8f2475c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"scripts": {
4141
"clean": "rimraf lib",
4242
"format": "find src -name '*.ts' -not -path 'src/test/fixtures/*' -not -path 'src/test/goldens/*' | xargs clang-format --style=file -i",
43-
"build": "rm -f node_modules/parse5/lib/index.d.ts && npm run clean && tsc",
43+
"build": "npm run clean && tsc",
4444
"build:watch": "tsc --watch",
4545
"prepack": "npm run build",
4646
"prepublishOnly": "npm run test",

tsconfig.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@
1616
"declaration": true,
1717
"sourceMap": true,
1818
"pretty": true,
19-
"outDir": "./lib"
19+
"outDir": "./lib",
20+
21+
"baseUrl": ".",
22+
"paths": {
23+
"parse5": [
24+
"node_modules/@types/parse5",
25+
"*"
26+
]
27+
}
2028
},
2129
"include": [
2230
"src/**/*.ts"

0 commit comments

Comments
 (0)