From cd37f732185e55edeb0a1763a5ee6b73b1b9adfb Mon Sep 17 00:00:00 2001 From: Kevin Ingersoll Date: Sun, 14 Apr 2024 15:09:14 +0100 Subject: [PATCH] build: disable DTS in dev (#2655) --- package.json | 2 +- packages/abi-ts/tsup.config.ts | 2 +- packages/block-logs-stream/tsup.config.ts | 2 +- packages/cli/tsup.config.ts | 2 +- packages/common/tsup.config.ts | 2 +- packages/config/tsup.config.ts | 2 +- packages/dev-tools/tsup.config.ts | 2 +- packages/faucet/tsup.config.ts | 2 +- packages/gas-report/tsup.config.ts | 2 +- packages/protocol-parser/tsup.config.ts | 2 +- packages/query/tsup.config.ts | 2 +- packages/react/tsup.config.ts | 2 +- packages/recs/tsup.config.ts | 2 +- packages/schema-type/tsup.config.ts | 2 +- packages/services/tsup.config.ts | 2 +- packages/solhint-config-mud/tsup.config.ts | 2 +- packages/solhint-plugin-mud/tsup.config.ts | 2 +- packages/store-indexer/tsup.config.ts | 2 +- packages/store-sync/tsup.config.ts | 2 +- packages/store/tsup.config.ts | 2 +- packages/utils/tsup.config.ts | 2 +- packages/world-modules/tsup.config.ts | 2 +- packages/world/tsup.config.ts | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index 5a5ffda9d4..bb068ea10a 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "build": "turbo run build", "changelog:generate": "bun scripts/changelog.ts", "clean": "turbo run clean", - "dev": "turbo run dev --concurrency 100", + "dev": "TSUP_SKIP_DTS=true turbo run dev --concurrency 100", "dist-tag-rm": "pnpm recursive exec -- sh -c 'npm dist-tag rm $(cat package.json | jq -r \".name\") $TAG || true'", "docs:generate:api": "bun scripts/render-api-docs.ts", "foundryup": "curl -L https://foundry.paradigm.xyz | bash && bash ~/.foundry/bin/foundryup", diff --git a/packages/abi-ts/tsup.config.ts b/packages/abi-ts/tsup.config.ts index 783fa85248..17e4b13a46 100644 --- a/packages/abi-ts/tsup.config.ts +++ b/packages/abi-ts/tsup.config.ts @@ -4,7 +4,7 @@ export default defineConfig({ entry: ["src/index.ts", "src/abi-ts.ts"], target: "esnext", format: ["esm"], - dts: true, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/block-logs-stream/tsup.config.ts b/packages/block-logs-stream/tsup.config.ts index 52bdfceee6..86fe9a5339 100644 --- a/packages/block-logs-stream/tsup.config.ts +++ b/packages/block-logs-stream/tsup.config.ts @@ -4,7 +4,7 @@ export default defineConfig({ entry: ["src/index.ts"], target: "esnext", format: ["esm"], - dts: true, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/cli/tsup.config.ts b/packages/cli/tsup.config.ts index cc3e3ca7de..1034d999ad 100644 --- a/packages/cli/tsup.config.ts +++ b/packages/cli/tsup.config.ts @@ -21,7 +21,7 @@ export default defineConfig({ entry: ["src/index.ts", "src/mud.ts"], target: "esnext", format: ["esm"], - dts: false, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/common/tsup.config.ts b/packages/common/tsup.config.ts index 0a6d6d0491..3abf76ff17 100644 --- a/packages/common/tsup.config.ts +++ b/packages/common/tsup.config.ts @@ -13,7 +13,7 @@ export default defineConfig({ }, target: "esnext", format: ["esm"], - dts: true, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/config/tsup.config.ts b/packages/config/tsup.config.ts index b758b036c8..8204f00f19 100644 --- a/packages/config/tsup.config.ts +++ b/packages/config/tsup.config.ts @@ -10,7 +10,7 @@ export default defineConfig({ }, target: "esnext", format: ["esm"], - dts: true, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/dev-tools/tsup.config.ts b/packages/dev-tools/tsup.config.ts index 7189afad8e..315c0c9fb7 100644 --- a/packages/dev-tools/tsup.config.ts +++ b/packages/dev-tools/tsup.config.ts @@ -16,7 +16,7 @@ export default defineConfig({ entry: ["src/index.ts"], target: "esnext", format: ["esm"], - dts: true, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/faucet/tsup.config.ts b/packages/faucet/tsup.config.ts index cadbc2f970..9fd1990d5f 100644 --- a/packages/faucet/tsup.config.ts +++ b/packages/faucet/tsup.config.ts @@ -4,7 +4,7 @@ export default defineConfig({ entry: ["src/index.ts", "bin/faucet-server.ts"], target: "esnext", format: ["esm"], - dts: true, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/gas-report/tsup.config.ts b/packages/gas-report/tsup.config.ts index 289314bad7..9249f040b1 100644 --- a/packages/gas-report/tsup.config.ts +++ b/packages/gas-report/tsup.config.ts @@ -4,7 +4,7 @@ export default defineConfig({ entry: ["ts/index.ts", "ts/gas-report.ts"], target: "esnext", format: ["esm"], - dts: true, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/protocol-parser/tsup.config.ts b/packages/protocol-parser/tsup.config.ts index bb7fe3066b..709f21cd88 100644 --- a/packages/protocol-parser/tsup.config.ts +++ b/packages/protocol-parser/tsup.config.ts @@ -7,7 +7,7 @@ export default defineConfig({ }, target: "esnext", format: ["esm"], - dts: true, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/query/tsup.config.ts b/packages/query/tsup.config.ts index bb7fe3066b..709f21cd88 100644 --- a/packages/query/tsup.config.ts +++ b/packages/query/tsup.config.ts @@ -7,7 +7,7 @@ export default defineConfig({ }, target: "esnext", format: ["esm"], - dts: true, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/react/tsup.config.ts b/packages/react/tsup.config.ts index 52bdfceee6..86fe9a5339 100644 --- a/packages/react/tsup.config.ts +++ b/packages/react/tsup.config.ts @@ -4,7 +4,7 @@ export default defineConfig({ entry: ["src/index.ts"], target: "esnext", format: ["esm"], - dts: true, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/recs/tsup.config.ts b/packages/recs/tsup.config.ts index faf54cff78..7bd5468d6d 100644 --- a/packages/recs/tsup.config.ts +++ b/packages/recs/tsup.config.ts @@ -4,7 +4,7 @@ export default defineConfig({ entry: ["src/index.ts", "src/deprecated/index.ts"], target: "esnext", format: ["esm"], - dts: true, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/schema-type/tsup.config.ts b/packages/schema-type/tsup.config.ts index 757d933b24..785c99b7cc 100644 --- a/packages/schema-type/tsup.config.ts +++ b/packages/schema-type/tsup.config.ts @@ -9,7 +9,7 @@ export default defineConfig({ outDir: "dist", target: "esnext", format: ["esm"], - dts: true, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/services/tsup.config.ts b/packages/services/tsup.config.ts index ed5646e5d5..92aa8b823d 100644 --- a/packages/services/tsup.config.ts +++ b/packages/services/tsup.config.ts @@ -6,7 +6,7 @@ export default defineConfig({ }, target: "esnext", format: ["esm"], - dts: true, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, }); diff --git a/packages/solhint-config-mud/tsup.config.ts b/packages/solhint-config-mud/tsup.config.ts index 7bb3556dd8..35ed4525fe 100644 --- a/packages/solhint-config-mud/tsup.config.ts +++ b/packages/solhint-config-mud/tsup.config.ts @@ -4,7 +4,7 @@ export default defineConfig({ entry: ["src/index.ts"], target: "esnext", format: ["cjs"], - dts: false, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/solhint-plugin-mud/tsup.config.ts b/packages/solhint-plugin-mud/tsup.config.ts index 7bb3556dd8..35ed4525fe 100644 --- a/packages/solhint-plugin-mud/tsup.config.ts +++ b/packages/solhint-plugin-mud/tsup.config.ts @@ -4,7 +4,7 @@ export default defineConfig({ entry: ["src/index.ts"], target: "esnext", format: ["cjs"], - dts: false, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/store-indexer/tsup.config.ts b/packages/store-indexer/tsup.config.ts index 7ae6c030dd..9b3595745c 100644 --- a/packages/store-indexer/tsup.config.ts +++ b/packages/store-indexer/tsup.config.ts @@ -10,7 +10,7 @@ export default defineConfig({ ], target: "esnext", format: ["esm"], - dts: false, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/store-sync/tsup.config.ts b/packages/store-sync/tsup.config.ts index a6442c1a4a..d8f6860bea 100644 --- a/packages/store-sync/tsup.config.ts +++ b/packages/store-sync/tsup.config.ts @@ -13,7 +13,7 @@ export default defineConfig({ ], target: "esnext", format: ["esm"], - dts: true, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/store/tsup.config.ts b/packages/store/tsup.config.ts index 3a4b84cdac..569cd72017 100644 --- a/packages/store/tsup.config.ts +++ b/packages/store/tsup.config.ts @@ -12,7 +12,7 @@ export default defineConfig({ }, target: "esnext", format: ["esm"], - dts: true, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/utils/tsup.config.ts b/packages/utils/tsup.config.ts index 52bdfceee6..86fe9a5339 100644 --- a/packages/utils/tsup.config.ts +++ b/packages/utils/tsup.config.ts @@ -4,7 +4,7 @@ export default defineConfig({ entry: ["src/index.ts"], target: "esnext", format: ["esm"], - dts: true, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/world-modules/tsup.config.ts b/packages/world-modules/tsup.config.ts index 997df67bba..a89281f3d6 100644 --- a/packages/world-modules/tsup.config.ts +++ b/packages/world-modules/tsup.config.ts @@ -6,7 +6,7 @@ export default defineConfig({ }, target: "esnext", format: ["esm"], - dts: true, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true, diff --git a/packages/world/tsup.config.ts b/packages/world/tsup.config.ts index cb091b605f..8ea323c621 100644 --- a/packages/world/tsup.config.ts +++ b/packages/world/tsup.config.ts @@ -11,7 +11,7 @@ export default defineConfig({ }, target: "esnext", format: ["esm"], - dts: true, + dts: !process.env.TSUP_SKIP_DTS, sourcemap: true, clean: true, minify: true,