From 8db7ab1206e61f1a76e09069f2153c0f9c7cf125 Mon Sep 17 00:00:00 2001 From: Mehul Kar Date: Fri, 27 Oct 2023 10:55:55 -0500 Subject: [PATCH 1/2] chore(turbo-utils): Remove tsup build This package does not need to be bundled since it is used only internally in this monorepo. Since we are not publishing it, it does not matter whether it is bundled or not. --- packages/turbo-utils/package.json | 2 -- packages/turbo-utils/tsup.config.ts | 12 ------------ pnpm-lock.yaml | 3 --- 3 files changed, 17 deletions(-) delete mode 100644 packages/turbo-utils/tsup.config.ts diff --git a/packages/turbo-utils/package.json b/packages/turbo-utils/package.json index dd017828ad991..f5c740a283eea 100644 --- a/packages/turbo-utils/package.json +++ b/packages/turbo-utils/package.json @@ -19,7 +19,6 @@ "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { - "build": "tsup", "test": "jest", "lint": "eslint src/", "check-types": "tsc --noEmit", @@ -51,7 +50,6 @@ "ora": "4.1.1", "tar": "6.1.13", "ts-jest": "^27.1.1", - "tsup": "^5.12.1", "typescript": "^4.7.4" } } diff --git a/packages/turbo-utils/tsup.config.ts b/packages/turbo-utils/tsup.config.ts deleted file mode 100644 index 716b7a5ac4d72..0000000000000 --- a/packages/turbo-utils/tsup.config.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { defineConfig, Options } from "tsup"; - -export default defineConfig((options: Options) => ({ - entry: ["src/**/*.ts"], - treeshake: true, - splitting: true, - format: ["esm", "cjs"], - dts: true, - minify: true, - clean: true, - ...options, -})); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f30440e2a771f..9eda0fd8753c3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1063,9 +1063,6 @@ importers: ts-jest: specifier: ^27.1.1 version: 27.1.5(@babel/core@7.20.12)(@types/jest@27.5.2)(esbuild@0.14.49)(jest@27.5.1)(typescript@4.9.4) - tsup: - specifier: ^5.12.1 - version: 5.12.9(typescript@4.9.4) typescript: specifier: ^4.7.4 version: 4.9.4 From a635062afe5739c30d7788ee59b9970c617f000d Mon Sep 17 00:00:00 2001 From: Mehul Kar Date: Fri, 27 Oct 2023 16:22:40 -0500 Subject: [PATCH 2/2] Fix entrypoints --- packages/turbo-utils/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/turbo-utils/package.json b/packages/turbo-utils/package.json index f5c740a283eea..f33d371541715 100644 --- a/packages/turbo-utils/package.json +++ b/packages/turbo-utils/package.json @@ -15,9 +15,9 @@ "bugs": { "url": "https://github.com/vercel/turbo/issues" }, - "module": "dist/index.mjs", - "main": "dist/index.js", - "types": "dist/index.d.ts", + "module": "src/index.ts", + "main": "src/index.ts", + "tyepes": "src/index.ts", "scripts": { "test": "jest", "lint": "eslint src/",