mirror of
https://github.com/hanzoai/pack.git
synced 2026-09-30 23:43:13 +00:00
* Add GetPackageManagerInfo method to PackageJson Move package manager parsing logic to the PackageJson struct where it belongs, improving code organization and separation of concerns. * Rename PackageManagerYarn2 to PackageManagerYarnBerry and refactor parsing - Rename constant for better clarity - Remove redundant parsePackageManagerField method - Use PackageJson.GetPackageManagerInfo() consistently - Remove unnecessary version validation checks - Move test to appropriate file * Prioritize packageManager field for package manager detection - Check packageManager field first before falling back to file-based detection - Detect Yarn Berry (2+) based on major version from packageManager field - Improve logging to show specific package manager version when available * Update node-yarn-4 example output to reflect Yarn 4 Change output message from "Yarn 2" to "Yarn 4" to match the actual package manager version being used. * Add packageManager field to root package.json Specify [email protected] as the package manager for this project. * add yarn 3 example * update snapshots * remove package manager test * update yarn snapshots and don't install corepack yarn with mise
15 lines
239 B
JSON
15 lines
239 B
JSON
{
|
|
"name": "node-yarn-3",
|
|
"packageManager": "[email protected]",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"start": "node dist/index.js"
|
|
},
|
|
"dependencies": {
|
|
"cowsay": "^1.6.0"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.8.3"
|
|
}
|
|
}
|