468 questions
1 vote
1 answer
63 views
How do I force a specific version of a peer dependency of my library?
I am building an npm library (angular library) that needs the following packages in order to run: @angular/core@17 @formio/[email protected] @ngx-bootstrap@12 I have declared the above as peer dependencies of ...
0 votes
0 answers
40 views
How to make an Oclif command the default command when using explicit command strategy?
I'm building a CLI using Oclif v4 with TypeScript and tsup for bundling. I want my main command to run by default, without requiring the user to type it as a subcommand. Currently, my oclif ...
0 votes
0 answers
52 views
Building lib in npm worspaces with typescript project references
Context I’m working on a npm workspace with this structure: packages/ lib-a (publishable React Native package) lib-b (internal library not publishable) lib-a depends on lib-b I use TypeScript ...
0 votes
1 answer
286 views
How to package a standalone Tailwind v4 component (with tsup) without conflicting with host app styles?
I’m creating a reusable component library with tsup to share common UI elements across my Next.js projects (for example, a Footer). The Footer works fine in my base app. But when I publish it as an ...
0 votes
1 answer
125 views
How to generate NPM package for protoc compiled Typescript
I have a desire to create a reusable NPM package for consumption in Angular 18+ (using old build system) based upon a set of .proto files. The desired usage would be a simple installation of the npm ...
0 votes
1 answer
33 views
Convert "browser" fields in package.json to esm "exports"
I have a package that uses fields like this to hide the inclusion of node.js fs fields from the browser { "name": "mypackage", "version": "1.0.0", "...
0 votes
0 answers
32 views
Managing dependency conflicts with npm aliases for design system alpha releases
Background Our frontend team practices Trunk Based Development and Continuous Deployment, but we're the only team in our company doing so. Because of this approach, we make extensive use of feature ...
0 votes
1 answer
177 views
Uncaught TypeError: Failed to resolve module specifier "codemirror". Relative references must start with either "/", "./", or "../"
I'm trying to integrate CodeMirror 6 (including the merge addon and lang-markdown) into my NiceGUI application, following the node module integration example in the NICEGUI documentation. However, ...
0 votes
2 answers
126 views
Azure DevOps Artifacts Feed, how to embed relative image in ReadMe?
VS Code has no problem showing the embedded image in the ReadMe preview. But for some reason, the image doesn't work in Azure DevOps Artifacts once the Angular library is published as a private NPM ...
0 votes
0 answers
98 views
Issue with Installing Private GitHub Package: "405 Method Not Allowed" & "Incorrect Packument"
We have an internal package for our UI library, which is stored in the GitHub package registry and installed using the npm command. Now, as of this morning, when we bumped a patch version and ...
0 votes
0 answers
27 views
Prevent Overriding a nested dependency while using npm
I have the following dependency tree: ├─┬ @angular/[email protected] overridden │ ├─┬ @schematics/[email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ └── [email protected] deduped │ ├─┬ npm-...
0 votes
1 answer
598 views
Publishing an npm package with restricted access
I wrote a yeoman generator and want to publish it as an npm package. I do not want it to be public though and I only want certain people or my team/organization to have access. Although I would like ...
0 votes
1 answer
22 views
Tailwind classes used by my vue component within my npm pacakge not available when package is imported
I have the below Vue Component: // src/components/CodeBlock.vue <script setup> import { ref } from 'vue'; const props = defineProps({ value: String }) const text = ref(...
0 votes
0 answers
69 views
NPM publish fails in .gitlab-ci.yml
I have created a pipeline, which runs smoothly in almost all projects, where I am using it. Except one. All projects have to excat same permissions. I use node:16.20 for all as image, I have tried ...
0 votes
0 answers
49 views
APNS Error when Sending Live Activity Notification in Node.js
I'm working on a Node.js application that sends live activity notifications using the apns2 library. However, I'm encountering an error when trying to send a notification. Below is the relevant code ...