From e5fe210f46a41d74ad8e4f21b24ea89a789d7ea0 Mon Sep 17 00:00:00 2001 From: Okiki Date: Fri, 21 May 2021 13:45:59 -0400 Subject: [PATCH 1/2] fix ./dist subpath to ./dist/* --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index da3663e..b86747c 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ }, "default": "./dist/index.cjs.js" }, - "./dist/": "./dist/" + "./dist/": "./dist/*" }, "files": [ "dist/**/!(tsconfig.tsbuildinfo)" From 49912666761dfac509065c7d187360d5a0adcd97 Mon Sep 17 00:00:00 2001 From: Okiki Date: Fri, 21 May 2021 14:44:50 -0400 Subject: [PATCH 2/2] update .esm.js to .mjs, for module support in node --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8e0b32b..b81b941 100644 --- a/package.json +++ b/package.json @@ -3,13 +3,13 @@ "version": "0.1.1", "description": "This esbuild plugin uses Velcro to build projects without having to npm install dependencies", "main": "dist/index.cjs.js", - "module": "dist/index.esm.js", + "module": "dist/index.mjs", "types": "dist/index.d.ts", "browser": {}, "exports": { ".": { "require": "./dist/index.cjs.js", - "import": "./dist/index.esm.js", + "import": "./dist/index.mjs", "default": "./dist/index.cjs.js" }, "./dist/": "./dist/*",