Skip to content

Commit

Permalink
fix: building issue using tsc-alias, solution got from microsoft/Type…
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyLzq committed Dec 30, 2022
1 parent b298031 commit cfb8a3c
Show file tree
Hide file tree
Showing 5 changed files with 187 additions and 26 deletions.
2 changes: 1 addition & 1 deletion examples/websocket/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { resolve } from 'path'
import { platform } from 'os'
import ws from 'ws'

import { capture } from '../../src/'
import { capture } from '../../dist/'

const PORT = 9090
const html = readFileSync(resolve(__dirname, 'www/index.html'))
Expand Down
203 changes: 183 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"demo": "ts-node examples/websocket/App.ts",
"lint": "eslint --fix src/*.ts",
"lint:dist": "eslint --fix dist/*.ts",
"prepublish": "tsc && npm run lint:dist",
"prepublish": "tsc && tsc-alias && npm run lint:dist",
"release": "standard-version",
"version": "npm run release && git add ."
},
Expand Down Expand Up @@ -58,6 +58,7 @@
"eslint-plugin-promise": "^6.1.1",
"standard-version": "^9.5.0",
"ts-node": "^10.9.1",
"tsc-alias": "^1.8.2",
"typescript": "^4.9.4",
"ws": "^8.11.0"
},
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"rootDir": "src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
// "removeComments": true, /* Do not emit comments to output. */
"removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
"downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
Expand Down
3 changes: 0 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"compilerOptions": {
"rootDir": "src"
},
"extends": "./tsconfig.base.json",
"exclude": [
"node_modules",
Expand Down

0 comments on commit cfb8a3c

Please sign in to comment.