From 61d78223ec75775a5eac9caf13d3f31750931b69 Mon Sep 17 00:00:00 2001 From: risingstar0225 Date: Tue, 12 Sep 2023 00:26:29 +0200 Subject: [PATCH] chore: ship less files to users with the cli (#1562) --- cli/package.json | 9 +++++++++ cli/tsup.config.ts | 3 --- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/cli/package.json b/cli/package.json index 49ed5d5..b370641 100644 --- a/cli/package.json +++ b/cli/package.json @@ -22,6 +22,15 @@ "bin": { "create-t3-app": "./dist/index.js" }, + "files": [ + "dist", + "template", + "README.md", + "LICENSE", + "CHANGELOG.md", + ".yarnrc.yml", + "package.json" + ], "engines": { "node": ">=14.16" }, diff --git a/cli/tsup.config.ts b/cli/tsup.config.ts index 94937b3..a7c6d53 100644 --- a/cli/tsup.config.ts +++ b/cli/tsup.config.ts @@ -4,12 +4,9 @@ const isDev = process.env.npm_lifecycle_event === "dev"; export default defineConfig({ clean: true, - dts: true, entry: ["src/index.ts"], format: ["esm"], minify: !isDev, - metafile: !isDev, - sourcemap: true, target: "esnext", outDir: "dist", onSuccess: isDev ? "node dist/index.js" : undefined,