diff --git a/README.md b/README.md index c1d45f4..fa3ab0f 100644 --- a/README.md +++ b/README.md @@ -9,16 +9,13 @@ > Example plugin for the > [dynamic-plugin-framework](https://github.com/flowscripter/dynamic-plugin-framework) -## Bun Module Usage - -Add the module: - -`bun add @flowscripter/example-plugin` +## Bundled Bun Module Usage Use the module: ```typescript -import { ExampleExtension } from "@flowscripter/example-plugin"; +import { ExampleExtension } from ""; +import { ExampleExtension } from "https://unpkg.com/@flowscripter/example-plugin/dist/bundle.js"; const extension = new ExampleExtension(); @@ -35,6 +32,12 @@ Test: `bun test` +Bundle for usage as a +[dynamic-plugin-framework](https://github.com/flowscripter/dynamic-plugin-framework) +plugin: + +`bun build index.ts --outdir ./dist --entry-naming bundle.js --minify` + **NOTE**: The following tasks use Deno as it excels at these and Bun does not currently provide such functionality: diff --git a/package.json b/package.json index 2e89b2b..2a75354 100644 --- a/package.json +++ b/package.json @@ -15,9 +15,15 @@ "dynamic", "import" ], - "module": "index.ts", + "module": "dist/bundle.js", "type": "module", "version": "1.0.7", + "exports": "./dist/bundle.js", + "files": [ + "dist/", + "README.md", + "LICENSE" + ], "publishConfig": { "access": "public" },