fix(react): do not overwrite package.json start script (#15091)
Co-authored-by: Ondrej Stanek <ondrej@ostan.cz>
This commit is contained in:
parent
52a62a4866
commit
00c858ee27
@ -8,7 +8,9 @@ export function updatePackageJson(
|
||||
if (!packageJson.scripts) {
|
||||
packageJson.scripts = {};
|
||||
}
|
||||
if (!packageJson.scripts.start) {
|
||||
packageJson.scripts.start = 'next start';
|
||||
}
|
||||
|
||||
const typescriptNode = context.projectGraph.externalNodes['npm:typescript'];
|
||||
if (typescriptNode) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user