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 ebad5d6
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -22,10 +22,11 @@ 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: |
yarn workspace @fncts/transformers build && yarn workspace @fncts/transformers build-cjs
yarn build-pack
- name: Test
run: |
5 changes: 4 additions & 1 deletion packages/transformers/package.json
Original file line number Diff line number Diff line change
@@ -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",

0 comments on commit ebad5d6

Please sign in to comment.