From c08fc01250ca510299015b37d4acc404b6b9dc65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Isager=20Dalsgar=C3=B0?= Date: Tue, 12 Nov 2024 13:59:18 +0100 Subject: [PATCH] Add dedicated export for Bare (#80) --- bare.js | 1 + package.json | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 bare.js diff --git a/bare.js b/bare.js new file mode 100644 index 0000000..37597a5 --- /dev/null +++ b/bare.js @@ -0,0 +1 @@ +module.exports = require.addon.bind(require) diff --git a/package.json b/package.json index b8c4442..060c3da 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,13 @@ "version": "4.8.2", "description": "Build tool and bindings loader for node-gyp that supports prebuilds", "main": "index.js", + "exports": { + ".": { + "bare": "./bare.js", + "default": "./index.js" + }, + "./package": "./package.json" + }, "devDependencies": { "array-shuffle": "^1.0.1", "standard": "^14.0.0",