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 77e430e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/transformers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@
"directory": "dist"
},
"exports": {
"./*": "./build/esm/*.js"
"./*": {
"require": "./build/cjs/*.cjs",
"import": "./build/esm/*.js"
}
},
"scripts": {
"build": "yarn org:tsc -b ./tsconfig.json",
"build": "yarn org:tsc -b ./tsconfig.json && yarn build-mjs && yarn build-cjs",
"build-mjs": "yarn org:babel build/esm --config-file ./.babel.mjs.json --out-dir build/mjs --out-file-extension .mjs --source-maps",
"build-cjs": "yarn org:babel build/esm --config-file ./.babel.cjs.json --out-dir build/cjs --out-file-extension .cjs --source-maps",
"build-pack": "yarn build && yarn org:concurrently \"yarn build-cjs\" \"yarn build-mjs\" && fncts-pack",
Expand Down

0 comments on commit 77e430e

Please sign in to comment.