pkgbld 1.1.18 → 1.2.0

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/dist/index.js +3 -0
  2. package/package.json +4 -4
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.18",
2
+ "version": "1.2.0",
3
3
  "license": "MIT",
4
4
  "name": "pkgbld",
5
5
  "author": {
@@ -54,9 +54,9 @@
54
54
  "rollup-plugin-terser": "7.0.2",
55
55
  "rollup-plugin-typescript2": "0.31.2",
56
56
  "rollup-plugin-preprocess": "0.0.4",
57
- "@rollup/plugin-commonjs": "21.0.1",
57
+ "@rollup/plugin-commonjs": "21.0.2",
58
58
  "@rollup/plugin-node-resolve": "13.1.3",
59
- "typescript": "4.5.5",
60
- "minimist": "1.2.5"
59
+ "typescript": "4.6.2",
60
+ "minimist": "1.2.6"
61
61
  }
62
62
  }