pkgbld 1.32.0 → 1.32.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 +2 -9
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -381,15 +381,8 @@ function includeExternals(importer, external, id, config) {
|
|
|
381
381
|
return external;
|
|
382
382
|
if (!external)
|
|
383
383
|
return false;
|
|
384
|
-
if (path.isAbsolute(id)) {
|
|
385
|
-
id = path.relative(path.join(process.cwd(), '..'), id);
|
|
386
|
-
}
|
|
387
384
|
const internals = config.includeExternals;
|
|
388
|
-
if (internals.includes(id) || internals.some(internal => id.
|
|
389
|
-
return false;
|
|
390
|
-
}
|
|
391
|
-
const relative = path.relative('.', path.resolve(importer ?? '.', id));
|
|
392
|
-
if (internals.some(internal => relative.includes(`node_modules/${internal}/`))) {
|
|
385
|
+
if (internals.includes(id) || internals.some(internal => id.includes(internal))) {
|
|
393
386
|
return false;
|
|
394
387
|
}
|
|
395
388
|
return true;
|
|
@@ -942,7 +935,7 @@ async function writeJson(path, json) {
|
|
|
942
935
|
await fs.writeFile(path, toFormattedJson(json));
|
|
943
936
|
}
|
|
944
937
|
|
|
945
|
-
var version = "1.32.
|
|
938
|
+
var version = "1.32.1";
|
|
946
939
|
var name = "pkgbld";
|
|
947
940
|
var license = "MIT";
|
|
948
941
|
var author = "Konstantin Shutkin";
|
package/package.json
CHANGED