Skip to content

Commit

Permalink
Updated paths, moved package.json to react-scripts dir (facebook#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanyogan committed Aug 10, 2016
1 parent 1212b5d commit 79c3bd1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
9 changes: 5 additions & 4 deletions packages/react-scripts/config/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var isInCreateReactAppSource = (
);

function resolveOwn(relativePath) {
console.log(path.resolve(__dirname, relativePath));
return path.resolve(__dirname, relativePath);
}

Expand All @@ -34,11 +35,11 @@ function resolveApp(relativePath) {
if (isInCreateReactAppSource) {
// create-react-app development: we're in ./config/
module.exports = {
appBuild: resolveOwn('../build'),
appHtml: resolveOwn('../template/index.html'),
appFavicon: resolveOwn('../template/favicon.ico'),
appBuild: resolveOwn('../scripts/build'),
appHtml: resolveOwn('../../../template/index.html'),
appFavicon: resolveOwn('../../../template/favicon.ico'),
appPackageJson: resolveOwn('../package.json'),
appSrc: resolveOwn('../template/src'),
appSrc: resolveOwn('../../../template/src'),
appNodeModules: resolveOwn('../node_modules'),
ownNodeModules: resolveOwn('../node_modules')
};
Expand Down
10 changes: 5 additions & 5 deletions package.json → packages/react-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"url": "https://github.com/facebookincubator/create-react-app/issues"
},
"scripts": {
"build": "node packages/react-scripts/scripts/build.js --debug-template",
"create-react-app": "node packages/create-react-app/index.js --scripts-version \"$PWD/`npm pack`\"",
"build": "node scripts/build.js --debug-template",
"create-react-app": "node ../create-react-app/index.js --scripts-version \"$PWD/`npm pack`\"",
"e2e": "tasks/e2e.sh",
"start": "node packages/react-scripts/scripts/start.js --debug-template",
"test": "node packages/react-scripts/scripts/test.js --debug-template"
"start": "node scripts/start.js --debug-template",
"test": "node scripts/test.js --debug-template"
},
"files": [
"PATENTS",
Expand All @@ -25,7 +25,7 @@
"template"
],
"bin": {
"react-scripts": "./packages/react-scripts/bin/react-scripts.js"
"react-scripts": "./bin/react-scripts.js"
},
"dependencies": {
"autoprefixer": "6.4.0",
Expand Down

0 comments on commit 79c3bd1

Please sign in to comment.