Skip to content

Commit 9006b79

Browse files
committed
fix CI failing when running yalc-publish
1 parent d0a8f85 commit 9006b79

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "react-on-rails",
33
"version": "14.1.1",
44
"description": "react-on-rails JavaScript for react_on_rails Ruby gem",
5-
"type": "module",
65
"exports": {
76
".": {
87
"node": "./node_package/lib/ReactOnRails.node.js",
@@ -63,7 +62,7 @@
6362
"start": "nps",
6463
"prepack": "nps build.prepack",
6564
"prepare": "nps build.prepack",
66-
"prepublishOnly": "yarn run build && attw --profile esm-only --pack .",
65+
"prepublishOnly": "yarn run build && (command -v attw >/dev/null && attw --profile esm-only --pack . || (echo 'attw not found, skipping' && exit 0))",
6766
"build": "yarn run clean && yarn run tsc --declaration",
6867
"build-watch": "yarn run clean && yarn run tsc --watch",
6968
"lint": "nps eslint",

0 commit comments

Comments
 (0)