Skip to content

Commit

Permalink
fix: build-esm-cjs should do build-copy too
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Jul 24, 2024
1 parent 97f050a commit ea3872b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cfg/init/.husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[ -n "$CI" ] && exit 0

./node_modules/.bin/commitlint-def $1
dev-lib commitlint $1
2 changes: 1 addition & 1 deletion cfg/init/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[ -n "$CI" ] && exit 0

./node_modules/.bin/lint-staged-def
dev-lib lint-staged
2 changes: 2 additions & 0 deletions src/build.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export async function buildEsmCjs(): Promise<void> {
fs2.emptyDir('./dist')
fs2.emptyDir('./dist-esm')

buildCopy()

const cjsPath = cjsExists ? TSCONF_CJS_PATH : TSCONF_PROD_PATH
const esmPath = esmExists ? TSCONF_ESM_PATH : TSCONF_PROD_PATH

Expand Down

0 comments on commit ea3872b

Please sign in to comment.