pkgbld 1.1.20 → 1.2.2

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 CHANGED
@@ -63,7 +63,7 @@ Defines what formats to build, only supports `es` and `cjs` at the moment. Use `
63
63
  pkgbld --preprocess=index
64
64
  ```
65
65
 
66
- Defines what entry points/files should be preprocessed using `rollup-plugin-preprocess`.
66
+ Defines what entry points/files should be preprocessed using `rollup-plugin-preprocess`. For the entry point will be defined variable esm (for esm target) or cjs (for others) depending on the target type. Please request more variables / more granular logic if you want more.
67
67
 
68
68
  ### dir
69
69
 
package/dist/index.js CHANGED
@@ -236,6 +236,7 @@ function processPackage(pkg, config) {
236
236
  if (pkg.exports['.'] == null) {
237
237
  pkg.exports['.'] = {};
238
238
  }
239
+ pkg.exports['./package.json'] = './package.json';
239
240
  if (typeof pkg.umd === 'string') {
240
241
  pkg.umd = `./${config.dir}/index.umd.js`;
241
242
  if (!config.umdTargets.includes('index')) {
@@ -258,6 +259,8 @@ function processPackage(pkg, config) {
258
259
  pkg.unpkg = `./${config.dir}/index.umd.js`;
259
260
  }
260
261
  for (const id in pkg.exports) {
262
+ if (id === './package.json')
263
+ continue;
261
264
  const basename = id == '.' ? 'index' : path__default["default"].basename(id);
262
265
  if (typeof pkg.exports[id] !== 'object') {
263
266
  pkg.exports[id] = {};
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.20",
2
+ "version": "1.2.2",
3
3
  "license": "MIT",
4
4
  "name": "pkgbld",
5
5
  "author": {
@@ -20,7 +20,7 @@
20
20
  "bugs": {
21
21
  "url": "https://github.com/kshutkin/rollup-extras/issues"
22
22
  },
23
- "homepage": "https://github.com/kshutkin/package-build/README.md",
23
+ "homepage": "https://github.com/kshutkin/package-build#readme",
24
24
  "keywords": [
25
25
  "pkgbld",
26
26
  "build",
@@ -50,7 +50,7 @@
50
50
  "@niceties/logger": "1.1.1",
51
51
  "is-builtin-module": "3.1.0",
52
52
  "lodash": "4.17.21",
53
- "rollup": "2.68.0",
53
+ "rollup": "2.69.0",
54
54
  "rollup-plugin-terser": "7.0.2",
55
55
  "rollup-plugin-typescript2": "0.31.2",
56
56
  "rollup-plugin-preprocess": "0.0.4",