File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import inquirer from 'inquirer';
88import yargs from 'yargs' ;
99import validateNpmPackage from 'validate-npm-package-name' ;
1010import githubUsername from 'github-username' ;
11+ import pack from '../package.json' ;
1112
1213const TEMPLATE = path . resolve ( __dirname , '../templates/library' ) ;
1314const BINARIES = / ( g r a d l e w | \. ( j a r | x i b | k e y s t o r e | p n g | j p g | g i f ) ) $ / ;
@@ -120,6 +121,9 @@ export default async function create(argv: yargs.Arguments<any>) {
120121 const project = slug . replace ( / ^ ( r e a c t - n a t i v e - | @ [ ^ / ] + \/ ) / , '' ) ;
121122
122123 const options = {
124+ bob : {
125+ version : pack . version ,
126+ } ,
123127 project : {
124128 slug,
125129 description,
Original file line number Diff line number Diff line change 3232 "homepage" : " <%= repo %>#readme" ,
3333 "devDependencies" : {
3434 "@commitlint/config-conventional" : " ^8.3.4" ,
35- "@react-native-community/bob" : " ^0.9.0 " ,
35+ "@react-native-community/bob" : " ^<%= bob.version %> " ,
3636 "@react-native-community/eslint-config" : " ^0.0.7" ,
3737 "@types/jest" : " ^25.1.2" ,
3838 "@types/react" : " ^16.9.19" ,
You can’t perform that action at this time.
0 commit comments