-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0667e44
commit 47a36a7
Showing
8 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0667e44428be97bc3f5c7aac0def6bb0b9083ab8:.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs:agora-appid:433 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
const path = require('path'); | ||
|
||
const pak = require('../package.json'); | ||
|
||
module.exports = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
const path = require('path'); | ||
|
||
const pak = require('../package.json'); | ||
|
||
module.exports = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
const child_process = require('child_process'); | ||
|
||
module.exports = { | ||
name: 'bootstrap', | ||
factory() { | ||
return { | ||
hooks: { | ||
afterAllInstalled(project, options) { | ||
if (process.env.POD_INSTALL === '0') { | ||
return; | ||
} | ||
|
||
if ( | ||
options && | ||
(options.mode === 'update-lockfile' || | ||
options.mode === 'skip-build') | ||
) { | ||
return; | ||
} | ||
|
||
if ( | ||
child_process.spawnSync('yarn', ['patch-package'], { | ||
cwd: project.cwd, | ||
env: process.env, | ||
stdio: 'inherit', | ||
encoding: 'utf-8', | ||
shell: true, | ||
}).status !== 0 | ||
) { | ||
throw new Error('Failed to run patch-package'); | ||
} | ||
|
||
if ( | ||
child_process.spawnSync( | ||
'yarn', | ||
['ts-interface-builder', 'src/*.ts', '-o', 'src/ti/'], | ||
{ | ||
cwd: project.cwd, | ||
env: process.env, | ||
stdio: 'inherit', | ||
encoding: 'utf-8', | ||
shell: true, | ||
} | ||
).status !== 0 | ||
) { | ||
throw new Error('Failed to run pod-install'); | ||
} | ||
}, | ||
}, | ||
}; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters