pkgbld 1.16.0 → 1.16.1
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.
- package/README.md +6 -6
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
Rollup based build tool for building libraries based on package.json config and simple CLI options.
|
|
6
6
|
|
|
7
|
-
It is simple building tool that supports building to different targets like: `es`, `cjs`, `umd` without additional
|
|
7
|
+
It is a simple building tool that supports building to different targets like: `es`, `cjs`, `umd` without additional transformation other than minification using `terser` or preprocess using `rollup-plugin-preprocess`.
|
|
8
8
|
|
|
9
|
-
[
|
|
9
|
+
[Changelog](./CHANGELOG.md)
|
|
10
10
|
|
|
11
11
|
## Why
|
|
12
12
|
|
|
13
|
-
It is created to easily build libraries that contains
|
|
13
|
+
It is created to easily build libraries that contains multiple subpath exports (entry points, subpackages) because it is not that easy to do at the moment with `microbundle`, `tsdx` or `ng-packagr` (if you are on Typescript).
|
|
14
14
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
@@ -36,7 +36,7 @@ Run `npm run build`.
|
|
|
36
36
|
|
|
37
37
|
## package.json
|
|
38
38
|
|
|
39
|
-
`pkgbld` expects name field to be filled in the package.json file. `exports` field defines what entries/outputs should be
|
|
39
|
+
`pkgbld` expects the name field to be filled in the package.json file. `exports` field defines what entries/outputs should be built for this package.
|
|
40
40
|
|
|
41
41
|
## CLI options
|
|
42
42
|
|
|
@@ -82,7 +82,7 @@ Defines what formats to build, only supports `es` and `cjs` at the moment. Use `
|
|
|
82
82
|
pkgbld --preprocess=index
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
Defines what entry points/files should be preprocessed using `rollup-plugin-preprocess`.
|
|
85
|
+
Defines what entry points/files should be preprocessed using `rollup-plugin-preprocess`. The entry point will be defined as variable es (for esm target), cjs (for commonjs) and umd (for umd) depending on the target type. Please request more variables / more granular logic if you want more.
|
|
86
86
|
|
|
87
87
|
### dir
|
|
88
88
|
|
|
@@ -114,7 +114,7 @@ File(s) to make executable. First entry will be added to package.json
|
|
|
114
114
|
pkgbld --include-externals
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
-
Bundles all externals into package.
|
|
117
|
+
Bundles all externals into a package.
|
|
118
118
|
|
|
119
119
|
### eject
|
|
120
120
|
|
package/dist/index.js
CHANGED
package/package.json
CHANGED