Skip to content

Commit 677f218

Browse files
authored
Add support for ESM (#2)
1 parent c69ccd5 commit 677f218

File tree

9 files changed

+1600
-120
lines changed

9 files changed

+1600
-120
lines changed
File renamed without changes.

.github/workflows/deploy-published-releases.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ jobs:
2525

2626
- name: Install dependencies
2727
if: steps.cache-dependencies.outputs.cache-hit != 'true'
28-
run: |-
29-
npm ci
30-
rm -rf ~/.npmrc
28+
run: npm ci
3129

3230
- name: Build package
3331
run: |-
@@ -43,7 +41,6 @@ jobs:
4341
if: ${{ github.event.release.prerelease }}
4442
run: |-
4543
cd build
46-
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
4744
npm publish --access public --tag next
4845
env:
4946
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -52,7 +49,6 @@ jobs:
5249
if: ${{ !github.event.release.prerelease }}
5350
run: |-
5451
cd build
55-
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
5652
npm publish --access public
5753
env:
5854
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/publish-package-preview.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,10 @@ jobs:
2525

2626
- name: Install dependencies
2727
if: steps.cache-dependencies.outputs.cache-hit != 'true'
28-
run: |-
29-
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_PACKAGES_TOKEN }}" >> ~/.npmrc
30-
npm ci
31-
rm -rf ~/.npmrc
28+
run: npm ci
3229

3330
- name: Build package
34-
run: |-
35-
npm run build
31+
run: npm run build
3632

3733
- name: Prepare release
3834
run: |-

jest.config.js renamed to jest.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
transform: {
33
'^.+\\.ts$': '@swc/jest',
44
},

0 commit comments

Comments
 (0)