Skip to content

Commit

Permalink
fix(transformers): export both cjs and esm
Browse files Browse the repository at this point in the history
  • Loading branch information
0x706b committed Jul 5, 2024
1 parent 1ffa1b2 commit 55dc099
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
yarn install --immutable
- name: Lint
run: |
yarn workspace @fncts/codegen build
yarn workspace @fncts/codegen build && yarn workspace @fncts/codegen build-cjs
yarn lint
- name: Build
run: |
Expand Down
5 changes: 4 additions & 1 deletion packages/transformers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
"directory": "dist"
},
"exports": {
"./*": "./build/esm/*.js"
"./*": {
"require": "./build/cjs/*.cjs",
"import": "./build/esm/*.js"
}
},
"scripts": {
"build": "yarn org:tsc -b ./tsconfig.json",
Expand Down

0 comments on commit 55dc099

Please sign in to comment.