Skip to content

Commit

Permalink
build: run analyze as part of the build process
Browse files Browse the repository at this point in the history
build: avoid redundant extension (.js.js)
  • Loading branch information
daenub authored May 22, 2024
1 parent 53999de commit 7b7402f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"homepage": "https://github.com/statistikzh/leu/",
"scripts": {
"analyze": "cem analyze --config custom-elements-manifest.config.js",
"build": "rimraf dist && npm run build:js && npm run build:types && npm run build:css",
"build": "rimraf dist && npm run build:js && npm run build:types && npm run build:css && npm run analyze",
"build:js": "rollup -c rollup.config.js",
"build:types": "tsc -p tsconfig.build.json",
"build:css": "postcss src/styles/theme.css -o dist/theme.css && cp dist/theme.css .storybook/static/",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default {
// - a capital letter
// - or "leu-"
input: {
"index.js": "index.js",
index: "index.js",
...Object.fromEntries(
globSync("src/components/*/{[A-Z],leu-}*.js", { nocase: false }).map(
(file) => [
Expand Down

0 comments on commit 7b7402f

Please sign in to comment.