Skip to content

Commit

Permalink
feat: corepack packageManager
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Sep 15, 2021
1 parent 2975197 commit 5391c0e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 42 deletions.
1 change: 1 addition & 0 deletions packages/create-yarn-workspaces/lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/create-yarn-workspaces/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export function getDefaultPackageJson(name?: string): IPackageJson
"name": name,
"version": "1.0.0",
"private": true,
"packageManager": "yarn@^1.22.11",
"workspaces": [
"packages/*",
],
Expand Down
39 changes: 11 additions & 28 deletions packages/npm-init2/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 1 addition & 14 deletions packages/npm-init2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,20 +210,7 @@ if (!cp.error)
rootData,
});

pkg.data.bugs = pkg.data.bugs || {
url: info.bugs,
}

pkg.data.repository = pkg.data.repository || {
"type": "git",
url: info.repository,
}
}
catch (e)
{

}
}
pkg.data.packageManager ??= "yarn@^1.22.11";

let sharedScript: IPackageJson['scripts'] = {
"prepublishOnly:update": "yarn run ncu && yarn run sort-package-json",
Expand Down

0 comments on commit 5391c0e

Please sign in to comment.