Skip to content

Commit d952592

Browse files
authored
Merge pull request #523 from InjectiveLabs/refactor/ts-build
refactor: tsbuild references
2 parents 54ded49 + a1709b9 commit d952592

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+59
-1005
lines changed

etc/replacements-ledger.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const isESM = process.env.BUILD_MODE.includes('esm')
66
const REPLACEMENT_PAIRS = [
77
{
88
path: './src/strategy/Ledger/Base.ts',
9-
cjs: '@ledgerhq/hw-app-eth/lib/services/ledger',
10-
esm: '@ledgerhq/hw-app-eth/lib-es/services/ledger',
9+
cjs: '@ledgerhq/hw-app-eth/lib/services/ledger/index.js',
10+
esm: '@ledgerhq/hw-app-eth/lib-es/services/ledger/index.js',
1111
},
1212
]
1313

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"build:patch:publish": "yarn build:fresh && yarn patch && yarn lerna:publish",
3434
"patch": "lerna version patch",
3535
"clean-up": "lerna run clean && shx rm -rf .build-cache *.log coverage junit.xml",
36-
"bootstrap": "yarn clean-up && lerna bootstrap",
36+
"bootstrap": "yarn clean-up && yarn install",
3737
"test": "jest",
3838
"test:sdk-ts:core:stargate": "jest ./packages/sdk-ts/src/core/stargate",
3939
"test:sdk-ts:core:modules": "jest ./packages/sdk-ts/src/core/modules",

packages/networks/tsconfig.build.json

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,5 @@
1111
"exclude": [
1212
"./src/**/*.spec.ts",
1313
"./src/**/*.test.ts"
14-
],
15-
"references": [
16-
{
17-
"path": "../exceptions/tsconfig.build.json"
18-
},
19-
{
20-
"path": "../ts-types/tsconfig.build.json"
21-
},
22-
{
23-
"path": "../utils/tsconfig.build.json"
24-
}
25-
],
14+
]
2615
}

packages/networks/tsconfig.json

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
11
{
2-
"extends": "../../tsconfig.json",
3-
"references": [
4-
{
5-
"path": "../exceptions/tsconfig.json"
6-
},
7-
{
8-
"path": "../ts-types/tsconfig.json"
9-
},
10-
{
11-
"path": "../utils/tsconfig.json"
12-
}
13-
],
2+
"extends": "../../tsconfig.json"
143
}

packages/sdk-ts/tsconfig.build.esm.json

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,5 @@
99
"target": "ESNext",
1010
"moduleResolution": "Bundler",
1111
"tsBuildInfoFile": "../../.build-cache/sdk-ts.esm.tsbuildinfo"
12-
},
13-
"references": [
14-
{
15-
"path": "../ts-types/tsconfig.build.esm.json"
16-
},
17-
{
18-
"path": "../exceptions/tsconfig.build.esm.json"
19-
},
20-
{
21-
"path": "../utils/tsconfig.build.esm.json"
22-
},
23-
{
24-
"path": "../test-utils/tsconfig.build.esm.json"
25-
},
26-
{
27-
"path": "../networks/tsconfig.build.esm.json"
28-
}
29-
]
12+
}
3013
}

packages/sdk-ts/tsconfig.build.json

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,5 @@
1111
"exclude": [
1212
"./src/**/*.spec.ts",
1313
"./src/**/*.test.ts"
14-
],
15-
"references": [
16-
{
17-
"path": "../ts-types/tsconfig.build.json"
18-
},
19-
{
20-
"path": "../exceptions/tsconfig.build.json"
21-
},
22-
{
23-
"path": "../utils/tsconfig.build.json"
24-
},
25-
{
26-
"path": "../test-utils/tsconfig.build.json"
27-
},
28-
{
29-
"path": "../networks/tsconfig.build.json"
30-
}
31-
],
14+
]
3215
}

packages/sdk-ts/tsconfig.json

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
11
{
2-
"extends": "../../tsconfig.json",
3-
"references": [
4-
{
5-
"path": "../ts-types/tsconfig.json"
6-
},
7-
{
8-
"path": "../exceptions/tsconfig.json"
9-
},
10-
{
11-
"path": "../utils/tsconfig.json"
12-
},
13-
{
14-
"path": "../test-utils/tsconfig.json"
15-
},
16-
{
17-
"path": "../networks/tsconfig.json"
18-
},
19-
]
2+
"extends": "../../tsconfig.json"
203
}

packages/test-utils/tsconfig.build.esm.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,5 @@
99
"target": "ESNext",
1010
"moduleResolution": "Bundler",
1111
"tsBuildInfoFile": "../../.build-cache/test-utils.esm.tsbuildinfo"
12-
},
13-
"references": [
14-
{
15-
"path": "../ts-types/tsconfig.build.esm.json"
16-
},
17-
{
18-
"path": "../exceptions/tsconfig.build.esm.json"
19-
},
20-
{
21-
"path": "../utils/tsconfig.build.esm.json"
22-
},
23-
{
24-
"path": "../networks/tsconfig.build.esm.json"
25-
}
26-
]
12+
}
2713
}

packages/test-utils/tsconfig.build.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,5 @@
1111
"exclude": [
1212
"./src/**/*.spec.ts",
1313
"./src/**/*.test.ts"
14-
],
15-
"references": [
16-
{
17-
"path": "../ts-types/tsconfig.build.json"
18-
},
19-
{
20-
"path": "../exceptions/tsconfig.build.json"
21-
},
22-
{
23-
"path": "../utils/tsconfig.build.json"
24-
},
25-
{
26-
"path": "../networks/tsconfig.build.json"
27-
}
2814
]
2915
}

packages/utils/tsconfig.build.esm.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,5 @@
99
"target": "ESNext",
1010
"moduleResolution": "Bundler",
1111
"tsBuildInfoFile": "../../.build-cache/utils.esm.tsbuildinfo"
12-
},
13-
"references": [
14-
{
15-
"path": "../ts-types/tsconfig.build.esm.json"
16-
},
17-
{
18-
"path": "../exceptions/tsconfig.build.esm.json"
19-
}
20-
]
12+
}
2113
}

0 commit comments

Comments
 (0)