Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Split the dependency between compile:typedefs and the legacy library #2370

Merged
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
89 changes: 64 additions & 25 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,28 @@
"pipeline": {
"build": {
"dependsOn": [
"compile:docs",
"compile:js",
"compile:typedefs",
"test:lint",
"test:prettier",
"test:typecheck",
"test:unit:browser",
"test:unit:node",
"test:live-with-test-validator",
"test:treeshakability:browser",
"test:treeshakability:native",
"test:treeshakability:node"
"test:treeshakability:node",
"test:typecheck",
"test:unit:browser",
"test:unit:node"
],
"outputs": ["dist/**", "lib/**"]
},
"clean": {
"outputs": ["dist/**", "lib/**"]
},
"compile:docs": {
"dependsOn": ["clean"],
"inputs": ["src/**"],
"outputs": ["doc/**"]
"outputs": ["dist/**"]
},
"compile:js": {
"dependsOn": ["clean", "^compile:js"],
"inputs": ["rollup.config.mjs", "tsconfig.*", "src/**"],
"outputs": ["dist/**", "lib/**"]
"dependsOn": ["^compile:js"],
"inputs": ["tsconfig.*", "src/**"],
"outputs": ["dist/**"]
},
"compile:typedefs": {
"dependsOn": ["clean", "^compile:typedefs"],
"inputs": ["rollup.config.types.mjs", "tsconfig.*", "src/**"],
"outputs": ["declarations/**", "dist/**/*.d.ts", "lib/**/*.d.ts"]
"dependsOn": ["^compile:typedefs"],
"inputs": ["tsconfig.*", "src/**"],
"outputs": ["dist/**/*.d.ts"]
},
"publish-packages": {
"cache": false,
Expand Down Expand Up @@ -69,18 +59,18 @@
"outputs": ["*"]
},
"test:lint": {
"inputs": ["src/**", "test/**"]
"inputs": ["src/**"]
},
"test:live-with-test-validator": {
"dependsOn": ["^compile:js"],
"inputs": ["babel.config.json", "src/**", "test/**"]
"inputs": ["src/**"]
},
"test:prettier": {
"inputs": ["*"]
},
"test:typecheck": {
"dependsOn": ["^compile:typedefs"],
"inputs": ["tsconfig.*", "src/**", "test/**"]
"inputs": ["tsconfig.*", "src/**"]
},
"test:unit:browser": {
"dependsOn": ["^compile:js"],
Expand All @@ -99,9 +89,58 @@
"test:treeshakability:node": {
"dependsOn": ["compile:js"]
},
"@solana/web3.js#build": {
"dependsOn": [
"clean",
"compile:docs",
"compile:js",
"compile:typedefs",
"test:lint",
"test:live-with-test-validator",
"test:prettier",
"test:typecheck",
"test:unit:node"
],
"outputs": ["doc/**", "declarations/**", "lib/**"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bunch of outputs missing previously.

},
"@solana/web3.js#clean": {
"outputs": ["doc/**", "declarations/**", "lib/**"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also bunch missing from clean.

},
"@solana/web3.js#compile:docs": {
"dependsOn": ["clean"],
"inputs": ["src/**"],
"outputs": ["doc/**"]
},
"@solana/web3.js#compile:js": {
"dependsOn": ["clean", "^compile:js"],
"inputs": ["babel.config.json", "rollup.config.mjs", "tsconfig.*", "src/**"],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Babel config was missing.

"outputs": ["lib/**"]
},
"@solana/web3.js#compile:typedefs": {
"dependsOn": ["clean", "^compile:typedefs"],
"inputs": [
"rollup.config.types.mjs",
"scripts/typegen.sh",
"src/**",
"test/__shadow-jest-types.d.ts",
"tsconfig.*"
Comment on lines +122 to +126
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of stuff used in scripts/typegen.sh that was missing.

],
"outputs": ["declarations/**", "lib/**/*.d.ts"]
},
"@solana/web3.js#test:lint": {
"inputs": ["src/**", "test/**"]
},
"@solana/web3.js#test:live-with-test-validator": {
"dependsOn": ["^compile:js"],
"inputs": ["src/**", "test/**"]
},
"@solana/web3.js#test:typecheck": {
"dependsOn": ["^compile:typedefs"],
"inputs": ["src/**", "test/**", "tsconfig.*"]
},
"@solana/web3.js#test:unit:node": {
"dependsOn": ["^compile:js"],
"inputs": ["babel.config.json", "src/**", "test/**"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests use ts-mocha so they don't actually depend on Babel.

"inputs": ["src/**", "test/**"]
},
"@solana/web3.js-legacy-sham#compile:typedefs": {
"dependsOn": ["@solana/web3.js#compile:typedefs", "^compile:typedefs"],
Expand Down
Loading