Skip to content

Commit

Permalink
fix: swap adding package.json to esm to cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Sep 19, 2023
1 parent 264f092 commit dd921c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ jobs:
- name: Build
run: yarn build

- name: Prep for release
run: |
sed -i '/"type": "module"/d' package.json
echo '{"type": "module"}' > lib/esm/package.json
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"scripts": {
"build:web": "node bundle.cjs",
"build:esm": "yarn tsc -p tsconfig.json",
"build:cjs": "yarn tsc -p tsconfig.cjs.json",
"build:cjs": "yarn tsc -p tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > lib/cjs/package.json",
"build:types": "yarn tsc -p tsconfig.types.json",
"build": "yarn clean && yarn build:web && yarn build:esm && yarn build:cjs && yarn build:types",
"clean": "rimraf [ lib coverage bundles ]",
Expand Down

0 comments on commit dd921c8

Please sign in to comment.