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

Reference packages hosted outside of npm #47

Open
lvl99 opened this issue May 2, 2024 · 0 comments
Open

Reference packages hosted outside of npm #47

lvl99 opened this issue May 2, 2024 · 0 comments

Comments

@lvl99
Copy link

lvl99 commented May 2, 2024

I have one package (xlsx) which has an old version on npm (18.5) however they have newer versions only available via their own CDN.

In package.json I have the following:

{
  "dependencies": {
    "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"
  }
}

It seems GeneratePackageJsonPlugin is deriving the version from the node_modules (I have useInstalledVersions enabled), however I want to ensure that any externally hosted packages have their URLs included in the generated package.json.

Current output from plugin is:

{
  "dependencies": {
    "xlsx": "0.20.2"
  }
}

But since 0.20.2 doesn't exist on npm, there are issues when installing.

I can't make out from documentation if this is already supported. I looked at existing config options like sourcePackageFilenames but I think that's for different usage than what I need.

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