Skip to content
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

Robustly discover packages with @manypkg #47

Merged
merged 4 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions fixtures/pnpm/multi-lockfile/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# npm / pnpm settings here

# as a library, we want to make sure we explicitly handle peers,
# and not rely on hidden behavior of package-managers.
auto-install-peers=false

# we never want to use packages from the registry over what's in the workspace
prefer-workspaces-packages=true

# default is true, we do this to try to have more isolation
# since we test with incompatible sets of TS types.
shared-workspace-lockfile=false

3 changes: 3 additions & 0 deletions fixtures/pnpm/multi-lockfile/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"private": true
}
4 changes: 4 additions & 0 deletions fixtures/pnpm/multi-lockfile/packages/a/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "a",
"version": "0.0.1"
}
4 changes: 4 additions & 0 deletions fixtures/pnpm/multi-lockfile/packages/b/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "b",
"version": "0.0.1"
}
5 changes: 5 additions & 0 deletions fixtures/pnpm/multi-lockfile/packages/c/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "c",
"version": "0.0.1"
}

2 changes: 2 additions & 0 deletions fixtures/pnpm/multi-lockfile/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- './packages/*'
4 changes: 4 additions & 0 deletions fixtures/pnpm/single-package/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "foo-package",
"version": "0.0.1"
}
2 changes: 2 additions & 0 deletions fixtures/pnpm/single-package/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- '.'
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"test": "vitest"
},
"dependencies": {
"@ef4/lerna-changelog": "^2.0.0",
"@ef4/lerna-changelog": "^2.1.0",
"@manypkg/get-packages": "^2.2.0",
"@npmcli/package-json": "^5.0.0",
"@octokit/rest": "^19.0.8",
"@types/fs-extra": "^9.0.12",
Expand Down
Loading