From b80f3bad17dd9125522f3b6321fb2d13bfa85b5a Mon Sep 17 00:00:00 2001 From: joyqi Date: Thu, 8 Dec 2022 15:31:51 +0800 Subject: [PATCH] fix package type --- .github/workflows/ci.yml | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a00483..46e6c61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,7 +85,7 @@ jobs: ${{steps.get-versions.outputs.pkg}} run build tmp=$(mktemp) jq --arg version "${{ github.event.release.tag_name }}" '.version = $version' package.json > $tmp - mv $tmp package.json + jq 'del(.type)' $tmp > package.json echo version=$(jq -r '.version' package.json) >> $GITHUB_OUTPUT - name: Publish diff --git a/tsconfig.json b/tsconfig.json index eaee848..d31b3ae 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,7 +14,7 @@ "removeComments": true, "declarationDir": "lib/types", "strict": true, - "allowSyntheticDefaultImports": true, + "esModuleInterop": true, "skipLibCheck": true }, "exclude": ["node_modules", "**/*.spec.ts", "lib"]