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

Workspace package - publib-npm fails to detect dist/js/*.tgz and creates new empty tgz #1286

Open
sfriedlizuehlke opened this issue Jul 25, 2024 · 0 comments

Comments

@sfriedlizuehlke
Copy link

sfriedlizuehlke commented Jul 25, 2024

Hello,

While working with a monorepo setup I noticed the following bug in the publib-npm publisher.

I currently have the following setup in a project:

root
- node_modules
- pacakge.json
- packages
  - module-A
    - dist/js/*.tgz
    - package.json

I've attached my project setup in the zip: project.zip

Problem

When running publib-npm from the directory packages/module-A it fails to detect the dist/js/*.tgz and creates a new package. If at that time the compiled files are not available this results in an empty package being published.

The setup with the monorepo can publish python packages with publib-pypi successfully.

Workaround

As a workaround I currently configured jsii to output the packages to the dist directory in the root with "outdir": "../../dist",. When I then call the publib-npm from the root directory, the package gets published successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant