Skip to content

Commit 747ba0e

Browse files
author
Maël Nison
committed
Fixes linting
1 parent 5bbe63a commit 747ba0e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/create-react-app/createReactApp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,13 +811,13 @@ function executeNodeScript({ cwd, args }, data, source) {
811811
const child = spawn(
812812
process.execPath,
813813
[...args, '-e', source, '--', JSON.stringify(data)],
814-
{ stdio: 'inherit' }
814+
{ cwd, stdio: 'inherit' }
815815
);
816816

817817
child.on('close', code => {
818818
if (code !== 0) {
819819
reject({
820-
command: `${command} ${args.join(' ')}`,
820+
command: `node ${args.join(' ')}`,
821821
});
822822
return;
823823
}

packages/react-scripts/scripts/init.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ module.exports = function(
8181
originalDirectory,
8282
template
8383
) {
84-
const ownPackageName = require(path.join(__dirname, '..', 'package.json'))
85-
.name;
8684
const ownPath = path.dirname(
8785
require.resolve(path.join(__dirname, '..', 'package.json'))
8886
);

0 commit comments

Comments
 (0)