Skip to content

Commit 29325d7

Browse files
committed
Move init into local-cli
1 parent 9caee32 commit 29325d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

local-cli/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
var spawn = require('child_process').spawn;
88
var path = require('path');
99

10-
var init = require('../init.js');
10+
var init = require('./init.js');
1111
var install = require('./install.js');
1212
var bundle = require('./bundle.js');
1313

init.js renamed to local-cli/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var fs = require('fs');
55

66
function init(projectDir, appName) {
77
console.log('Setting up new React Native app in ' + projectDir);
8-
var source = path.resolve(__dirname, 'Examples/SampleApp');
8+
var source = path.resolve(__dirname, '..', 'Examples/SampleApp');
99

1010
walk(source).forEach(function(f) {
1111
f = f.replace(source + '/', ''); // Strip off absolute path

0 commit comments

Comments
 (0)