Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
c87a2c1
Make config object read-only
rafeca Sep 26, 2018
b1345f0
Remove unused suppressions in xplat/js
jbrown215 Sep 27, 2018
57bc84c
Fix copyright headers
hramos Sep 29, 2018
437c6b0
Upgrade xplat/js to Flow v0.82
samwgoldman Oct 2, 2018
b0b0b28
check isAvailable key on simulator object (#21557)
antonychan Oct 9, 2018
c5c6c07
react-native: fix path module use in writePlist test
Oct 10, 2018
80f7bbe
Remove sinon dependency
rafeca Oct 10, 2018
cb9e925
@allow-large-files [flow] update to v0.83
mroch Oct 13, 2018
71bffda
Allow specifying iOS version for run-ios with simulator option (#19079)
elyalvarado Oct 17, 2018
4f56c25
Ensure HelloWorld xcodeproj template works
mhorowitz Oct 18, 2018
49c2669
use requireActual and requireMock from jest instead of require (#21849)
thymikee Oct 18, 2018
6b181d6
Make google repo priority higher than jcenter (#21910)
sunnylqm Oct 24, 2018
bb638db
@allow-large-files flow 0.84 xplat deploy
avikchaudhuri Oct 26, 2018
123ae9a
Update the Delta/HMR format
Oct 29, 2018
e96d238
Prepend passed sourceExts to default ones and pass them to metro (#21…
elyalvarado Oct 30, 2018
9ff9e28
RN: Missing Copyright Headers
yungsters Oct 31, 2018
01761f9
gradle repo priority (#22041)
dulmandakh Oct 31, 2018
a7ee8f2
Remove undefined value on init cli command (#22045)
ignacioola Nov 1, 2018
a6c7a76
Fix linting issues (#22062)
ignacioola Nov 1, 2018
8dcde09
Deploy Flow v0.85 to xplat/js
samwgoldman Nov 2, 2018
7021a78
lint autofixes
sahrens Nov 2, 2018
1d8c28a
Remove unused variables (#22097)
ignacioola Nov 4, 2018
0cae215
Fix `no-shadow` eslint warning & remove var (#22124)
binaryta Nov 5, 2018
62e07d1
Remove local-cli
grabbou Nov 6, 2018
23218bb
Add 'packages/local-cli/' from commit '0cae21561a14af6a8aecce7527e2cf…
grabbou Nov 6, 2018
46b128c
Make local-cli run
Esemesek Nov 6, 2018
2623bf1
Support requring React Native paths outside of the CLI
grabbou Nov 6, 2018
38e6c2e
Fix small issue related to the detection of RN folder
grabbou Nov 6, 2018
d8fb550
Fix init command lookup of package.json
grabbou Nov 6, 2018
be9e6c1
Replace paths to correctly point to a template folder
grabbou Nov 6, 2018
4e24d32
Use resolve
grabbou Nov 6, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix init command lookup of package.json
  • Loading branch information
grabbou committed Nov 6, 2018
commit d8fb550f6075cc11b3ec9e1b97efc2ea8bdc3d5c
3 changes: 2 additions & 1 deletion packages/local-cli/init/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const path = require('path');
const printRunInstructions = require('../generator/printRunInstructions');
const process = require('process');
const yarn = require('../util/yarn');
const findReactNativePath = require('../util/findReactNativePath');

/**
* Creates the template for a React Native project given the provided
Expand Down Expand Up @@ -51,7 +52,7 @@ function init(projectDir, argsOrName) {
* @param options Command line arguments parsed by minimist.
*/
function generateProject(destinationRoot, newProjectName, options) {
var reactNativePackageJson = require('../../package.json');
var reactNativePackageJson = require(findReactNativePath('package.json'));
var {peerDependencies} = reactNativePackageJson;
if (!peerDependencies) {
console.error(
Expand Down
2 changes: 1 addition & 1 deletion packages/local-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-local-cli",
"version": "0.57.0",
"version": "0.57.1",
"description": "Local CLI package used with React Native",
"license": "MIT",
"main": "cli.js",
Expand Down