-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Description
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.