Skip to content

Commit 7e771ec

Browse files
authored
Restore Heroku prebuild (#79)
We need the auth in Heroku or the builds will fail. If this was supposed to be removed, then we need a buildpack or other solution.
1 parent baca3d7 commit 7e771ec

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/react-scripts/scripts/utils/frontierInit.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,15 @@ function configureEF(appPath, ownPath, appName) {
139139
const templatePath = path.join(ownPath, 'template-ef');
140140
fs.copySync(templatePath, appPath, { overwrite: true });
141141

142+
alterPackageJsonFile(appPath, appPackage => {
143+
const packageJson = { ...appPackage };
144+
const additionalScripts = {
145+
'heroku-prebuild': './heroku-prebuild.sh',
146+
};
147+
packageJson.scripts = sortScripts({ ...packageJson.scripts, ...additionalScripts });
148+
return packageJson;
149+
});
150+
142151
depsToInstall.push(...['express@4.16.4']);
143152
replaceStringInFile(appPath, './blueprint.yml', /\{\{APP_NAME\}\}/g, appName)
144153
}

0 commit comments

Comments
 (0)