From dd921c8d40a65e3492ad08a24a8da0bcb060c846 Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Tue, 19 Sep 2023 07:48:39 -0600 Subject: [PATCH] fix: swap adding package.json to esm to cjs --- .github/workflows/release.yml | 5 ----- package.json | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d139b19e..cb252409 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/package.json b/package.json index 0aac57b9..cb1d4507 100644 --- a/package.json +++ b/package.json @@ -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 ]",