Skip to content

Commit

Permalink
build: fix yarn on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
LichKing-2234 committed Oct 27, 2023
1 parent 11c6b3d commit ed97d1a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
8 changes: 1 addition & 7 deletions scripts/bootstrap.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ module.exports = {

if (
child_process.spawnSync('yarn', ['patch-package'], {
cwd: project.cwd,
env: process.env,
stdio: 'inherit',
encoding: 'utf-8',
shell: true,
Expand All @@ -28,23 +26,19 @@ module.exports = {

if (
child_process.spawnSync('yarn', ['example', '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');
throw new Error('Failed to run patch-package at example');
}

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,
Expand Down
4 changes: 4 additions & 0 deletions scripts/pod-install.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ module.exports = {
return {
hooks: {
afterAllInstalled(project, options) {
if (process.platform !== 'darwin') {
return;
}

if (process.env.POD_INSTALL === '0') {
return;
}
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13539,12 +13539,12 @@ __metadata:

"react-native-agora-rawdata@github:AgoraLibrary/react-native-agora-rawdata":
version: 0.1.0
resolution: "react-native-agora-rawdata@https://github.com/AgoraLibrary/react-native-agora-rawdata.git#commit=7fa07cc6308808f5f7e1c2e56502835471323707"
resolution: "react-native-agora-rawdata@https://github.com/AgoraLibrary/react-native-agora-rawdata.git#commit=15ecaa324f74a228a7cc2ba4686893e76954e0f8"
peerDependencies:
react: "*"
react-native: "*"
react-native-agora: ">=4.1.0"
checksum: bc6259546e34ac7083f27a87e50bb1a9383ce40b64ead8cc7d4ddd247f92102a28213c225d29aea8086bc98453dcc885cf8d4737aff176fb09b1bcd77c29721b
checksum: 557b7de05b8f9d8a8237d1034d3cc9487de00d0d4047f834ff981be0e58c065dc813922199a2721a2c174afd25bc6b501614cc1696f1c6c9a1f56347afb6879a
languageName: node
linkType: hard

Expand Down

0 comments on commit ed97d1a

Please sign in to comment.