Open cipchk opened 8 months ago
For example:
{ "name": "test", "packageManager": "yarn@4.0.1", "dependencies": { "typescript": "~5.1.3", "ts-node": "~10.9.1" } }
After executing yarn install, package.json will be modified to:
yarn install
package.json
{ "name": "test", "packageManager": "yarn@4.0.1", "dependencies": { - "typescript": "~5.1.3", - "ts-node": "~10.9.1" + "ts-node": "~10.9.1", + "typescript": "~5.1.3" } }
Although working for me, it is very useful for us to keep the original order in some environments.
The install algorithm is most likely re-arranging them based on alphabetical order.
For example:
After executing
yarn install
,package.json
will be modified to:Although working for me, it is very useful for us to keep the original order in some environments.