question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to publish a package including its dependencies?

See original GitHub issue

Type of Issue

[ ] Bug Report
[x ] Feature Request / Question

Description

_feature/question: Is it possible to package an publish a library A that depends on library B, without publishing library B?

We have a common (internal) library that is to be shared among teams. We are now making a new library/component external use, that depends on this common library. We wish to package and publish this new component without having to publish our common library as a peerDependency.

All attempts until now result in a package that is missing the code from our common library.

Is this possible?

I currently get the following error when using my package: ERROR in : ‘my-common-component’ is not a known element:

  1. If ‘my-common-component’ is an Angular component, then verify that it is part of this module.
  2. If ‘my-common-component’ is a Web Component then add ‘CUSTOM_ELEMENTS_SCHEMA’ to the ‘@NgModule.schemas’ of this component to suppress this message. ("

    mstviewer works! [ERROR ->]<my-common-component></my-common-component>

")

Version Information

$ node_modules/.bin/ng-packagr --version
ng-packagr:  newest versieon 
@angular/*: 5.x

Please include all version numbers that might be relevant, e.g. third-party libraries

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
raphael22commented, Sep 6, 2019

“bundledDependencies” is not a viable solution for my problem. I need my final umd bundle to be embed with it’s dependencies (except for peerDependencies) in order to be used on the fly on a deployed angular application.

0reactions
github-actions[bot]commented, Jun 19, 2020

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to publish a npm package in four steps
Run npm init inside your git directory and follow the prompts. If you don't know what to put in a field, just leave...
Read more >
Publish to custom - will also include dependencies - Studio
Hi , When we are publishing the package using custom feed , does the package also have the dependencies ? Is there a...
Read more >
How to Publish an Open-Source Python Package to PyPI
In this step-by-step tutorial, you'll learn how to create a Python package for your project and how to publish it to PyPI, the...
Read more >
Publishing a package and updating its dependencies
Unfortunately, Studio does not currently support the publishing of a package and the simple update of all its dependencies; ...
Read more >
Adding package dependencies to your app - Apple Developer
A package author can publish their Swift package to either public or private repositories. Xcode supports both private and publicly available packages. Add...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found