Skip to content

Commit

Permalink
chore: ship less files to users with the cli (t3-oss#1562)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge authored Sep 11, 2023
1 parent 398a14b commit 747f408
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 9 additions & 0 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
3 changes: 0 additions & 3 deletions cli/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 747f408

Please sign in to comment.