Skip to content

Commit 41c082c

Browse files
committed
feat: set type="module" for package.json
1 parent 6dbc19c commit 41c082c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- 'v*'
66

77
jobs:
8-
publish:
8+
Publish:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout Source Code
@@ -29,6 +29,11 @@ jobs:
2929
- name: Build
3030
run: just build
3131

32+
- name: Set type="module" for package.json
33+
run: |
34+
npm i -g json
35+
json -I -f ./pkg/package.json -e "this.type=\"module\""
36+
3237
- name: Publish to NPM
3338
run: |
3439
cd ./pkg

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mince"
3-
version = "0.0.4"
3+
version = "0.0.5"
44
authors = ["Esteban Borai <estebanborai@gmail.com>"]
55
edition = "2021"
66

0 commit comments

Comments
 (0)