Skip to content

Commit c57c71a

Browse files
fix: update native module build command to use ESM flag
1 parent 3bb97a8 commit c57c71a

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.github/workflows/native-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
- name: Build native module
8383
run: |
8484
cd native
85-
pnpm napi build --platform --release --target ${{ matrix.target }}
85+
pnpm napi build --platform --release --esm --target ${{ matrix.target }}
8686
env:
8787
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
8888

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
- name: Build native module
8484
run: |
8585
cd native
86-
pnpm napi build --platform --release --target ${{ matrix.target }}
86+
pnpm napi build --platform --release --esm --target ${{ matrix.target }}
8787
env:
8888
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
8989

native/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "nitro-graphql",
33
"version": "2.0.0-beta.68",
4+
"type": "module",
45
"napi": {
56
"binaryName": "graphql-lint",
67
"packageName": "nitro-graphql",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"scripts": {
139139
"prepack": "pnpm build",
140140
"build": "pnpm build:native && tsdown",
141-
"build:native": "cd native && napi build --platform --release",
141+
"build:native": "cd native && napi build --platform --release --esm",
142142
"dev": "tsdown --watch",
143143
"bumpp": "bumpp package.json native/package.json",
144144
"release": "pnpm build && pnpm bumpp",

0 commit comments

Comments
 (0)