pkgbld 1.29.0 → 1.29.1
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.mjs +4 -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
|
|
|
@@ -371,7 +372,7 @@ function isExternalInput(currentInput, inputs, inputsExt, id, config) {
|
|
|
371
372
|
|
|
372
373
|
async function preprocess (provider, config, inputs, inputsExt) {
|
|
373
374
|
if (config.preprocess.length > 0) {
|
|
374
|
-
const pluginPreprocess = await provider.import('rollup-plugin-preprocess');
|
|
375
|
+
const pluginPreprocess = await provider.import('rollup-plugin-preprocess', 'default');
|
|
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') {
|
|
@@ -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.
|
|
904
|
+
var version = "1.29.1";
|
|
903
905
|
var name = "pkgbld";
|
|
904
906
|
var license = "MIT";
|
|
905
907
|
var author = "Konstantin Shutkin";
|
package/package.json
CHANGED