From c05bdf6f9a5392559a126286ca5c01060c208d3c Mon Sep 17 00:00:00 2001 From: PabloSzx Date: Thu, 3 Jun 2021 18:31:15 -0400 Subject: [PATCH] fix bob-esbuild-plugin without publishConfig --- packages/esbuild-plugin/package.json | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/esbuild-plugin/package.json b/packages/esbuild-plugin/package.json index f936a8ee..b4ddda1e 100644 --- a/packages/esbuild-plugin/package.json +++ b/packages/esbuild-plugin/package.json @@ -4,6 +4,16 @@ "description": "bob-esbuild main plugin, based on https://github.com/egoist/rollup-plugin-esbuild", "license": "MIT", "author": "PabloSzx ", + "exports": { + ".": { + "require": "./lib/index.js", + "import": "./lib/index.mjs" + }, + "./*": { + "require": "./lib/*.js", + "import": "./lib/*.mjs" + } + }, "main": "lib/index.js", "types": "lib/index.d.ts", "files": [ @@ -36,10 +46,6 @@ "@types/node": "^15.6.1", "rollup": "^2.50.3" }, - "publishConfig": { - "access": "public", - "directory": "lib" - }, "tsup": { "entryPoints": [ "src/**/*.ts"