Skip to content

Commit

Permalink
Fixes linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Maël Nison committed Sep 29, 2018
1 parent 5bbe63a commit 747ba0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/create-react-app/createReactApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -811,13 +811,13 @@ function executeNodeScript({ cwd, args }, data, source) {
const child = spawn(
process.execPath,
[...args, '-e', source, '--', JSON.stringify(data)],
{ stdio: 'inherit' }
{ cwd, stdio: 'inherit' }
);

child.on('close', code => {
if (code !== 0) {
reject({
command: `${command} ${args.join(' ')}`,
command: `node ${args.join(' ')}`,
});
return;
}
Expand Down
2 changes: 0 additions & 2 deletions packages/react-scripts/scripts/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ module.exports = function(
originalDirectory,
template
) {
const ownPackageName = require(path.join(__dirname, '..', 'package.json'))
.name;
const ownPath = path.dirname(
require.resolve(path.join(__dirname, '..', 'package.json'))
);
Expand Down

0 comments on commit 747ba0e

Please sign in to comment.