Skip to content

Commit

Permalink
WIP: provide seperate bundle & module builds
Browse files Browse the repository at this point in the history
  • Loading branch information
hupf committed Nov 23, 2023
1 parent aaf37b0 commit 4e3a653
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
"scripts": {
"start": "npm run storybook",
"dev": "vite",
"build": "tsc && vite build",
"build": "tsc && rm -rf dist && npm run build:modules && npm run build:bundle",
"build:modules": "tsc --noEmit false --allowImportingTsExtensions false --declaration true --outDir ./dist",
"build:bundle": "vite build",
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import dts from "vite-plugin-dts";
// https://vitejs.dev/config/
export default defineConfig({
build: {
outDir: "dist/bundle",
lib: {
entry: "src/puzzle-shell.ts",
formats: ["es"],
Expand Down

0 comments on commit 4e3a653

Please sign in to comment.