pkgbld 1.29.0 → 1.29.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.mjs +5 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -7,6 +7,7 @@ import { cli, command } from 'cleye';
7
7
  import refiner from '@slimlib/refine-partition';
8
8
  import camelCase from 'lodash/camelCase.js';
9
9
  import kleur from 'kleur';
10
+ import { fileURLToPath } from 'url';
10
11
  import cloneDeep from 'lodash/cloneDeep.js';
11
12
  import isEqual from 'lodash/isEqual.js';
12
13
 
@@ -375,11 +376,11 @@ async function preprocess (provider, config, inputs, inputsExt) {
375
376
  const include = config.preprocess.map(name => `${config.sourceDir}/${name}.${inputsExt.get(name)}`);
376
377
  for (const format of config.formats) {
377
378
  if (format !== 'umd') {
378
- provider.provide(() => pluginPreprocess({ include, context: { [format]: true } }), 1000 /* Priority.preprocess */, { format });
379
+ provider.provide(() => pluginPreprocess.default({ include, context: { [format]: true } }), 1000 /* Priority.preprocess */, { format });
379
380
  }
380
381
  else {
381
382
  for (const currentInput of config.umdInputs) {
382
- provider.provide(() => pluginPreprocess({ include, context: { umd: true } }), 1000 /* Priority.preprocess */, { format, inputs: [`./${config.sourceDir}/${currentInput}.${inputsExt.get(currentInput)}`] });
383
+ provider.provide(() => pluginPreprocess.default({ include, context: { umd: true } }), 1000 /* Priority.preprocess */, { format, inputs: [`./${config.sourceDir}/${currentInput}.${inputsExt.get(currentInput)}`] });
383
384
  }
384
385
  }
385
386
  }
@@ -460,6 +461,7 @@ function createProvider(preimportMap) {
460
461
  }, plugins];
461
462
  }
462
463
 
464
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
463
465
  function getHelpers(pkgName) {
464
466
  function getGlobalName(anInput) {
465
467
  return camelCase(path.join(pkgName, path.basename(anInput, path.extname(anInput)) !== 'index' ? path.basename(anInput, path.extname(anInput)) : ''));
@@ -899,7 +901,7 @@ async function writeJson(path, json) {
899
901
  await fs.writeFile(path, toFormattedJson(json));
900
902
  }
901
903
 
902
- var version = "1.29.0";
904
+ var version = "1.29.2";
903
905
  var name = "pkgbld";
904
906
  var license = "MIT";
905
907
  var author = "Konstantin Shutkin";
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.29.0",
2
+ "version": "1.29.2",
3
3
  "name": "pkgbld",
4
4
  "license": "MIT",
5
5
  "author": "Konstantin Shutkin",