jiek 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cli-only-build.cjs +8 -6
- package/dist/cli-only-build.js +8 -6
- package/dist/cli.cjs +191 -469
- package/dist/cli.d.cts +0 -53
- package/dist/cli.d.ts +0 -53
- package/dist/cli.js +190 -467
- package/dist/index.d.cts +0 -53
- package/dist/index.d.ts +0 -53
- package/package.json +2 -2
- package/src/cli.ts +0 -1
- package/src/commands/build.ts +6 -4
- package/src/commands/init.ts +0 -373
package/dist/cli.d.cts
CHANGED
@@ -1,56 +1,3 @@
|
|
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
1
|
declare module 'jiek' {
|
55
2
|
interface Config {
|
56
3
|
publish?: {
|
package/dist/cli.d.ts
CHANGED
@@ -1,56 +1,3 @@
|
|
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
1
|
declare module 'jiek' {
|
55
2
|
interface Config {
|
56
3
|
publish?: {
|