-
Notifications
You must be signed in to change notification settings - Fork 2k
fix(create-turbo): fix ui lint in pnpm example #1325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
let sharedPkg = require(path.join(sharedTemplate, "package.json")); | ||
let projectPkg = require(path.join(projectDir, "package.json")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These were renamed for readability.
sharedPkg
= the generic pacakge.json
from templates/_shared_ts/package.json
projectPkg
= the package manager specific package.json
from templates/{packageManager}/package.json
if (appPkg[pkgKey][key] === "*") { | ||
appPkg[pkgKey][key] = `latest`; | ||
// merge dependencies, giving priority to the project deps | ||
sharedPkg[pkgKey] = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merging deps allows us to specify common dependencies in templates/_shared_ts/package.json
, and package manager specific overrides in templates/{packageManager}/package.json
@@ -194,7 +200,9 @@ async function run() { | |||
` - ${chalk.bold("packages/ui")}: Shared React component library` | |||
); | |||
console.log( | |||
` - ${chalk.bold("packages/config")}: Shared configuration (ESLint)` | |||
` - ${chalk.bold( | |||
"packages/eslint-config-custom" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just updating the name here.
Fixes two issues:
eslint-config-custom
package was not renamed as part of Update eslint naming in examples and addlint
script toui
package #1174Closes #1238