jiek 2.0.0 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
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?: {