Skip to content

Commit

Permalink
⚙️ Chore(packages/myplop): change tsup configs and prepare app to build
Browse files Browse the repository at this point in the history
  • Loading branch information
INeedJobToStartWork committed Jun 14, 2024
1 parent 0ba2782 commit e98086f
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 34 deletions.
12 changes: 10 additions & 2 deletions packages/myplop/config/tsuprc/tsup.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ import { defineConfig } from "tsup";
export default defineConfig({
entry: ["src/index.ts"],
target: "es2020",
clean: true,
format: ["esm"],
esbuildPlugins: [copy({ assets: [{ from: "./src/templates/configs/*", to: "./templates/configs" }] })]
clean: true,
splitting: false,
esbuildPlugins: [
copy({
assets: [
{ from: "./src/templates/configs/*", to: "./templates/configs" }
// { from: "./package.json", to: "./package.json" }
]
})
]
});
2 changes: 1 addition & 1 deletion packages/myplop/config/tsuprc/tsup.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { defineConfig } from "tsup";

export default defineConfig({
...config,
splitting: true,

minify: true,
shims: true,
outDir: "dist",
Expand Down
Loading

0 comments on commit e98086f

Please sign in to comment.