jiek 2.0.1 → 2.0.2-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/package.json +8 -5
  2. package/README.md +0 -78
  3. package/bin/jiek-build.js +0 -16
  4. package/bin/jiek.js +0 -13
  5. package/dist/cli-only-build.cjs +0 -743
  6. package/dist/cli-only-build.d.cts +0 -91
  7. package/dist/cli-only-build.d.ts +0 -91
  8. package/dist/cli-only-build.js +0 -735
  9. package/dist/cli.cjs +0 -4888
  10. package/dist/cli.d.cts +0 -67
  11. package/dist/cli.d.ts +0 -67
  12. package/dist/cli.js +0 -4857
  13. package/dist/index.cjs +0 -5
  14. package/dist/index.d.cts +0 -165
  15. package/dist/index.d.ts +0 -165
  16. package/dist/index.js +0 -3
  17. package/dist/rollup/index.cjs +0 -4893
  18. package/dist/rollup/index.d.cts +0 -10
  19. package/dist/rollup/index.d.ts +0 -10
  20. package/dist/rollup/index.js +0 -4880
  21. package/src/cli-only-build.ts +0 -7
  22. package/src/cli.ts +0 -3
  23. package/src/commands/base.ts +0 -18
  24. package/src/commands/build.ts +0 -462
  25. package/src/commands/descriptions.ts +0 -17
  26. package/src/commands/init.ts +0 -373
  27. package/src/commands/meta.ts +0 -5
  28. package/src/commands/publish.ts +0 -204
  29. package/src/index.ts +0 -8
  30. package/src/inner.ts +0 -11
  31. package/src/rollup/base.ts +0 -137
  32. package/src/rollup/index.ts +0 -565
  33. package/src/rollup/plugins/progress.ts +0 -26
  34. package/src/rollup/plugins/skip.ts +0 -21
  35. package/src/rollup/utils/commonOptions.ts +0 -9
  36. package/src/rollup/utils/externalResolver.ts +0 -35
  37. package/src/rollup/utils/globalResolver.ts +0 -13
  38. package/src/rollup/utils/withMinify.ts +0 -18
  39. package/src/utils/filterSupport.ts +0 -91
  40. package/src/utils/getExports.ts +0 -140
  41. package/src/utils/getRoot.ts +0 -16
  42. package/src/utils/getWD.ts +0 -31
  43. package/src/utils/loadConfig.ts +0 -111
  44. package/src/utils/recusiveListFiles.ts +0 -13
  45. package/src/utils/ts.ts +0 -94
  46. 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
- }