pkgbld 1.14.5 → 1.15.0
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/README.md +27 -14
- package/dist/builtin-plugins/binify.d.ts +3 -3
- package/dist/builtin-plugins/clean.d.ts +2 -2
- package/dist/builtin-plugins/commonjs.d.ts +2 -2
- package/dist/builtin-plugins/externals.d.ts +3 -3
- package/dist/builtin-plugins/preprocess.d.ts +3 -3
- package/dist/builtin-plugins/resolve.d.ts +2 -2
- package/dist/builtin-plugins/terser.d.ts +3 -3
- package/dist/builtin-plugins/typescript.d.ts +2 -2
- package/dist/check-ts-config.d.ts +3 -0
- package/dist/create-subpackages.d.ts +2 -2
- package/dist/eject.d.ts +6 -0
- package/dist/get-cli-options.d.ts +15 -12
- package/dist/get-pkg.d.ts +2 -2
- package/dist/get-plugins.d.ts +4 -11
- package/dist/get-rollup-configs.d.ts +57 -56
- package/dist/helpers.d.ts +10 -13
- package/dist/index.d.ts +1 -1
- package/dist/index.js +642 -490
- package/dist/messages.d.ts +1 -1
- package/dist/process-pkg.d.ts +3 -3
- package/dist/types.d.ts +43 -24
- package/dist/write-json.d.ts +2 -0
- package/package.json +22 -19
- package/dist/write-pkg.d.ts +0 -2
package/dist/messages.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const mainLoggerText: (sourceDir: string, dir: string, configsCount: number, startingTime: number, finishedCount?: number) => (final?: boolean) => string;
|
|
1
|
+
export declare const mainLoggerText: (sourceDir: string, dir: string, configsCount: number, startingTime: number, finishedCount?: number) => (final?: boolean) => string;
|
package/dist/process-pkg.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { getCliOptions } from './get-cli-options';
|
|
2
|
-
import { Json } from './types';
|
|
3
|
-
export declare function processPackage(pkg: Json, config: ReturnType<typeof getCliOptions>): string[];
|
|
1
|
+
import { getCliOptions } from './get-cli-options';
|
|
2
|
+
import { Json } from './types';
|
|
3
|
+
export declare function processPackage(pkg: Json, config: ReturnType<typeof getCliOptions>): string[];
|
package/dist/types.d.ts
CHANGED
|
@@ -1,24 +1,43 @@
|
|
|
1
|
-
import { Plugin, InternalModuleFormat } from 'rollup';
|
|
2
|
-
/**
|
|
3
|
-
* export interface Replacer {
|
|
4
|
-
name: string;
|
|
5
|
-
used: () => void;
|
|
6
|
-
}*/
|
|
7
|
-
export type Json = null | string | number | boolean | Json[] | {
|
|
8
|
-
[name: string]: Json;
|
|
9
|
-
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import type { Plugin, InternalModuleFormat } from 'rollup';
|
|
2
|
+
/**
|
|
3
|
+
* export interface Replacer {
|
|
4
|
+
name: string;
|
|
5
|
+
used: () => void;
|
|
6
|
+
}*/
|
|
7
|
+
export type Json = null | string | number | boolean | Json[] | {
|
|
8
|
+
[name: string]: Json;
|
|
9
|
+
};
|
|
10
|
+
export type PackageJson = {
|
|
11
|
+
name: string;
|
|
12
|
+
dependencies?: Record<string, string>;
|
|
13
|
+
devDependencies?: Record<string, string>;
|
|
14
|
+
peerDependencies: Record<string, string>;
|
|
15
|
+
};
|
|
16
|
+
export declare const enum Priotiry {
|
|
17
|
+
preprocess = 1000,
|
|
18
|
+
cleanup = 1000,
|
|
19
|
+
externals = 2000,
|
|
20
|
+
resolve = 3000,
|
|
21
|
+
commonjs = 4000,
|
|
22
|
+
transpile = 6000,
|
|
23
|
+
compress = 10000,
|
|
24
|
+
finalize = 20000
|
|
25
|
+
}
|
|
26
|
+
export type ProvideFunction = (factory: () => Plugin, priority: Priotiry, options?: {
|
|
27
|
+
format?: InternalModuleFormat | InternalModuleFormat[];
|
|
28
|
+
inputs?: string[];
|
|
29
|
+
outputPlugin?: true;
|
|
30
|
+
}) => void;
|
|
31
|
+
export type Provider = {
|
|
32
|
+
provide: ProvideFunction;
|
|
33
|
+
import: (module: string, exportName?: string) => Promise<((...args: unknown[]) => Plugin)>;
|
|
34
|
+
globalImport: (module: string, exportName?: string | string[]) => void;
|
|
35
|
+
globalSetupt: (code: Function | string) => void;
|
|
36
|
+
};
|
|
37
|
+
export type PkgbldRollupPlugin = {
|
|
38
|
+
plugin: () => Plugin;
|
|
39
|
+
priority: Priotiry;
|
|
40
|
+
format?: InternalModuleFormat | InternalModuleFormat[];
|
|
41
|
+
inputs?: string[];
|
|
42
|
+
outputPlugin?: true;
|
|
43
|
+
};
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.15.0",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"name": "pkgbld",
|
|
5
5
|
"author": {
|
|
@@ -30,26 +30,29 @@
|
|
|
30
30
|
"rollup"
|
|
31
31
|
],
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/lodash": "4.14.
|
|
34
|
-
"@types/minimist": "1.2.2"
|
|
33
|
+
"@types/lodash": "^4.14.192",
|
|
34
|
+
"@types/minimist": "^1.2.2"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@niceties/logger": "1.1.10",
|
|
38
|
-
"@niceties/draftlog-appender": "1.3.0",
|
|
39
|
-
"lodash": "4.17.21",
|
|
40
|
-
"rollup": "3.
|
|
41
|
-
"rollup-plugin-typescript2": "0.34.1",
|
|
42
|
-
"rollup-plugin-preprocess": "0.0.4",
|
|
43
|
-
"@rollup/plugin-commonjs": "24.0.1",
|
|
44
|
-
"@rollup/plugin-terser": "0.4.0",
|
|
45
|
-
"@rollup/plugin-node-resolve": "15.0.1",
|
|
46
|
-
"@rollup-extras/plugin-clean": "1.3.4",
|
|
47
|
-
"@rollup-extras/plugin-binify": "1.1.5",
|
|
48
|
-
"@rollup-extras/plugin-externals": "1.1.8",
|
|
49
|
-
"@slimlib/refine-partition": "1.0.0",
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
37
|
+
"@niceties/logger": "^1.1.10",
|
|
38
|
+
"@niceties/draftlog-appender": "^1.3.0",
|
|
39
|
+
"lodash": "^4.17.21",
|
|
40
|
+
"rollup": "^3.20.2",
|
|
41
|
+
"rollup-plugin-typescript2": "^0.34.1",
|
|
42
|
+
"rollup-plugin-preprocess": "^0.0.4",
|
|
43
|
+
"@rollup/plugin-commonjs": "^24.0.1",
|
|
44
|
+
"@rollup/plugin-terser": "^0.4.0",
|
|
45
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
46
|
+
"@rollup-extras/plugin-clean": "^1.3.4",
|
|
47
|
+
"@rollup-extras/plugin-binify": "^1.1.5",
|
|
48
|
+
"@rollup-extras/plugin-externals": "^1.1.8",
|
|
49
|
+
"@slimlib/refine-partition": "^1.0.0",
|
|
50
|
+
"@slimlib/smart-mock": "^0.1.2",
|
|
51
|
+
"is-builtin-module": "^3.2.1",
|
|
52
|
+
"typescript": "^5.0.2",
|
|
53
|
+
"terser": "^5.16.8",
|
|
54
|
+
"minimist": "^1.2.8",
|
|
55
|
+
"kleur": "^4.1.5"
|
|
53
56
|
},
|
|
54
57
|
"scripts": {
|
|
55
58
|
"build": "rollup -c",
|
package/dist/write-pkg.d.ts
DELETED