Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
chore: update build command to rename exts
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartSquared committed Nov 2, 2023
1 parent e38da0a commit 1a3a2f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

"ignorePatterns": [
"*.d.ts",
"*.js"
"*.js",
"dist"
],

"env": {
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@
},
"scripts": {
"copy-styles": "copyfiles -u 1 src/**/*.scss",
"build:cjs": "tsc -b ./tsconfig.cjs.json && yarn copy-styles dist/cjs",
"build:esm": "tsc -b ./tsconfig.esm.json && yarn copy-styles dist/esm",
"rename-js-ext:cjs": "renamer -f '.js' -r '.cjs' './dist/cjs/**/*.*(js|js.map)'",
"build:cjs": "tsc -b ./tsconfig.cjs.json && yarn rename-js-ext:cjs && yarn copy-styles dist/cjs",
"rename-js-ext:esm": "renamer -f '.js' -r '.mjs' './dist/esm/**/*.*(js|js.map)'",
"build:esm": "tsc -b ./tsconfig.esm.json && yarn rename-js-ext:esm && yarn copy-styles dist/esm",
"build:types": "tsc -b ./tsconfig.types.json",
"clean": "rm -rf dist",
"build": "yarn clean && yarn build:esm && yarn build:cjs && yarn build:types",
Expand Down

0 comments on commit 1a3a2f8

Please sign in to comment.