pkgbld 1.24.1 → 1.24.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -687,7 +687,8 @@ function processPackage(pkg, config, plugins) {
687
687
  pkg.scripts = {};
688
688
  }
689
689
  if (!('prepack' in pkg.scripts)) {
690
- pkg.scripts.prepack = 'pkgbld prune';
690
+ const binary = typeof pkg.scripts.build === 'string' && pkg.scripts.build?.startsWith('pkgbld-internal') ? 'pkgbld-internal' : 'pkgbld';
691
+ pkg.scripts.prepack = `${binary} prune`;
691
692
  }
692
693
  if (pkg.exports['.'] == null) {
693
694
  pkg.exports['.'] = {};
@@ -803,7 +804,7 @@ async function writeJson(path, json) {
803
804
  await fs.writeFile(path, toFormattedJson(json));
804
805
  }
805
806
 
806
- var version = "1.24.1";
807
+ var version = "1.24.2";
807
808
  var name = "pkgbld";
808
809
  var license = "MIT";
809
810
  var author = "Konstantin Shutkin";
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.24.1",
2
+ "version": "1.24.2",
3
3
  "name": "pkgbld",
4
4
  "license": "MIT",
5
5
  "author": "Konstantin Shutkin",