Skip to content

Commit 402bd8f

Browse files
Revert "Simplify build script for react-on-rails package"
This reverts commit fb12a56.
1 parent 9b36013 commit 402bd8f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

package-scripts.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ scripts:
2424
# 2. Build the project but ignore TypeScript errors from missing devDependencies;
2525
# 3. Check if the project is built now;
2626
# 4. If it failed, print an error message (still follow https://docs.npmjs.com/cli/v8/using-npm/scripts#best-practices).
27-
script: npm run build
27+
script: >
28+
[ -f node_package/lib/ReactOnRails.js ] ||
29+
(npm run build >/dev/null 2>&1 || true) &&
30+
[ -f node_package/lib/ReactOnRails.js ] ||
31+
{ echo 'Building react-on-rails seems to have failed!'; }
2832
2933
format:
3034
default:

0 commit comments

Comments
 (0)