Skip to content

Commit fb12a56

Browse files
Simplify build script for react-on-rails package
1 parent 96d10ea commit fb12a56

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

package-scripts.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ 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: >
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!'; }
27+
script: npm run build
3228

3329
format:
3430
default:

0 commit comments

Comments
 (0)