pkgbld 1.1.20 → 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.
- package/dist/index.js +3 -0
- package/package.json +1 -1
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