From 624303bd4b6b4d420182e1342e0ea92a201a8a5a Mon Sep 17 00:00:00 2001 From: chris48s Date: Mon, 29 Jul 2024 18:40:59 +0100 Subject: [PATCH] make BasePlugin the main export --- package.json | 3 +-- src/public.js | 12 ++++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 src/public.js diff --git a/package.json b/package.json index cdabe59c..c45e842a 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,7 @@ "bin": { "v8r": "src/index.js" }, - "main": "src/index.js", - "exports": "./src/index.js", + "exports": "./src/public.js", "files": [ "src/**/!(*.spec).js", "config-schema.json", diff --git a/src/public.js b/src/public.js new file mode 100644 index 00000000..9b14e882 --- /dev/null +++ b/src/public.js @@ -0,0 +1,12 @@ +import { BasePlugin } from "./plugins.js"; + +/* +TODO: +It might be useful to explicitly expose some utility functions here for plugin authors +BUT +anything you expose here becomes public interface for semver purposes. + +For the moment, just expose BasePlugin +*/ + +export { BasePlugin };