Move init into local-cli

This commit is contained in:
Joe Stanton 2015-05-14 18:08:56 +01:00
parent 9caee3248b
commit 29325d7cb3
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
var spawn = require('child_process').spawn;
var path = require('path');
var init = require('../init.js');
var init = require('./init.js');
var install = require('./install.js');
var bundle = require('./bundle.js');

View File

@ -5,7 +5,7 @@ var fs = require('fs');
function init(projectDir, appName) {
console.log('Setting up new React Native app in ' + projectDir);
var source = path.resolve(__dirname, 'Examples/SampleApp');
var source = path.resolve(__dirname, '..', 'Examples/SampleApp');
walk(source).forEach(function(f) {
f = f.replace(source + '/', ''); // Strip off absolute path