build: add postinstall-patches.js script suitable for postinstall patching of dependencies (#22669)
Because sometimes one has to do what one has to do... PR Close #22669
This commit is contained in:

committed by
Kara Erickson

parent
aa7dba244b
commit
129d1e0fb1
13
tools/postinstall-patches.js
Normal file
13
tools/postinstall-patches.js
Normal file
@ -0,0 +1,13 @@
|
||||
const {set, cd, sed} = require('shelljs');
|
||||
const path = require('path');
|
||||
|
||||
console.log('===== about to run the postinstall.js script =====');
|
||||
// fail on first error
|
||||
set('-e');
|
||||
// print commands as being executed
|
||||
set('-v');
|
||||
// jump to project root
|
||||
cd(path.join(__dirname, '../'));
|
||||
|
||||
|
||||
console.log('===== finished running the postinstall.js script =====');
|
Reference in New Issue
Block a user