From 10128ad4a7e69b76fcad03d87d9723a8281e64c4 Mon Sep 17 00:00:00 2001 From: Ian Schmitz Date: Sat, 20 May 2017 22:45:45 -0700 Subject: [PATCH] Port cra.sh development task to javascript Use absolute path when generating .tgz path --- tasks/cra.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tasks/cra.js b/tasks/cra.js index 6b149305f6d..ec15d702ac5 100644 --- a/tasks/cra.js +++ b/tasks/cra.js @@ -65,10 +65,8 @@ const scriptsFileName = cp .execSync(`npm pack`, { cwd: reactScriptsDir }) .toString() .trim(); -// CRA can run into issues if the .tgz path is absolute (especially on Windows) -// Use a relative path to be safe const scriptsPath = path.join( - '..', + rootDir, 'packages', 'react-scripts', scriptsFileName