-
Notifications
You must be signed in to change notification settings - Fork 36
refactor monorepo tsconfig mapping #320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
355db5b
wip
canonbrother bda69ca
references seems working
canonbrother cd9d2bf
mapping Goto defination -> source
canonbrother e689eea
update npm run clean script
canonbrother bd0e75d
spaces
canonbrother 63a8374
fix tsconfig paths and references
canonbrother aa79f3f
replace lerna build by tsc -b
canonbrother acc87be
running test without build
canonbrother ae45d94
remove only
canonbrother 5514f4d
fix conflicts
canonbrother 3d90f3a
remove unuse tsconfig
canonbrother ae014bc
fix conflicts
canonbrother f8bbb04
switch back to lerna build, update tsconfig path for more flexible ma…
canonbrother 2131438
fix conflicts
canonbrother ba2e677
test tsc -b && lerna build for parcel only
canonbrother 4c1f1bd
try silly build script
canonbrother b4c10d5
simply build only
canonbrother 19e91bd
try tsc -b + lerna build with tsconfig in jellyfish
canonbrother 6571ba2
try parcel build first then build the rest
canonbrother 6bb2bc8
what it just parcel build
canonbrother 2afbeea
use lerna to build
canonbrother 87891e6
add tsconfig
canonbrother ceb02c3
test silly script again
canonbrother 1b8bcd7
should work
canonbrother a62ec5b
Merge branch 'main' into canonbrother/ts-project-references
canonbrother 9552b3c
Merge remote-tracking branch 'origin/main' into canonbrother/ts-proje…
fuxingloh 924c357
fix mono repo ts config (#358)
fuxingloh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,3 +35,6 @@ coverage | |
|
|
||
| # vscode | ||
| .vscode | ||
|
|
||
| # typescript | ||
| tsconfig.build.tsbuildinfo | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,23 @@ | ||
| module.exports = { | ||
| projects: [ | ||
| '<rootDir>/packages/*' | ||
| ], | ||
| testTimeout: 240000 | ||
| preset: 'ts-jest', | ||
| testRegex: '((\\.|/)(e2e|test|spec))\\.[jt]sx?$', | ||
| moduleNameMapper: { | ||
| '@defichain/jellyfish-address': '<rootDir>/packages/jellyfish-address/src', | ||
| '@defichain/jellyfish-api-core': '<rootDir>/packages/jellyfish-api-core/src', | ||
| '@defichain/jellyfish-api-jsonrpc': '<rootDir>/packages/jellyfish-api-jsonrpc/src', | ||
| '@defichain/jellyfish-crypto': '<rootDir>/packages/jellyfish-crypto/src', | ||
| '@defichain/jellyfish-json': '<rootDir>/packages/jellyfish-json/src', | ||
| '@defichain/jellyfish-network': '<rootDir>/packages/jellyfish-network/src', | ||
| '@defichain/jellyfish-transaction': '<rootDir>/packages/jellyfish-transaction/src', | ||
| '@defichain/jellyfish-transaction-builder': '<rootDir>/packages/jellyfish-transaction-builder/src', | ||
| '@defichain/jellyfish-wallet': '<rootDir>/packages/jellyfish-wallet/src', | ||
| '@defichain/jellyfish-wallet-mnemonic': '<rootDir>/packages/jellyfish-wallet-mnemonic/src', | ||
| '@defichain/testcontainers': '<rootDir>/packages/testcontainers/src', | ||
| '@defichain/testing': '<rootDir>/packages/testing/src' | ||
| }, | ||
| testTimeout: 240000, | ||
| coveragePathIgnorePatterns: [ | ||
| '/node_modules/', | ||
| '.*/__tests__/.*' | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "extends": "../../tsconfig.build.json", | ||
| "include": [ | ||
| "./src/**/*" | ||
| ], | ||
| "compilerOptions": { | ||
| "outDir": "./dist", | ||
| "rootDir": "./src", | ||
| }, | ||
| "references": [ | ||
| {"path": "../jellyfish-crypto/tsconfig.build.json"}, | ||
| {"path": "../jellyfish-network/tsconfig.build.json"}, | ||
| {"path": "../jellyfish-transaction/tsconfig.build.json"} | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "extends": "../../tsconfig.build.json", | ||
| "include": [ | ||
| "./src/**/*" | ||
| ], | ||
| "compilerOptions": { | ||
| "outDir": "./dist", | ||
| "rootDir": "./src", | ||
| }, | ||
| "references": [ | ||
| {"path": "../jellyfish-json/tsconfig.build.json"}, | ||
| {"path": "../testcontainers/tsconfig.build.json"} | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "extends": "../../tsconfig.build.json", | ||
| "include": [ | ||
| "./src/**/*" | ||
| ], | ||
| "compilerOptions": { | ||
| "outDir": "./dist", | ||
| "rootDir": "./src", | ||
| }, | ||
| "references": [ | ||
| {"path": "../jellyfish-api-core/tsconfig.build.json"}, | ||
| {"path": "../testcontainers/tsconfig.build.json"} | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/jellyfish-address/tsconfig.json → ...ages/jellyfish-crypto/tsconfig.build.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "extends": "../../tsconfig.json", | ||
| "extends": "../../tsconfig.build.json", | ||
| "include": [ | ||
| "./src/**/*" | ||
| ], | ||
|
|
||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/jellyfish-api-core/tsconfig.json → packages/jellyfish-json/tsconfig.build.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "extends": "../../tsconfig.json", | ||
| "extends": "../../tsconfig.build.json", | ||
| "include": [ | ||
| "./src/**/*" | ||
| ], | ||
|
|
||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,6 +32,6 @@ | |
| "dist" | ||
| ], | ||
| "scripts": { | ||
| "build": "tsc" | ||
| "build": "tsc -b ./tsconfig.build.json" | ||
| } | ||
| } | ||
2 changes: 1 addition & 1 deletion
2
packages/jellyfish-api-jsonrpc/tsconfig.json → ...ges/jellyfish-network/tsconfig.build.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "extends": "../../tsconfig.json", | ||
| "extends": "../../tsconfig.build.json", | ||
| "include": [ | ||
| "./src/**/*" | ||
| ], | ||
|
|
||
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
...ellyfish-transaction-builder/__tests__/txn/txn_builder_account_account_to_account.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
.../jellyfish-transaction-builder/__tests__/txn/txn_builder_account_account_to_utxos.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
.../jellyfish-transaction-builder/__tests__/txn/txn_builder_account_utxos_to_account.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
packages/jellyfish-transaction-builder/src/txn/txn_builder_account.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
packages/jellyfish-transaction-builder/src/txn/txn_builder_dex.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
packages/jellyfish-transaction-builder/src/txn/txn_builder_liq_pool.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
packages/jellyfish-transaction-builder/src/txn/txn_builder_oracles.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
packages/jellyfish-transaction-builder/tsconfig.build.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "extends": "../../tsconfig.build.json", | ||
| "include": [ | ||
| "./src/**/*" | ||
| ], | ||
| "compilerOptions": { | ||
| "outDir": "./dist", | ||
| "rootDir": "./src", | ||
| }, | ||
| "references": [ | ||
| {"path": "../jellyfish-api-jsonrpc/tsconfig.build.json"}, | ||
| {"path": "../testcontainers/tsconfig.build.json"}, | ||
| {"path": "../testing/tsconfig.build.json"} | ||
| ] | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.