Skip to content

Commit

Permalink
make BasePlugin the main export
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Jul 29, 2024
1 parent 902fb42 commit 624303b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions src/public.js
Original file line number Diff line number Diff line change
@@ -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 };

0 comments on commit 624303b

Please sign in to comment.