Skip to content

Commit 3959cc8

Browse files
committed
fix: install pods only on mac
1 parent 568309e commit 3959cc8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/create.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export default async function create(argv: yargs.Arguments<any>) {
6969
type: 'input',
7070
name: 'description',
7171
message: 'What is the description for the package?',
72+
validate: input => Boolean(input),
7273
},
7374
{
7475
type: 'input',

templates/library/$package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"prepare": "bob build",
2121
"release": "release-it",
2222
"example": "yarn --cwd example",
23-
"bootstrap": "yarn example && yarn && cd example/ios && pod install"
23+
"pods": "cd example/ios && node -e \"process.exit(require('os').platform() === 'darwin')\" || pod install",
24+
"bootstrap": "yarn example && yarn && yarn pods"
2425
},
2526
"keywords": [
2627
"react-native",

0 commit comments

Comments
 (0)