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/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;