From 00c96a2b5a0e904f9d2bb9821e18afc218f2bf2b Mon Sep 17 00:00:00 2001 From: Nate Fischer Date: Sat, 8 Mar 2025 22:41:15 -0800 Subject: [PATCH] fix: add package.json to exports list No change to logic. shx has a dependency on shelljs/package.json so that it can read the ShellJS version number. This is useful for shx and probably harmless for other packages (we need to ship the package.json file anyway), so this adds it to the exports list as an optional export. Fixes #1195 Test: I ran `shx --version` with this copy of shelljs as the dependency --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index d6e8c016..89a5319f 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,8 @@ "./global.js": "./global.js", "./make": "./make.js", "./make.js": "./make.js", + "./package": "./package.json", + "./package.json": "./package.json", "./plugin": "./plugin.js", "./plugin.js": "./plugin.js" },