jiek 1.1.12 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +53 -106
- package/bin/jiek-build.js +16 -0
- package/dist/cli-only-build.cjs +716 -0
- package/dist/cli-only-build.d.cts +91 -0
- package/dist/cli-only-build.d.ts +91 -0
- package/dist/cli-only-build.js +708 -0
- package/dist/cli.cjs +219 -565
- package/dist/cli.d.cts +0 -65
- package/dist/cli.d.ts +0 -65
- package/dist/cli.js +219 -565
- package/dist/index.d.cts +27 -0
- package/dist/index.d.ts +27 -0
- package/dist/rollup/index.cjs +102 -49
- package/dist/rollup/index.js +102 -47
- package/package.json +28 -11
- package/src/cli-only-build.ts +7 -0
- package/src/cli.ts +1 -7
- package/src/commands/base.ts +13 -3
- package/src/commands/build.ts +200 -39
- package/src/commands/descriptions.ts +12 -0
- package/src/commands/meta.ts +5 -0
- package/src/rollup/base.ts +44 -0
- package/src/rollup/index.ts +127 -39
- package/src/utils/filterSupport.ts +2 -6
- package/src/rollup/plugins/globals.ts +0 -34
package/dist/cli.d.cts
CHANGED
@@ -1,68 +1,3 @@
|
|
1
|
-
import { InputPluginOption, OutputOptions } from 'rollup';
|
2
|
-
|
3
|
-
type Mapping2ROO<K extends keyof OutputOptions> = OutputOptions[K] | {
|
4
|
-
js?: OutputOptions[K];
|
5
|
-
dts?: OutputOptions[K];
|
6
|
-
};
|
7
|
-
interface ConfigGenerateContext {
|
8
|
-
path: string;
|
9
|
-
name: string;
|
10
|
-
input: string;
|
11
|
-
output: string;
|
12
|
-
external: (string | RegExp)[];
|
13
|
-
pkgIsModule: boolean;
|
14
|
-
conditionals: string[];
|
15
|
-
}
|
16
|
-
type OutputControl = boolean | ((context: ConfigGenerateContext) => boolean);
|
17
|
-
interface TemplateOptions {
|
18
|
-
/**
|
19
|
-
* When the user configures type: module, the generated output from entry points that don't
|
20
|
-
* have cts as a suffix will automatically include the CJS version.
|
21
|
-
* if it is not configured, and the generated output from entry points that do not have mts
|
22
|
-
* as a suffix will automatically include the ESM version.
|
23
|
-
*
|
24
|
-
* @default true
|
25
|
-
*/
|
26
|
-
crossModuleConvertor?: boolean;
|
27
|
-
output?: {
|
28
|
-
/**
|
29
|
-
* @default true
|
30
|
-
*
|
31
|
-
* When minify is set to true, the output will with minified files.
|
32
|
-
* When minify is set to 'only-minify', the output will direct output minified files.
|
33
|
-
*/
|
34
|
-
minify?: boolean | 'only-minify';
|
35
|
-
/**
|
36
|
-
* @default 'dist'
|
37
|
-
*/
|
38
|
-
dir?: Mapping2ROO<'dir'>;
|
39
|
-
sourcemap?: Mapping2ROO<'sourcemap'>;
|
40
|
-
strict?: Mapping2ROO<'strict'>;
|
41
|
-
js?: OutputControl;
|
42
|
-
dts?: OutputControl;
|
43
|
-
};
|
44
|
-
plugins?: InputPluginOption | ((type: 'js' | 'dts', context: ConfigGenerateContext) => InputPluginOption) | {
|
45
|
-
js: InputPluginOption;
|
46
|
-
dts?: InputPluginOption;
|
47
|
-
} | {
|
48
|
-
js?: InputPluginOption;
|
49
|
-
dts: InputPluginOption;
|
50
|
-
};
|
51
|
-
}
|
52
|
-
|
53
|
-
declare module 'jiek' {
|
54
|
-
interface Config {
|
55
|
-
build?: TemplateOptions & {
|
56
|
-
/**
|
57
|
-
* Whether to run in silent mode, only active when configured in the workspace root or cwd.
|
58
|
-
*
|
59
|
-
* @default false
|
60
|
-
*/
|
61
|
-
silent?: boolean;
|
62
|
-
};
|
63
|
-
}
|
64
|
-
}
|
65
|
-
|
66
1
|
declare module 'jiek' {
|
67
2
|
type InitNamedFunction = (argument: string, paths: {
|
68
3
|
full: string;
|
package/dist/cli.d.ts
CHANGED
@@ -1,68 +1,3 @@
|
|
1
|
-
import { InputPluginOption, OutputOptions } from 'rollup';
|
2
|
-
|
3
|
-
type Mapping2ROO<K extends keyof OutputOptions> = OutputOptions[K] | {
|
4
|
-
js?: OutputOptions[K];
|
5
|
-
dts?: OutputOptions[K];
|
6
|
-
};
|
7
|
-
interface ConfigGenerateContext {
|
8
|
-
path: string;
|
9
|
-
name: string;
|
10
|
-
input: string;
|
11
|
-
output: string;
|
12
|
-
external: (string | RegExp)[];
|
13
|
-
pkgIsModule: boolean;
|
14
|
-
conditionals: string[];
|
15
|
-
}
|
16
|
-
type OutputControl = boolean | ((context: ConfigGenerateContext) => boolean);
|
17
|
-
interface TemplateOptions {
|
18
|
-
/**
|
19
|
-
* When the user configures type: module, the generated output from entry points that don't
|
20
|
-
* have cts as a suffix will automatically include the CJS version.
|
21
|
-
* if it is not configured, and the generated output from entry points that do not have mts
|
22
|
-
* as a suffix will automatically include the ESM version.
|
23
|
-
*
|
24
|
-
* @default true
|
25
|
-
*/
|
26
|
-
crossModuleConvertor?: boolean;
|
27
|
-
output?: {
|
28
|
-
/**
|
29
|
-
* @default true
|
30
|
-
*
|
31
|
-
* When minify is set to true, the output will with minified files.
|
32
|
-
* When minify is set to 'only-minify', the output will direct output minified files.
|
33
|
-
*/
|
34
|
-
minify?: boolean | 'only-minify';
|
35
|
-
/**
|
36
|
-
* @default 'dist'
|
37
|
-
*/
|
38
|
-
dir?: Mapping2ROO<'dir'>;
|
39
|
-
sourcemap?: Mapping2ROO<'sourcemap'>;
|
40
|
-
strict?: Mapping2ROO<'strict'>;
|
41
|
-
js?: OutputControl;
|
42
|
-
dts?: OutputControl;
|
43
|
-
};
|
44
|
-
plugins?: InputPluginOption | ((type: 'js' | 'dts', context: ConfigGenerateContext) => InputPluginOption) | {
|
45
|
-
js: InputPluginOption;
|
46
|
-
dts?: InputPluginOption;
|
47
|
-
} | {
|
48
|
-
js?: InputPluginOption;
|
49
|
-
dts: InputPluginOption;
|
50
|
-
};
|
51
|
-
}
|
52
|
-
|
53
|
-
declare module 'jiek' {
|
54
|
-
interface Config {
|
55
|
-
build?: TemplateOptions & {
|
56
|
-
/**
|
57
|
-
* Whether to run in silent mode, only active when configured in the workspace root or cwd.
|
58
|
-
*
|
59
|
-
* @default false
|
60
|
-
*/
|
61
|
-
silent?: boolean;
|
62
|
-
};
|
63
|
-
}
|
64
|
-
}
|
65
|
-
|
66
1
|
declare module 'jiek' {
|
67
2
|
type InitNamedFunction = (argument: string, paths: {
|
68
3
|
full: string;
|