Skip to content

hugo mod npm pack ignores script sections #8319

@cmahnke

Description

@cmahnke

I'm not sure if this issue type is right, but anyways:

I'm trying to create a base theme for some of my sites using the hugo mod npm pack command (which would be
better documented by providing a simple example btw). My node module setup is a bit different from the normal use cases since I need to run patch-package after one of my dependencies is installed to fix some issues that haven't been released yet. To do this I have a script section in the package.hugo.json file of the theme.

While hugo mod npm pack merges the dependencies and devDependencies the script section is discarded without any warning at all.

Is this on purpose? If yes, my proposal would be a flag for hugo mod npm pack to include it. If not, behavior can be considered a bug - anyways a warning or some --debug message would be nice.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions