File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 * License v3.0 only", or the "Server Side Public License, v 1".
88 */
99
10+ import { relative } from 'path' ;
11+
1012import type { Task } from '../lib' ;
1113import { exec } from '../lib' ;
1214
1315const YARN_EXEC = process . env . npm_execpath || 'yarn' ;
16+ const NODE_EXEC = process . execPath || 'node' ;
1417
1518export const InstallDependencies : Task = {
1619 description : 'Installing node_modules, including production builds of packages' ,
@@ -35,5 +38,19 @@ export const InstallDependencies: Task = {
3538 cwd : build . resolvePath ( ) ,
3639 }
3740 ) ;
41+
42+ await exec (
43+ log ,
44+ NODE_EXEC ,
45+ [
46+ config . resolveFromRepo ( 'node_modules/.bin/patch-package' ) ,
47+ '--error-on-fail' ,
48+ '--patch-dir' ,
49+ relative ( build . resolvePath ( ) , config . resolveFromRepo ( 'patches' ) ) ,
50+ ] ,
51+ {
52+ cwd : build . resolvePath ( ) ,
53+ }
54+ ) ;
3855 } ,
3956} ;
You can’t perform that action at this time.
0 commit comments