We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0a8f85 commit 9006b79Copy full SHA for 9006b79
package.json
@@ -2,7 +2,6 @@
2
"name": "react-on-rails",
3
"version": "14.1.1",
4
"description": "react-on-rails JavaScript for react_on_rails Ruby gem",
5
- "type": "module",
6
"exports": {
7
".": {
8
"node": "./node_package/lib/ReactOnRails.node.js",
@@ -63,7 +62,7 @@
63
62
"start": "nps",
64
"prepack": "nps build.prepack",
65
"prepare": "nps build.prepack",
66
- "prepublishOnly": "yarn run build && attw --profile esm-only --pack .",
+ "prepublishOnly": "yarn run build && (command -v attw >/dev/null && attw --profile esm-only --pack . || (echo 'attw not found, skipping' && exit 0))",
67
"build": "yarn run clean && yarn run tsc --declaration",
68
"build-watch": "yarn run clean && yarn run tsc --watch",
69
"lint": "nps eslint",
0 commit comments