Skip to content
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

refactor: tsbuild references #523

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions etc/replacements-ledger.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const isESM = process.env.BUILD_MODE.includes('esm')
const REPLACEMENT_PAIRS = [
{
path: './src/strategy/Ledger/Base.ts',
cjs: '@ledgerhq/hw-app-eth/lib/services/ledger',
esm: '@ledgerhq/hw-app-eth/lib-es/services/ledger',
cjs: '@ledgerhq/hw-app-eth/lib/services/ledger/index.js',
esm: '@ledgerhq/hw-app-eth/lib-es/services/ledger/index.js',
},
]

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"build:patch:publish": "yarn build:fresh && yarn patch && yarn lerna:publish",
"patch": "lerna version patch",
"clean-up": "lerna run clean && shx rm -rf .build-cache *.log coverage junit.xml",
"bootstrap": "yarn clean-up && lerna bootstrap",
"bootstrap": "yarn clean-up && yarn install",
"test": "jest",
"test:sdk-ts:core:stargate": "jest ./packages/sdk-ts/src/core/stargate",
"test:sdk-ts:core:modules": "jest ./packages/sdk-ts/src/core/modules",
Expand Down
13 changes: 1 addition & 12 deletions packages/networks/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,5 @@
"exclude": [
"./src/**/*.spec.ts",
"./src/**/*.test.ts"
],
"references": [
{
"path": "../exceptions/tsconfig.build.json"
},
{
"path": "../ts-types/tsconfig.build.json"
},
{
"path": "../utils/tsconfig.build.json"
}
],
]
}
13 changes: 1 addition & 12 deletions packages/networks/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
{
"extends": "../../tsconfig.json",
"references": [
{
"path": "../exceptions/tsconfig.json"
},
{
"path": "../ts-types/tsconfig.json"
},
{
"path": "../utils/tsconfig.json"
}
],
"extends": "../../tsconfig.json"
}
19 changes: 1 addition & 18 deletions packages/sdk-ts/tsconfig.build.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,5 @@
"target": "ESNext",
"moduleResolution": "Bundler",
"tsBuildInfoFile": "../../.build-cache/sdk-ts.esm.tsbuildinfo"
},
"references": [
{
"path": "../ts-types/tsconfig.build.esm.json"
},
{
"path": "../exceptions/tsconfig.build.esm.json"
},
{
"path": "../utils/tsconfig.build.esm.json"
},
{
"path": "../test-utils/tsconfig.build.esm.json"
},
{
"path": "../networks/tsconfig.build.esm.json"
}
]
}
}
19 changes: 1 addition & 18 deletions packages/sdk-ts/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,5 @@
"exclude": [
"./src/**/*.spec.ts",
"./src/**/*.test.ts"
],
"references": [
{
"path": "../ts-types/tsconfig.build.json"
},
{
"path": "../exceptions/tsconfig.build.json"
},
{
"path": "../utils/tsconfig.build.json"
},
{
"path": "../test-utils/tsconfig.build.json"
},
{
"path": "../networks/tsconfig.build.json"
}
],
]
}
19 changes: 1 addition & 18 deletions packages/sdk-ts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
{
"extends": "../../tsconfig.json",
"references": [
{
"path": "../ts-types/tsconfig.json"
},
{
"path": "../exceptions/tsconfig.json"
},
{
"path": "../utils/tsconfig.json"
},
{
"path": "../test-utils/tsconfig.json"
},
{
"path": "../networks/tsconfig.json"
},
]
"extends": "../../tsconfig.json"
}
16 changes: 1 addition & 15 deletions packages/test-utils/tsconfig.build.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,5 @@
"target": "ESNext",
"moduleResolution": "Bundler",
"tsBuildInfoFile": "../../.build-cache/test-utils.esm.tsbuildinfo"
},
"references": [
{
"path": "../ts-types/tsconfig.build.esm.json"
},
{
"path": "../exceptions/tsconfig.build.esm.json"
},
{
"path": "../utils/tsconfig.build.esm.json"
},
{
"path": "../networks/tsconfig.build.esm.json"
}
]
}
}
14 changes: 0 additions & 14 deletions packages/test-utils/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,5 @@
"exclude": [
"./src/**/*.spec.ts",
"./src/**/*.test.ts"
],
"references": [
{
"path": "../ts-types/tsconfig.build.json"
},
{
"path": "../exceptions/tsconfig.build.json"
},
{
"path": "../utils/tsconfig.build.json"
},
{
"path": "../networks/tsconfig.build.json"
}
]
}
10 changes: 1 addition & 9 deletions packages/utils/tsconfig.build.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,5 @@
"target": "ESNext",
"moduleResolution": "Bundler",
"tsBuildInfoFile": "../../.build-cache/utils.esm.tsbuildinfo"
},
"references": [
{
"path": "../ts-types/tsconfig.build.esm.json"
},
{
"path": "../exceptions/tsconfig.build.esm.json"
}
]
}
}
8 changes: 0 additions & 8 deletions packages/utils/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,5 @@
"exclude": [
"./src/**/*.spec.ts",
"./src/**/*.test.ts"
],
"references": [
{
"path": "../ts-types/tsconfig.build.json"
},
{
"path": "../exceptions/tsconfig.build.json"
}
]
}
19 changes: 1 addition & 18 deletions packages/wallet-ts/tsconfig.build.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,5 @@
"target": "ESNext",
"moduleResolution": "Bundler",
"tsBuildInfoFile": "../../.build-cache/wallet-ts.esm.tsbuildinfo"
},
"references": [
{
"path": "../ts-types/tsconfig.build.esm.json"
},
{
"path": "../exceptions/tsconfig.build.esm.json"
},
{
"path": "../networks/tsconfig.build.esm.json"
},
{
"path": "../utils/tsconfig.build.esm.json"
},
{
"path": "../sdk-ts/tsconfig.build.esm.json"
}
]
}
}
17 changes: 0 additions & 17 deletions packages/wallet-ts/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,5 @@
"exclude": [
"./src/**/*.spec.ts",
"./src/**/*.test.ts"
],
"references": [
{
"path": "../ts-types/tsconfig.build.json"
},
{
"path": "../exceptions/tsconfig.build.json"
},
{
"path": "../networks/tsconfig.build.json"
},
{
"path": "../utils/tsconfig.build.json"
},
{
"path": "../sdk-ts/tsconfig.build.json"
}
]
}
19 changes: 1 addition & 18 deletions packages/wallets/wallet-base/tsconfig.build.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,5 @@
"target": "ESNext",
"moduleResolution": "Bundler",
"tsBuildInfoFile": "../../../.build-cache/wallet-base.esm.tsbuildinfo"
},
"references": [
{
"path": "../../ts-types/tsconfig.build.esm.json"
},
{
"path": "../../exceptions/tsconfig.build.esm.json"
},
{
"path": "../../networks/tsconfig.build.esm.json"
},
{
"path": "../../utils/tsconfig.build.esm.json"
},
{
"path": "../../sdk-ts/tsconfig.build.esm.json"
}
]
}
}
17 changes: 0 additions & 17 deletions packages/wallets/wallet-base/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,5 @@
"exclude": [
"./src/**/*.spec.ts",
"./src/**/*.test.ts"
],
"references": [
{
"path": "../../ts-types/tsconfig.build.json"
},
{
"path": "../../exceptions/tsconfig.build.json"
},
{
"path": "../../networks/tsconfig.build.json"
},
{
"path": "../../utils/tsconfig.build.json"
},
{
"path": "../../sdk-ts/tsconfig.build.json"
}
]
}
19 changes: 1 addition & 18 deletions packages/wallets/wallet-base/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
{
"extends": "../../../tsconfig.json",
"references": [
{
"path": "../../ts-types/tsconfig.json"
},
{
"path": "../../exceptions/tsconfig.json"
},
{
"path": "../../networks/tsconfig.json"
},
{
"path": "../../utils/tsconfig.json"
},
{
"path": "../../sdk-ts/tsconfig.json"
}
]
"extends": "../../../tsconfig.json"
}
22 changes: 1 addition & 21 deletions packages/wallets/wallet-core/tsconfig.build.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,5 @@
"target": "ESNext",
"moduleResolution": "Bundler",
"tsBuildInfoFile": "../../../.build-cache/wallet-core.esm.tsbuildinfo"
},
"references": [
{
"path": "../../ts-types/tsconfig.build.esm.json"
},
{
"path": "../../exceptions/tsconfig.build.esm.json"
},
{
"path": "../../networks/tsconfig.build.esm.json"
},
{
"path": "../../utils/tsconfig.build.esm.json"
},
{
"path": "../../sdk-ts/tsconfig.build.esm.json"
},
{
"path": "../wallet-base/tsconfig.build.esm.json"
}
]
}
}
20 changes: 0 additions & 20 deletions packages/wallets/wallet-core/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,5 @@
"exclude": [
"./src/**/*.spec.ts",
"./src/**/*.test.ts"
],
"references": [
{
"path": "../../ts-types/tsconfig.build.json"
},
{
"path": "../../exceptions/tsconfig.build.json"
},
{
"path": "../../networks/tsconfig.build.json"
},
{
"path": "../../utils/tsconfig.build.json"
},
{
"path": "../../sdk-ts/tsconfig.build.json"
},
{
"path": "../wallet-base/tsconfig.build.json"
}
]
}
22 changes: 1 addition & 21 deletions packages/wallets/wallet-core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
{
"extends": "../../../tsconfig.json",
"references": [
{
"path": "../../ts-types/tsconfig.json"
},
{
"path": "../../exceptions/tsconfig.json"
},
{
"path": "../../networks/tsconfig.json"
},
{
"path": "../../utils/tsconfig.json"
},
{
"path": "../../sdk-ts/tsconfig.json"
},
{
"path": "../wallet-base/tsconfig.json"
}
]
"extends": "../../../tsconfig.json"
}
Loading