From cf482f01700ddd0946e71ad5e7d2ca0d06cc49a3 Mon Sep 17 00:00:00 2001 From: Piotr Grzesik Date: Thu, 7 Apr 2022 14:34:29 +0200 Subject: [PATCH] fix(Standalone): Ensure proper `npm` bundling --- scripts/pkg/config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/pkg/config.js b/scripts/pkg/config.js index 91161c33a..c23d35690 100644 --- a/scripts/pkg/config.js +++ b/scripts/pkg/config.js @@ -21,6 +21,7 @@ module.exports = { '../../node_modules/@serverless/dashboard-plugin/sdk-js/dist/index.js', '../../node_modules/@serverless/dashboard-plugin/sdk-py', // Ensure npm is bundled as a dependency + '../../node_modules/npm/lib', '../../node_modules/npm/bin/npm-cli.js', // Below module is not automatically traced by pkg, we need to point it manually // See: https://github.com/npm/npm-lifecycle/pull/41