Skip to content

Commit

Permalink
chore: update build directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan-Zayne committed Jun 23, 2024
1 parent be477fc commit da4d300
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/silver-balloons-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zayne-labs/callapi": patch
---

chore: update build dir structure
6 changes: 6 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ export default defineConfig((options) => ({
skipNodeModulesBundle: true, // skip building deps for node_modules, simply use them as is
dts: true,
minify: !options.watch,
splitting: true,
bundle: false,
treeshake: true,
tsconfig: "tsconfig.json",
sourcemap: !options.watch,
esbuildOptions: (esOptions) => {
// Keep directory structure same as the source
// eslint-disable-next-line no-param-reassign
esOptions.outbase = "./";
},
}));

0 comments on commit da4d300

Please sign in to comment.