From ddb569f9dd77781a862a31cf7f71be580fa8cc6e Mon Sep 17 00:00:00 2001 From: rafapaezbas <15270736+rafapaezbas@users.noreply.github.com> Date: Tue, 19 Nov 2024 15:41:53 +0100 Subject: [PATCH] add import conditions for fs, path and os (#81) --- package.json | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4fe923c..4ca0238 100644 --- a/package.json +++ b/package.json @@ -3,12 +3,19 @@ "version": "4.8.3", "description": "Build tool and bindings loader for node-gyp that supports prebuilds", "main": "index.js", - "exports": { - ".": { - "bare": "./bare.js", - "default": "./index.js" + "imports": { + "fs": { + "bare": "builtin:fs", + "default": "fs" }, - "./package": "./package.json" + "path": { + "bare": "builtin:path", + "default": "path" + }, + "os": { + "bare": "builtin:os", + "default": "os" + } }, "devDependencies": { "array-shuffle": "^1.0.1",