From 0306f9b8fcd10ef898dc541d1b68a5e4da6fc4be Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Mon, 13 Mar 2017 12:46:38 -0400 Subject: [PATCH] Bundle dependencies to ensure expected module identifiers. The npm-shrinkwrap.json file ensures that the dependencies of this package are installed in a nested node_modules directory if you're using npm, but npm-shrinkwrap.json is ignored if you're using a tool like yarn. This is important because of the way we build path aliases in index.js: https://github.com/meteor/node-stubs/blob/618d67149f8c133e812bb927e9b21eb6a1f5daab/index.js#L6-L10 --- package.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/package.json b/package.json index 5d62943bb7..ecc882fd02 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,31 @@ "util": "^0.10.3", "vm-browserify": "0.0.4" }, + "bundledDependencies": [ + "assert", + "browserify-zlib", + "buffer", + "console-browserify", + "constants-browserify", + "crypto-browserify", + "domain-browser", + "events", + "http-browserify", + "https-browserify", + "os-browserify", + "path-browserify", + "process", + "punycode", + "querystring-es3", + "readable-stream", + "stream-browserify", + "string_decoder", + "timers-browserify", + "tty-browserify", + "url", + "util", + "vm-browserify" + ], "devDependencies": { "rimraf": "^2.5.2" },