From 78ed036573cb2800f9dc88b86a41b03f6b2fd3e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Ojeda=20Guti=C3=A9rrez?= <63747287+alexojegu@users.noreply.github.com> Date: Fri, 17 Nov 2023 06:18:40 +0100 Subject: [PATCH] Exports shell.js and make.js on package.json (#1135) Exports shell.js and make.js on package.json so make.js can be imported as "shelljs/make" without require file extension when using ESM. --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index dcd073c0..40619da4 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,11 @@ "license": "BSD-3-Clause", "homepage": "http://github.com/shelljs/shelljs", "main": "./shell.js", + "exports": { + ".": "./shell.js", + "./make": "./make.js", + "./make.js": "./make.js" + }, "files": [ "commands.js", "global.js",