Skip to content

Commit 4c80379

Browse files
committed
Use fs-extra
1 parent f43252a commit 4c80379

File tree

1 file changed

+1
-1
lines changed
  • packages/react-scripts/scripts

1 file changed

+1
-1
lines changed

packages/react-scripts/scripts/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = function(appPath, appName, verbose, originalDirectory, template
4242

4343
// Copy the files for the user
4444
var templatePath = path.join(ownPath, 'templates', template);
45-
if (pathExists.sync(templatePath)) {
45+
if (fs.existsSync(templatePath)) {
4646
fs.copySync(templatePath, appPath);
4747
} else {
4848
console.error('Could not locate supplied template: ' + template);

0 commit comments

Comments
 (0)