Skip to content

Commit 10128ad

Browse files
committed
Port cra.sh development task to javascript
Use absolute path when generating .tgz path
1 parent 9484ef9 commit 10128ad

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tasks/cra.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,8 @@ const scriptsFileName = cp
6565
.execSync(`npm pack`, { cwd: reactScriptsDir })
6666
.toString()
6767
.trim();
68-
// CRA can run into issues if the .tgz path is absolute (especially on Windows)
69-
// Use a relative path to be safe
7068
const scriptsPath = path.join(
71-
'..',
69+
rootDir,
7270
'packages',
7371
'react-scripts',
7472
scriptsFileName

0 commit comments

Comments
 (0)