pkgbld 1.15.2 → 1.15.4
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.js +81 -3
- package/package.json +2 -1
- /package/dist/{builtin-plugins → src/builtin-plugins}/binify.d.ts +0 -0
- /package/dist/{builtin-plugins → src/builtin-plugins}/clean.d.ts +0 -0
- /package/dist/{builtin-plugins → src/builtin-plugins}/commonjs.d.ts +0 -0
- /package/dist/{builtin-plugins → src/builtin-plugins}/externals.d.ts +0 -0
- /package/dist/{builtin-plugins → src/builtin-plugins}/preprocess.d.ts +0 -0
- /package/dist/{builtin-plugins → src/builtin-plugins}/resolve.d.ts +0 -0
- /package/dist/{builtin-plugins → src/builtin-plugins}/terser.d.ts +0 -0
- /package/dist/{builtin-plugins → src/builtin-plugins}/typescript.d.ts +0 -0
- /package/dist/{check-ts-config.d.ts → src/check-ts-config.d.ts} +0 -0
- /package/dist/{create-subpackages.d.ts → src/create-subpackages.d.ts} +0 -0
- /package/dist/{eject.d.ts → src/eject.d.ts} +0 -0
- /package/dist/{get-cli-options.d.ts → src/get-cli-options.d.ts} +0 -0
- /package/dist/{get-pkg.d.ts → src/get-pkg.d.ts} +0 -0
- /package/dist/{get-plugins.d.ts → src/get-plugins.d.ts} +0 -0
- /package/dist/{get-rollup-configs.d.ts → src/get-rollup-configs.d.ts} +0 -0
- /package/dist/{helpers.d.ts → src/helpers.d.ts} +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{messages.d.ts → src/messages.d.ts} +0 -0
- /package/dist/{process-pkg.d.ts → src/process-pkg.d.ts} +0 -0
- /package/dist/{types.d.ts → src/types.d.ts} +0 -0
- /package/dist/{write-json.d.ts → src/write-json.d.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -531,6 +531,85 @@ async function writeJson(path, json) {
|
|
|
531
531
|
await fs.writeFile(path, JSON.stringify(json, null, 2) + '\n');
|
|
532
532
|
}
|
|
533
533
|
|
|
534
|
+
var version = "1.15.4";
|
|
535
|
+
var license = "MIT";
|
|
536
|
+
var name = "pkgbld";
|
|
537
|
+
var author = {
|
|
538
|
+
name: "Konstantin Shutkin"
|
|
539
|
+
};
|
|
540
|
+
var bin = "./dist/index.js";
|
|
541
|
+
var main = "./dist/index.js";
|
|
542
|
+
var typings = "./dist/index.d.ts";
|
|
543
|
+
var files = [
|
|
544
|
+
"dist",
|
|
545
|
+
"LICENSE"
|
|
546
|
+
];
|
|
547
|
+
var engines = {
|
|
548
|
+
node: ">=16"
|
|
549
|
+
};
|
|
550
|
+
var repository = {
|
|
551
|
+
type: "git",
|
|
552
|
+
url: "git+https://github.com/kshutkin/package-build.git"
|
|
553
|
+
};
|
|
554
|
+
var bugs = {
|
|
555
|
+
url: "https://github.com/kshutkin/rollup-extras/issues"
|
|
556
|
+
};
|
|
557
|
+
var homepage = "https://github.com/kshutkin/package-build/blob/main/pkgbld/README.md";
|
|
558
|
+
var keywords = [
|
|
559
|
+
"pkgbld",
|
|
560
|
+
"build",
|
|
561
|
+
"exports",
|
|
562
|
+
"rollup"
|
|
563
|
+
];
|
|
564
|
+
var scripts = {
|
|
565
|
+
build: "rollup -c",
|
|
566
|
+
lint: "eslint ./src"
|
|
567
|
+
};
|
|
568
|
+
var devDependencies = {
|
|
569
|
+
"@types/lodash": "^4.14.192",
|
|
570
|
+
"@types/minimist": "^1.2.2"
|
|
571
|
+
};
|
|
572
|
+
var dependencies = {
|
|
573
|
+
"@niceties/logger": "^1.1.10",
|
|
574
|
+
"@niceties/draftlog-appender": "^1.3.0",
|
|
575
|
+
lodash: "^4.17.21",
|
|
576
|
+
rollup: "^3.20.2",
|
|
577
|
+
"rollup-plugin-typescript2": "^0.34.1",
|
|
578
|
+
"rollup-plugin-preprocess": "^0.0.4",
|
|
579
|
+
"@rollup/plugin-commonjs": "^24.0.1",
|
|
580
|
+
"@rollup/plugin-terser": "^0.4.0",
|
|
581
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
582
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
583
|
+
"@rollup-extras/plugin-clean": "^1.3.4",
|
|
584
|
+
"@rollup-extras/plugin-binify": "^1.1.5",
|
|
585
|
+
"@rollup-extras/plugin-externals": "^1.1.8",
|
|
586
|
+
"@slimlib/refine-partition": "^1.0.0",
|
|
587
|
+
"@slimlib/smart-mock": "^0.1.2",
|
|
588
|
+
"is-builtin-module": "^3.2.1",
|
|
589
|
+
typescript: "^5.0.2",
|
|
590
|
+
terser: "^5.16.8",
|
|
591
|
+
minimist: "^1.2.8",
|
|
592
|
+
kleur: "^4.1.5"
|
|
593
|
+
};
|
|
594
|
+
var pkgbldPkg = {
|
|
595
|
+
version: version,
|
|
596
|
+
license: license,
|
|
597
|
+
name: name,
|
|
598
|
+
author: author,
|
|
599
|
+
bin: bin,
|
|
600
|
+
main: main,
|
|
601
|
+
typings: typings,
|
|
602
|
+
files: files,
|
|
603
|
+
engines: engines,
|
|
604
|
+
repository: repository,
|
|
605
|
+
bugs: bugs,
|
|
606
|
+
homepage: homepage,
|
|
607
|
+
keywords: keywords,
|
|
608
|
+
scripts: scripts,
|
|
609
|
+
devDependencies: devDependencies,
|
|
610
|
+
dependencies: dependencies
|
|
611
|
+
};
|
|
612
|
+
|
|
534
613
|
const imports = new Map;
|
|
535
614
|
const setup = new Set;
|
|
536
615
|
let generate, generateGlobals;
|
|
@@ -585,7 +664,6 @@ async function ejectConfig(config, pkgPath, options, inputs, helpers, pkg) {
|
|
|
585
664
|
.join('\n');
|
|
586
665
|
const setupString = Array.from(setup)
|
|
587
666
|
.join('\n');
|
|
588
|
-
console.log(setupString);
|
|
589
667
|
const { minify } = await import('terser');
|
|
590
668
|
const result = await minify(`${importsString}\n${setupString}\nexport default ${text};`, {
|
|
591
669
|
module: true,
|
|
@@ -612,11 +690,11 @@ async function ejectConfig(config, pkgPath, options, inputs, helpers, pkg) {
|
|
|
612
690
|
if ('pkgbld' in devDependencies) {
|
|
613
691
|
delete devDependencies.pkgbld;
|
|
614
692
|
}
|
|
615
|
-
devDependencies['rollup'] = '
|
|
693
|
+
devDependencies['rollup'] = pkgbldPkg.dependencies['rollup'] ;
|
|
616
694
|
const isBuiltin = (await import('is-builtin-module')).default;
|
|
617
695
|
for (const key of imports.keys()) {
|
|
618
696
|
if (!isBuiltin(key)) {
|
|
619
|
-
devDependencies[key] = '*';
|
|
697
|
+
devDependencies[key] = pkgbldPkg.dependencies[key] ?? '*';
|
|
620
698
|
}
|
|
621
699
|
}
|
|
622
700
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.15.
|
|
2
|
+
"version": "1.15.4",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"name": "pkgbld",
|
|
5
5
|
"author": {
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"rollup-plugin-preprocess": "^0.0.4",
|
|
43
43
|
"@rollup/plugin-commonjs": "^24.0.1",
|
|
44
44
|
"@rollup/plugin-terser": "^0.4.0",
|
|
45
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
45
46
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
46
47
|
"@rollup-extras/plugin-clean": "^1.3.4",
|
|
47
48
|
"@rollup-extras/plugin-binify": "^1.1.5",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|