jiek 2.0.0 → 2.0.2-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +35 -6
- package/README.md +0 -78
- package/bin/jiek-build.js +0 -16
- package/bin/jiek.js +0 -13
- package/dist/cli-only-build.cjs +0 -716
- package/dist/cli-only-build.d.cts +0 -91
- package/dist/cli-only-build.d.ts +0 -91
- package/dist/cli-only-build.js +0 -708
- package/dist/cli.cjs +0 -4888
- package/dist/cli.d.cts +0 -67
- package/dist/cli.d.ts +0 -67
- package/dist/cli.js +0 -4857
- package/dist/index.cjs +0 -5
- package/dist/index.d.cts +0 -165
- package/dist/index.d.ts +0 -165
- package/dist/index.js +0 -3
- package/dist/rollup/index.cjs +0 -4893
- package/dist/rollup/index.d.cts +0 -10
- package/dist/rollup/index.d.ts +0 -10
- package/dist/rollup/index.js +0 -4880
- package/src/cli-only-build.ts +0 -7
- package/src/cli.ts +0 -3
- package/src/commands/base.ts +0 -18
- package/src/commands/build.ts +0 -462
- package/src/commands/descriptions.ts +0 -17
- package/src/commands/init.ts +0 -373
- package/src/commands/meta.ts +0 -5
- package/src/commands/publish.ts +0 -204
- package/src/index.ts +0 -8
- package/src/inner.ts +0 -11
- package/src/rollup/base.ts +0 -137
- package/src/rollup/index.ts +0 -565
- package/src/rollup/plugins/progress.ts +0 -26
- package/src/rollup/plugins/skip.ts +0 -21
- package/src/rollup/utils/commonOptions.ts +0 -9
- package/src/rollup/utils/externalResolver.ts +0 -35
- package/src/rollup/utils/globalResolver.ts +0 -13
- package/src/rollup/utils/withMinify.ts +0 -18
- package/src/utils/filterSupport.ts +0 -91
- package/src/utils/getExports.ts +0 -140
- package/src/utils/getRoot.ts +0 -16
- package/src/utils/getWD.ts +0 -31
- package/src/utils/loadConfig.ts +0 -111
- package/src/utils/recusiveListFiles.ts +0 -13
- package/src/utils/ts.ts +0 -94
- package/src/utils/tsRegister.ts +0 -26
package/dist/cli.d.cts
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
declare module 'jiek' {
|
2
|
-
type InitNamedFunction = (argument: string, paths: {
|
3
|
-
full: string;
|
4
|
-
relative: string;
|
5
|
-
basename?: string;
|
6
|
-
}) => [name?: string, path?: string];
|
7
|
-
type InitNamed = InitNamedFunction | {
|
8
|
-
[key: string]: string | InitNamedFunction;
|
9
|
-
};
|
10
|
-
interface Config {
|
11
|
-
init?: {
|
12
|
-
/**
|
13
|
-
* the package.json template file path or file content
|
14
|
-
*
|
15
|
-
* if it can be parsed as json, it will be parsed
|
16
|
-
* if it is a relative file path, it will be resolved to an absolute path based on the current working directory
|
17
|
-
* if it is an absolute file path, it will be used directly
|
18
|
-
* @default '.jiek.template.package.json'
|
19
|
-
*/
|
20
|
-
template?: string;
|
21
|
-
/**
|
22
|
-
* the readme content
|
23
|
-
*
|
24
|
-
* $name will be replaced with the package name
|
25
|
-
* $license will be replaced with the license
|
26
|
-
*/
|
27
|
-
readme?: string | ((ctx: {
|
28
|
-
dir: string;
|
29
|
-
packageJson: Record<string, any>;
|
30
|
-
}) => string);
|
31
|
-
/**
|
32
|
-
* the readme template file path
|
33
|
-
* @default '.jiek.template.readme.md'
|
34
|
-
*/
|
35
|
-
readmeTemplate?: string;
|
36
|
-
bug?: {
|
37
|
-
/**
|
38
|
-
* @default 'bug_report.yml'
|
39
|
-
*/
|
40
|
-
template?: string;
|
41
|
-
/**
|
42
|
-
* @default ['bug']
|
43
|
-
*/
|
44
|
-
labels?: string[] | ((ctx: {
|
45
|
-
name: string;
|
46
|
-
dir: string;
|
47
|
-
}) => string[]);
|
48
|
-
};
|
49
|
-
named?: InitNamed;
|
50
|
-
};
|
51
|
-
}
|
52
|
-
}
|
53
|
-
|
54
|
-
declare module 'jiek' {
|
55
|
-
interface Config {
|
56
|
-
publish?: {
|
57
|
-
/**
|
58
|
-
* @default false
|
59
|
-
*/
|
60
|
-
withSuffix?: boolean;
|
61
|
-
/**
|
62
|
-
* @default true
|
63
|
-
*/
|
64
|
-
withSource?: boolean;
|
65
|
-
};
|
66
|
-
}
|
67
|
-
}
|
package/dist/cli.d.ts
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
declare module 'jiek' {
|
2
|
-
type InitNamedFunction = (argument: string, paths: {
|
3
|
-
full: string;
|
4
|
-
relative: string;
|
5
|
-
basename?: string;
|
6
|
-
}) => [name?: string, path?: string];
|
7
|
-
type InitNamed = InitNamedFunction | {
|
8
|
-
[key: string]: string | InitNamedFunction;
|
9
|
-
};
|
10
|
-
interface Config {
|
11
|
-
init?: {
|
12
|
-
/**
|
13
|
-
* the package.json template file path or file content
|
14
|
-
*
|
15
|
-
* if it can be parsed as json, it will be parsed
|
16
|
-
* if it is a relative file path, it will be resolved to an absolute path based on the current working directory
|
17
|
-
* if it is an absolute file path, it will be used directly
|
18
|
-
* @default '.jiek.template.package.json'
|
19
|
-
*/
|
20
|
-
template?: string;
|
21
|
-
/**
|
22
|
-
* the readme content
|
23
|
-
*
|
24
|
-
* $name will be replaced with the package name
|
25
|
-
* $license will be replaced with the license
|
26
|
-
*/
|
27
|
-
readme?: string | ((ctx: {
|
28
|
-
dir: string;
|
29
|
-
packageJson: Record<string, any>;
|
30
|
-
}) => string);
|
31
|
-
/**
|
32
|
-
* the readme template file path
|
33
|
-
* @default '.jiek.template.readme.md'
|
34
|
-
*/
|
35
|
-
readmeTemplate?: string;
|
36
|
-
bug?: {
|
37
|
-
/**
|
38
|
-
* @default 'bug_report.yml'
|
39
|
-
*/
|
40
|
-
template?: string;
|
41
|
-
/**
|
42
|
-
* @default ['bug']
|
43
|
-
*/
|
44
|
-
labels?: string[] | ((ctx: {
|
45
|
-
name: string;
|
46
|
-
dir: string;
|
47
|
-
}) => string[]);
|
48
|
-
};
|
49
|
-
named?: InitNamed;
|
50
|
-
};
|
51
|
-
}
|
52
|
-
}
|
53
|
-
|
54
|
-
declare module 'jiek' {
|
55
|
-
interface Config {
|
56
|
-
publish?: {
|
57
|
-
/**
|
58
|
-
* @default false
|
59
|
-
*/
|
60
|
-
withSuffix?: boolean;
|
61
|
-
/**
|
62
|
-
* @default true
|
63
|
-
*/
|
64
|
-
withSource?: boolean;
|
65
|
-
};
|
66
|
-
}
|
67
|
-
}
|