Skip to content

Commit

Permalink
dev script properly builds all outputs (#2246)
Browse files Browse the repository at this point in the history
  • Loading branch information
r100-stack authored Sep 17, 2024
1 parent b243bd2 commit a96ab35
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/itwinui-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"build:types": "tsc -p tsconfig.build.json --outDir esm && tsc -p tsconfig.build.json --outDir cjs",
"build:styles": "vite build src/styles.js",
"build:post": "node ./scripts/postBuild.mjs",
"clean:build": "rimraf esm && rimraf cjs && rimraf DEV-esm && rimraf DEV-cjs",
"clean:build": "rimraf esm && rimraf cjs && rimraf DEV-esm && rimraf DEV-cjs && rimraf styles.css",
"clean:coverage": "rimraf coverage",
"clean": "rimraf .turbo && pnpm clean:coverage && pnpm clean:build && rimraf node_modules",
"test": "pnpm test:types && pnpm test:unit",
Expand All @@ -94,9 +94,11 @@
"format": "prettier --config .prettierrc **/*.{tsx,ts,js} --ignore-path .gitignore --write",
"lint": "eslint \"**/*.{js,ts,tsx}\" --max-warnings=0",
"lint:fix": "pnpm lint --fix && node ../../scripts/copyrightLinter.js --fix \"*/**/*.{js,ts,tsx}\"",
"dev": "pnpm clean:build && concurrently \"pnpm dev:esm\" \"pnpm dev:cjs\" \"pnpm dev:styles\" \"pnpm dev:types\"",
"dev:esm": "swc src -d esm --watch --strip-leading-paths",
"dev:cjs": "swc src -d cjs --watch --strip-leading-paths -C module.type=commonjs",
"dev": "pnpm clean:build && concurrently \"pnpm dev:esm\" \"pnpm dev:dev-esm\" \"pnpm dev:cjs\" \"pnpm dev:dev-cjs\" \"pnpm dev:styles\" \"pnpm dev:types\"",
"dev:esm": "swc src -d esm --env-name='production' --watch --strip-leading-paths",
"dev:dev-esm": "swc src -d DEV-esm --env-name='development' --watch --strip-leading-paths",
"dev:cjs": "swc src -d cjs --env-name='production' --watch --strip-leading-paths -C module.type=commonjs",
"dev:dev-cjs": "swc src -d DEV-cjs --env-name='development' --watch --strip-leading-paths -C module.type=commonjs",
"dev:types": "concurrently \"tsc -p tsconfig.build.json --outDir esm --watch --preserveWatchOutput\" \"tsc -p tsconfig.build.json --outDir cjs --watch --preserveWatchOutput\"",
"dev:styles": "pnpm build:styles --watch"
},
Expand Down

0 comments on commit a96ab35

Please sign in to comment.