Skip to content

Commit 18bfca8

Browse files
fix esm support by running scripts (#1359)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 6891688 commit 18bfca8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/silent-boxes-design.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphql-config': patch
3+
---
4+
5+
Fix esm compatibility

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
"postinstall": "tsx scripts/patch-graphql.ts",
3737
"prepublishOnly": "pnpm run build",
3838
"clean": "rimraf dist",
39-
"prebuild": "pnpm run clean && pnpm run json-schema",
39+
"prebuild": "pnpm run clean",
4040
"postbuild": "tsx scripts/postbuild.ts",
41-
"build": "bob build",
41+
"build": "pnpm run prebuild && pnpm run json-schema && bob build && pnpm run postbuild",
4242
"prettier": "prettier --cache --write --list-different .",
4343
"prettier:check": "prettier --cache --check .",
4444
"lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --ignore-path .gitignore .",

0 commit comments

Comments
 (0)