From a02673231c3ae245920a1f272658a20daa7b0d7c Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Aug 31 2020 22:03:11 +0000 Subject: Add another directory to look for bundled node modules The bundled directory gets it's name from "npm install --no-optional --only=prod", the command that generates the content. This is part of a working script and proposal for making bundling of nodejs libraries easier. Signed-off-by: Troy Dawson --- diff --git a/nodejs.prov b/nodejs.prov index bfea318..663d3d9 100755 --- a/nodejs.prov +++ b/nodejs.prov @@ -36,7 +36,7 @@ from itertools import chain, groupby DEPENDENCY_TEMPLATE = "npm(%(name)s) = %(version)s" BUNDLED_TEMPLATE = "bundled(nodejs-%(name)s) = %(version)s" -NODE_MODULES = {"node_modules"} +NODE_MODULES = {"node_modules", "node_modules_prod"} class PrivatePackage(RuntimeError):