diff --git a/turbo.json b/turbo.json index 3284a58f3d25..5e4f6bb04c37 100644 --- a/turbo.json +++ b/turbo.json @@ -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, @@ -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"], @@ -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/**"] + }, + "@solana/web3.js#clean": { + "outputs": ["doc/**", "declarations/**", "lib/**"] + }, + "@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/**"], + "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.*" + ], + "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/**"] + "inputs": ["src/**", "test/**"] }, "@solana/web3.js-legacy-sham#compile:typedefs": { "dependsOn": ["@solana/web3.js#compile:typedefs", "^compile:typedefs"],