fix: refer to bundled dist-typing types instead of src ones

This ensures that extensions referring to core's built dist typings don't try to pull from core's src code.
This commit is contained in:
Alexander Skvortsov 2022-02-09 18:13:24 -05:00
parent be6d65b3c7
commit 351410677f

View File

@ -43,7 +43,8 @@
"format": "prettier --write src",
"format-check": "prettier --check src",
"clean-typings": "npx rimraf dist-typings && mkdir dist-typings",
"build-typings": "yarn run clean-typings && tsc && [ -e src/@types ] && cp -r src/@types dist-typings/@types",
"build-typings": "yarn run clean-typings && [ -e src/@types ] && cp -r src/@types dist-typings/@types && tsc && yarn run post-build-typings",
"post-build-typings": "find dist-typings -type f -name '*.d.ts' -print0 | xargs -0 sed -i 's,../src/@types,@types,g'",
"check-typings": "tsc --noEmit --emitDeclarationOnly false",
"check-typings-coverage": "typescript-coverage-report"
},