Skip to content

pleb doesn't support monorepos with nested package structure #505

@RomanYar

Description

@RomanYar

We tried implementing pleb for publishing our packages, and we saw that in our structure, which is not a flat packages structure, pleb fails locating the packages.

steps to reproduce:

git clone [email protected]:wixplosives/sample-monorepo.git ./test-pleb
cd test-pleb
# now we need to change the root package.json's workspaces field to "packages/**/*".
# after done that: 
rm -rf packages
mkdir -p packages/test/test-package
cd packages/test/test-package
npm init -y
echo "console.log('hello world')">index.js

# this will locate that the package was never published
npx pleb publish --dry-run
cd ../../../

# this will not find the package
npx pleb publish --dry-run

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions