You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/cli/src/helpers/core/project-config.ts
+13-5Lines changed: 13 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,14 @@ export async function updatePackageConfigurations(projectDir: string, options: P
22
22
}
23
23
}
24
24
25
+
/**
26
+
* Update the root package.json with the project name, workspace entries, scripts, and package manager metadata according to the provided project configuration.
27
+
*
28
+
* This updates (if present) the root package.json: sets the package name, generates workspace-scoped scripts (dev, build, check-types, native/web dev, server/dev:setup, database commands and docker-related db scripts when applicable), attempts to record the installed package manager version, and ensures appropriate workspaces (apps/* and/or packages/*) are present.
29
+
*
30
+
* @param projectDir - Filesystem path to the project root containing package.json
31
+
* @param options - Project configuration that determines which scripts and workspaces are added or modified (backend, packageManager, addons, database, orm, dbSetup, serverDeploy, frontend, etc.)
0 commit comments