pluribuild 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +16 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # pluribuild
2
2
 
3
- Build multiple entry points into multiple output files with a single command.
3
+ Build multiple entry points into multiple output files with a single command and esbuild under the hood.
4
+
5
+ ## CLI
4
6
 
5
7
  Run `npx pluribuild` to build:
6
8
  - `entries/<name>/src/index.ts(x)` into `dist/<name>/index.js`;
@@ -11,3 +13,16 @@ Subdirectories of `entries` and entry point files whose names start with an unde
11
13
  Run `npx pluribuild <dir>` to point to a parent directory other than `entries`.
12
14
 
13
15
  Add `--dev` to the command to enable rebuilds on code changes. Add `--minify=off` to turn off minification.
16
+
17
+ ## Code
18
+
19
+ ```ts
20
+ import { build } from "pluribuild";
21
+
22
+ await build({
23
+ dir: "entries", // Default
24
+ ignore: ["lib"], // Default: not set, ignores all starting with "_"
25
+ minify: true, // Default
26
+ dev: false, // Default
27
+ });
28
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pluribuild",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Build multiple entry points into multiple output files with a single command",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",