Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Dec 7, 2024
1 parent f73b473 commit 4edb394
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/create-nxjs-app/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,18 +187,20 @@ try {
};
}

// Generate a random Title ID, which is used for
// save data purposes (i.e. `localStorage`)
const titleId = generateRandomID();

removeWorkspace(packageJson.dependencies, data.packages);
removeWorkspace(packageJson.devDependencies, data.packages);
await fs.writeFile(
packageJsonUrl,
`${JSON.stringify(
{
titleId,
// Generate a random Title ID, which is used for
// save data purposes (i.e. `localStorage`)
titleId: generateRandomID(),
// Set the `productName` to the app name if it's different
// from the slugified name, for usage in NRO/NSP app metadata
productName: appName !== slugifiedName ? appName : undefined,
...packageJson,
},
null,
Expand Down

0 comments on commit 4edb394

Please sign in to comment.