pkgbld 1.31.2 → 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.d.ts +1 -1
- package/dist/index.mjs +10 -11
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ declare function getCliOptions(plugins: Partial<PkgbldPlugin>[], pkg: PackageJso
|
|
|
13
13
|
preprocess: string[];
|
|
14
14
|
dir: string;
|
|
15
15
|
sourceDir: string;
|
|
16
|
-
bin?: string[]
|
|
16
|
+
bin?: string[];
|
|
17
17
|
includeExternals: boolean | string[];
|
|
18
18
|
eject: boolean;
|
|
19
19
|
noTsConfig: boolean;
|
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;
|
|
@@ -473,6 +466,11 @@ async function binify (provider, config) {
|
|
|
473
466
|
}
|
|
474
467
|
}
|
|
475
468
|
|
|
469
|
+
async function json (provider) {
|
|
470
|
+
const pluginJson = await provider.import('@rollup/plugin-json');
|
|
471
|
+
provider.provide(() => pluginJson(), Priority.preprocess);
|
|
472
|
+
}
|
|
473
|
+
|
|
476
474
|
const plugins = [
|
|
477
475
|
clean,
|
|
478
476
|
commonjs,
|
|
@@ -481,7 +479,8 @@ const plugins = [
|
|
|
481
479
|
resolve,
|
|
482
480
|
terser,
|
|
483
481
|
typescript,
|
|
484
|
-
binify
|
|
482
|
+
binify,
|
|
483
|
+
json
|
|
485
484
|
];
|
|
486
485
|
const noop = () => undefined;
|
|
487
486
|
function createProvider(preimportMap) {
|
|
@@ -936,7 +935,7 @@ async function writeJson(path, json) {
|
|
|
936
935
|
await fs.writeFile(path, toFormattedJson(json));
|
|
937
936
|
}
|
|
938
937
|
|
|
939
|
-
var version = "1.
|
|
938
|
+
var version = "1.32.1";
|
|
940
939
|
var name = "pkgbld";
|
|
941
940
|
var license = "MIT";
|
|
942
941
|
var author = "Konstantin Shutkin";
|
|
@@ -998,7 +997,7 @@ var devDependencies = {
|
|
|
998
997
|
"type-fest": "^4.20.1",
|
|
999
998
|
"dts-bundle-generator": "^9.5.1",
|
|
1000
999
|
options: "workspace:*",
|
|
1001
|
-
c8: "^
|
|
1000
|
+
c8: "^10.0.0",
|
|
1002
1001
|
"cli-test-helper": "workspace:*"
|
|
1003
1002
|
};
|
|
1004
1003
|
var peerDependencies = {
|
package/package.json
CHANGED