Skip to content

Reference packages hosted outside of npm #47

@lvl99

Description

@lvl99

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions