Skip to content

Commit c352b50

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"start": "nps",
6464
"prepack": "nps build.prepack",
6565
"prepare": "nps build.prepack",
66-
"prepublishOnly": "yarn run build && attw --profile esm-only --pack .",
66+
"prepublishOnly": "yarn run build && (command -v attw >/dev/null && attw --profile esm-only --pack . || (echo 'attw not found, skipping' && exit 0))",
6767
"build": "yarn run clean && yarn run tsc --declaration",
6868
"build-watch": "yarn run clean && yarn run tsc --watch",
6969
"lint": "nps eslint",

0 commit comments

Comments
 (0)