Skip to content

Commit

Permalink
Simplify build script for react-on-rails package
Browse files Browse the repository at this point in the history
  • Loading branch information
AbanoubGhadban committed Jan 30, 2025
1 parent 96d10ea commit fb12a56
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions package-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ scripts:
# 2. Build the project but ignore TypeScript errors from missing devDependencies;
# 3. Check if the project is built now;
# 4. If it failed, print an error message (still follow https://docs.npmjs.com/cli/v8/using-npm/scripts#best-practices).
script: >
[ -f node_package/lib/ReactOnRails.js ] ||
(npm run build >/dev/null 2>&1 || true) &&
[ -f node_package/lib/ReactOnRails.js ] ||
{ echo 'Building react-on-rails seems to have failed!'; }
script: npm run build

format:
default:
Expand Down

0 comments on commit fb12a56

Please sign in to comment.