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';
8
8
import yargs from 'yargs' ;
9
9
import validateNpmPackage from 'validate-npm-package-name' ;
10
10
import githubUsername from 'github-username' ;
11
+ import pack from '../package.json' ;
11
12
12
13
const TEMPLATE = path . resolve ( __dirname , '../templates/library' ) ;
13
14
const 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>) {
120
121
const project = slug . replace ( / ^ ( r e a c t - n a t i v e - | @ [ ^ / ] + \/ ) / , '' ) ;
121
122
122
123
const options = {
124
+ bob : {
125
+ version : pack . version ,
126
+ } ,
123
127
project : {
124
128
slug,
125
129
description,
Original file line number Diff line number Diff line change 32
32
"homepage" : " <%= repo %>#readme" ,
33
33
"devDependencies" : {
34
34
"@commitlint/config-conventional" : " ^8.3.4" ,
35
- "@react-native-community/bob" : " ^0.9.0 " ,
35
+ "@react-native-community/bob" : " ^<%= bob.version %> " ,
36
36
"@react-native-community/eslint-config" : " ^0.0.7" ,
37
37
"@types/jest" : " ^25.1.2" ,
38
38
"@types/react" : " ^16.9.19" ,
You can’t perform that action at this time.
0 commit comments