Skip to content

Commit

Permalink
Merge pull request #890 from dnicolson/patch-1
Browse files Browse the repository at this point in the history
Fix CommonJS export in version 3.2.1
  • Loading branch information
willfarrell authored Aug 23, 2022
2 parents 00ecebf + 593bf04 commit 33cc706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Transpile for Node.js ${{ matrix.node-version }}
run: |
./node_modules/.bin/lerna exec --bail --concurrency 2 -- ../../node_modules/.bin/swc --config-file ../../swc.cjs.config.json --source-maps false index.js --out-file index.cjs
./node_modules/.bin/lerna exec --bail --concurrency 2 -- sed -i.bak 's/exports.default/module.exports/g' index.cjs # Fix CommonJS default import
./node_modules/.bin/lerna exec --bail --concurrency 2 -- sed -i.bak 's/exports, "default"/module, "exports"/g' index.cjs # Fix CommonJS default import
./node_modules/.bin/lerna exec --bail --concurrency 2 -- ../../node_modules/.bin/swc --config-file ../../swc.esm.config.json --source-maps false index.js --out-file index.js
#- name: Pre-Release
Expand Down

0 comments on commit 33cc706

Please sign in to comment.