bunli 0.8.2 → 0.9.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.
- package/README.md +26 -17
- package/dist/cli.d.ts +1 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +49 -967
- package/dist/commands/build.d.ts +2 -1
- package/dist/commands/build.d.ts.map +1 -0
- package/dist/commands/dev.d.ts +2 -1
- package/dist/commands/dev.d.ts.map +1 -0
- package/dist/commands/doctor/completions.d.ts +2 -1
- package/dist/commands/doctor/completions.d.ts.map +1 -0
- package/dist/commands/doctor.d.ts +1 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/generate.d.ts +2 -1
- package/dist/commands/generate.d.ts.map +1 -0
- package/dist/commands/init.d.ts +4 -3
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/prompt/choose.d.ts +11 -0
- package/dist/commands/prompt/choose.d.ts.map +1 -0
- package/dist/commands/prompt/confirm.d.ts +11 -0
- package/dist/commands/prompt/confirm.d.ts.map +1 -0
- package/dist/commands/prompt/file.d.ts +12 -0
- package/dist/commands/prompt/file.d.ts.map +1 -0
- package/dist/commands/prompt/filter.d.ts +10 -0
- package/dist/commands/prompt/filter.d.ts.map +1 -0
- package/dist/commands/prompt/format.d.ts +14 -0
- package/dist/commands/prompt/format.d.ts.map +1 -0
- package/dist/commands/prompt/input.d.ts +11 -0
- package/dist/commands/prompt/input.d.ts.map +1 -0
- package/dist/commands/prompt/join.d.ts +10 -0
- package/dist/commands/prompt/join.d.ts.map +1 -0
- package/dist/commands/prompt/log.d.ts +15 -0
- package/dist/commands/prompt/log.d.ts.map +1 -0
- package/dist/commands/prompt/pager.d.ts +8 -0
- package/dist/commands/prompt/pager.d.ts.map +1 -0
- package/dist/commands/prompt/spin.d.ts +8 -0
- package/dist/commands/prompt/spin.d.ts.map +1 -0
- package/dist/commands/prompt/style.d.ts +15 -0
- package/dist/commands/prompt/style.d.ts.map +1 -0
- package/dist/commands/prompt/write.d.ts +11 -0
- package/dist/commands/prompt/write.d.ts.map +1 -0
- package/dist/commands/release.d.ts +6 -5
- package/dist/commands/release.d.ts.map +1 -0
- package/dist/commands/shell.d.ts +3 -0
- package/dist/commands/shell.d.ts.map +1 -0
- package/dist/commands/test.d.ts +2 -1
- package/dist/commands/test.d.ts.map +1 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -0
- package/dist/utils/find-entry.d.ts +1 -0
- package/dist/utils/find-entry.d.ts.map +1 -0
- package/dist/utils/install-check.d.ts +3 -0
- package/dist/utils/install-check.d.ts.map +1 -0
- package/dist/utils/release-state.d.ts +3 -2
- package/dist/utils/release-state.d.ts.map +1 -0
- package/package.json +36 -34
package/dist/commands/build.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
declare const _default: import("@bunli/core").RunnableCommand<{
|
|
3
3
|
entry: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
4
4
|
outdir: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
@@ -16,3 +16,4 @@ declare const _default: import("@bunli/core").RunnableCommand<{
|
|
|
16
16
|
name: "build";
|
|
17
17
|
};
|
|
18
18
|
export default _default;
|
|
19
|
+
//# sourceMappingURL=build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;;;;;;;;;;;;;;;;;AAwDxB,wBAyDG"}
|
package/dist/commands/dev.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare function resolveWatchDirectory(entryPath: string, configuredDirectory?: string): string | null;
|
|
3
3
|
declare const _default: import("@bunli/core").RunnableCommand<{
|
|
4
4
|
entry: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
@@ -11,3 +11,4 @@ declare const _default: import("@bunli/core").RunnableCommand<{
|
|
|
11
11
|
name: "dev";
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
14
|
+
//# sourceMappingURL=dev.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyBxB,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,EACjB,mBAAmB,CAAC,EAAE,MAAM,GAC3B,MAAM,GAAG,IAAI,CA2Bf;;;;;;;;;;;AAED,wBAsCG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
declare const _default: import("@bunli/core").RunnableCommand<{
|
|
3
3
|
generatedPath: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodString>>;
|
|
4
4
|
strict: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -6,3 +6,4 @@ declare const _default: import("@bunli/core").RunnableCommand<{
|
|
|
6
6
|
name: "completions";
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
|
+
//# sourceMappingURL=completions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completions.d.ts","sourceRoot":"","sources":["../../../src/commands/doctor/completions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;;;;;;;AAuKxB,wBA+IG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":";AAIA,wBAIG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
declare const _default: import("@bunli/core").RunnableCommand<{
|
|
3
3
|
entry: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
4
4
|
directory: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
@@ -8,3 +8,4 @@ declare const _default: import("@bunli/core").RunnableCommand<{
|
|
|
8
8
|
name: "generate";
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
11
|
+
//# sourceMappingURL=generate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/commands/generate.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;;;;;;;;;AAYxB,wBA6BG"}
|
package/dist/commands/init.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
declare const _default: import("@bunli/core").RunnableCommand<{
|
|
3
3
|
name: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
4
4
|
template: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodEnum<{
|
|
5
|
-
basic: "basic";
|
|
6
5
|
advanced: "advanced";
|
|
6
|
+
basic: "basic";
|
|
7
7
|
monorepo: "monorepo";
|
|
8
8
|
}>>>;
|
|
9
9
|
dir: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
10
10
|
git: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodBoolean>>;
|
|
11
11
|
install: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodBoolean>>;
|
|
12
|
-
|
|
12
|
+
"package-manager": import("@bunli/core").CLIOption<z.ZodDefault<z.ZodEnum<{
|
|
13
13
|
bun: "bun";
|
|
14
14
|
npm: "npm";
|
|
15
15
|
pnpm: "pnpm";
|
|
@@ -19,3 +19,4 @@ declare const _default: import("@bunli/core").RunnableCommand<{
|
|
|
19
19
|
name: "init";
|
|
20
20
|
};
|
|
21
21
|
export default _default;
|
|
22
|
+
//# sourceMappingURL=init.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;AAExB,wBA+FG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const _default: import("@bunli/core").RunnableCommand<{
|
|
3
|
+
multiple: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
4
|
+
limit: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodNumber>>;
|
|
5
|
+
height: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
6
|
+
ordered: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
7
|
+
}, {}, string> & {
|
|
8
|
+
name: "choose";
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=choose.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"choose.d.ts","sourceRoot":"","sources":["../../../src/commands/prompt/choose.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;;;;;;;;;AAExB,wBAwCG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const _default: import("@bunli/core").RunnableCommand<{
|
|
3
|
+
default: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
4
|
+
affirmative: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
|
|
5
|
+
negative: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
|
|
6
|
+
timeout: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodNumber>>;
|
|
7
|
+
}, {}, string> & {
|
|
8
|
+
name: "confirm";
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=confirm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirm.d.ts","sourceRoot":"","sources":["../../../src/commands/prompt/confirm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;;;;;;;;;AAExB,wBAsBG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const _default: import("@bunli/core").RunnableCommand<{
|
|
3
|
+
path: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
|
|
4
|
+
files: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
5
|
+
directories: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
6
|
+
hidden: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
7
|
+
extensions: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
8
|
+
}, {}, string> & {
|
|
9
|
+
name: "file";
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../src/commands/prompt/file.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;;;;;;;;;;AAExB,wBAsEG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const _default: import("@bunli/core").RunnableCommand<{
|
|
3
|
+
placeholder: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
4
|
+
limit: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodNumber>>;
|
|
5
|
+
height: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
6
|
+
}, {}, string> & {
|
|
7
|
+
name: "filter";
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../src/commands/prompt/filter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;;;;;;;;AAExB,wBAoCG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const _default: import("@bunli/core").RunnableCommand<{
|
|
3
|
+
type: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
4
|
+
code: "code";
|
|
5
|
+
emoji: "emoji";
|
|
6
|
+
markdown: "markdown";
|
|
7
|
+
template: "template";
|
|
8
|
+
}>>>>;
|
|
9
|
+
language: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
10
|
+
}, {}, string> & {
|
|
11
|
+
name: "format";
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/commands/prompt/format.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;;;;;;;;;;;;AAExB,wBA+CG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const _default: import("@bunli/core").RunnableCommand<{
|
|
3
|
+
placeholder: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
4
|
+
prompt: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
5
|
+
value: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
6
|
+
"char-limit": import("@bunli/core").CLIOption<z.ZodOptional<z.ZodNumber>>;
|
|
7
|
+
}, {}, string> & {
|
|
8
|
+
name: "input";
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/commands/prompt/input.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;;;;;;;;;AAExB,wBAkBG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const _default: import("@bunli/core").RunnableCommand<{
|
|
3
|
+
horizontal: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
4
|
+
separator: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
|
|
5
|
+
align: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
|
|
6
|
+
}, {}, string> & {
|
|
7
|
+
name: "join";
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=join.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../src/commands/prompt/join.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;;;;;;;;AAmCxB,wBAsEG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const _default: import("@bunli/core").RunnableCommand<{
|
|
3
|
+
level: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
4
|
+
debug: "debug";
|
|
5
|
+
error: "error";
|
|
6
|
+
info: "info";
|
|
7
|
+
warn: "warn";
|
|
8
|
+
}>>>>;
|
|
9
|
+
time: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
10
|
+
prefix: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
11
|
+
}, {}, string> & {
|
|
12
|
+
name: "log";
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=log.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../src/commands/prompt/log.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;;;;;;;;;;;;;AAExB,wBA4CG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const _default: import("@bunli/core").RunnableCommand<{
|
|
3
|
+
file: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
4
|
+
}, {}, string> & {
|
|
5
|
+
name: "pager";
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=pager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pager.d.ts","sourceRoot":"","sources":["../../../src/commands/prompt/pager.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;;;;;;AAExB,wBAsCG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const _default: import("@bunli/core").RunnableCommand<{
|
|
3
|
+
title: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
|
|
4
|
+
}, {}, string> & {
|
|
5
|
+
name: "spin";
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=spin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spin.d.ts","sourceRoot":"","sources":["../../../src/commands/prompt/spin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;;;;;;AAExB,wBA0CG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const _default: import("@bunli/core").RunnableCommand<{
|
|
3
|
+
foreground: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
4
|
+
background: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
5
|
+
bold: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodBoolean>>;
|
|
6
|
+
italic: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodBoolean>>;
|
|
7
|
+
underline: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodBoolean>>;
|
|
8
|
+
strikethrough: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodBoolean>>;
|
|
9
|
+
width: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodNumber>>;
|
|
10
|
+
align: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
11
|
+
}, {}, string> & {
|
|
12
|
+
name: "style";
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../src/commands/prompt/style.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;;;;;;;;;;;;;AAExB,wBA8CG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const _default: import("@bunli/core").RunnableCommand<{
|
|
3
|
+
placeholder: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
4
|
+
value: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
5
|
+
"char-limit": import("@bunli/core").CLIOption<z.ZodOptional<z.ZodNumber>>;
|
|
6
|
+
height: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodNumber>>;
|
|
7
|
+
}, {}, string> & {
|
|
8
|
+
name: "write";
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=write.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write.d.ts","sourceRoot":"","sources":["../../../src/commands/prompt/write.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;;;;;;;;;AAExB,wBAoBG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PromptApi } from
|
|
2
|
-
import { z } from
|
|
1
|
+
import type { PromptApi } from "@bunli/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
interface PublishedPlatformPackage {
|
|
4
4
|
platform: string;
|
|
5
5
|
packageName: string;
|
|
@@ -13,9 +13,9 @@ export declare function formatTag(version: string, tagFormat: string): string;
|
|
|
13
13
|
export declare function getNpmPublishArgs(dry: boolean): string[];
|
|
14
14
|
declare const _default: import("@bunli/core").RunnableCommand<{
|
|
15
15
|
version: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
16
|
-
patch: "patch";
|
|
17
|
-
minor: "minor";
|
|
18
16
|
major: "major";
|
|
17
|
+
minor: "minor";
|
|
18
|
+
patch: "patch";
|
|
19
19
|
}>, z.ZodString]>>>;
|
|
20
20
|
tag: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodString>>;
|
|
21
21
|
npm: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -28,5 +28,6 @@ declare const _default: import("@bunli/core").RunnableCommand<{
|
|
|
28
28
|
};
|
|
29
29
|
export default _default;
|
|
30
30
|
export declare function determineVersion(versionFlag: string | undefined, current: string, prompt: PromptApi): Promise<string>;
|
|
31
|
-
export declare function bumpVersion(version: string, type:
|
|
31
|
+
export declare function bumpVersion(version: string, type: "patch" | "minor" | "major"): string;
|
|
32
32
|
export declare function updatePackageVersion(version: string): Promise<void>;
|
|
33
|
+
//# sourceMappingURL=release.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../src/commands/release.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAe,SAAS,EAAsC,MAAM,aAAa,CAAC;AAI9F,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4CxB,UAAU,wBAAwB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB;AAqBD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAK5D;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAoBlE;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GACf,MAAM,CAER;AAED,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,wBAAwB,EAAE,GACpC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CASxB;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAEpE;AAED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,EAAE,CAExD;;;;;;;;;;;;;;;;AAED,wBA8DG;AAqdH,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,SAAS,GAChB,OAAO,CAAC,MAAM,CAAC,CAyBjB;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAWtF;AAED,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,MAAM,iBAIzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shell.d.ts","sourceRoot":"","sources":["../../src/commands/shell.ts"],"names":[],"mappings":";AAeA,wBAiBG"}
|
package/dist/commands/test.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
declare const _default: import("@bunli/core").RunnableCommand<{
|
|
3
3
|
pattern: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString>]>>>;
|
|
4
4
|
watch: import("@bunli/core").CLIOption<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -10,3 +10,4 @@ declare const _default: import("@bunli/core").RunnableCommand<{
|
|
|
10
10
|
name: "test";
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
13
|
+
//# sourceMappingURL=test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/commands/test.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;;;;;;;;;;;AAExB,wBA8FG"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { loadConfig } from
|
|
2
|
-
export { defineConfig, type BunliConfig } from
|
|
3
|
-
export { findEntry } from
|
|
1
|
+
export { loadConfig } from "@bunli/core";
|
|
2
|
+
export { defineConfig, type BunliConfig } from "@bunli/core";
|
|
3
|
+
export { findEntry } from "./utils/find-entry.js";
|
|
4
4
|
export declare const version = "0.1.0";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAG7D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGlD,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-entry.d.ts","sourceRoot":"","sources":["../../src/utils/find-entry.ts"],"names":[],"mappings":"AAkBA,wBAAsB,SAAS,CAAC,GAAG,SAAgB,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CA+BhF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install-check.d.ts","sourceRoot":"","sources":["../../src/utils/install-check.ts"],"names":[],"mappings":"AAWA,wBAAgB,+BAA+B,CAAC,GAAG,GAAE,MAAsB,GAAG,OAAO,CAEpF;AAED,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,MAAM,EACnB,GAAG,GAAE,MAAsB,GAC1B,MAAM,CAER"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const RELEASE_STATE_PATH: string;
|
|
2
|
-
export type ReleaseStepId =
|
|
2
|
+
export type ReleaseStepId = "run-tests" | "update-version" | "build-project" | "publish-platform-packages" | "update-main-package-for-binary" | "generate-shim" | "create-git-tag" | "publish-npm" | "create-github-release";
|
|
3
3
|
export interface ReleaseStatePlatformInfo {
|
|
4
4
|
packageName: string;
|
|
5
5
|
version: string;
|
|
@@ -15,7 +15,7 @@ export interface ReleaseState {
|
|
|
15
15
|
platforms: string[];
|
|
16
16
|
shimPath?: string;
|
|
17
17
|
};
|
|
18
|
-
status:
|
|
18
|
+
status: "in_progress" | "failed";
|
|
19
19
|
currentStep?: ReleaseStepId;
|
|
20
20
|
completedSteps: ReleaseStepId[];
|
|
21
21
|
binary?: {
|
|
@@ -51,3 +51,4 @@ export declare function getPublishedPlatformsFromState(state: ReleaseState): Arr
|
|
|
51
51
|
packageName: string;
|
|
52
52
|
version: string;
|
|
53
53
|
}>;
|
|
54
|
+
//# sourceMappingURL=release-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-state.d.ts","sourceRoot":"","sources":["../../src/utils/release-state.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,QAA4C,CAAC;AAE5E,MAAM,MAAM,aAAa,GACrB,WAAW,GACX,gBAAgB,GAChB,eAAe,GACf,2BAA2B,GAC3B,gCAAgC,GAChC,eAAe,GACf,gBAAgB,GAChB,aAAa,GACb,uBAAuB,CAAC;AAE5B,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE;QACP,UAAU,EAAE,OAAO,CAAC;QACpB,aAAa,EAAE,OAAO,CAAC;QACvB,aAAa,EAAE,OAAO,CAAC;QACvB,SAAS,EAAE,MAAM,EAAE,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,MAAM,EAAE,aAAa,GAAG,QAAQ,CAAC;IACjC,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,MAAM,CAAC,EAAE;QACP,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;KAC9D,CAAC;IACF,SAAS,CAAC,EAAE;QACV,IAAI,EAAE,aAAa,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE;IAC/C,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,YAAY,CAmBf;AAuDD,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAcrE;AAED,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAI1E;AAED,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAEvD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,GAAG,IAAI,CAG9E;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,GAAG,IAAI,CAKhF;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAQ9F;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,GACd,IAAI,CAKN;AAED,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,YAAY,GAAG,KAAK,CAAC;IACzE,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC,CAQD"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bunli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"type": "module",
|
|
3
|
+
"version": "0.9.1",
|
|
5
4
|
"description": "The Bunli CLI toolchain for developing, building, and distributing CLIs",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"build-tool",
|
|
7
|
+
"bun",
|
|
8
|
+
"bunli",
|
|
9
|
+
"cli",
|
|
10
|
+
"development",
|
|
11
|
+
"toolchain",
|
|
12
|
+
"typescript"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://github.com/AryaLabsHQ/bunli#readme",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/AryaLabsHQ/bunli/issues"
|
|
17
|
+
},
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"author": "Arya Labs, Inc.",
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/AryaLabsHQ/bunli.git",
|
|
23
|
+
"directory": "packages/cli"
|
|
24
|
+
},
|
|
6
25
|
"bin": {
|
|
7
26
|
"bunli": "./dist/cli.js"
|
|
8
27
|
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist"
|
|
30
|
+
],
|
|
31
|
+
"type": "module",
|
|
9
32
|
"module": "./dist/index.js",
|
|
10
33
|
"types": "./dist/index.d.ts",
|
|
11
34
|
"exports": {
|
|
@@ -14,49 +37,28 @@
|
|
|
14
37
|
"types": "./dist/index.d.ts"
|
|
15
38
|
}
|
|
16
39
|
},
|
|
17
|
-
"files": [
|
|
18
|
-
"dist"
|
|
19
|
-
],
|
|
20
|
-
"author": "Arya Labs, Inc.",
|
|
21
|
-
"license": "MIT",
|
|
22
|
-
"repository": {
|
|
23
|
-
"type": "git",
|
|
24
|
-
"url": "https://github.com/AryaLabsHQ/bunli.git",
|
|
25
|
-
"directory": "packages/cli"
|
|
26
|
-
},
|
|
27
|
-
"bugs": {
|
|
28
|
-
"url": "https://github.com/AryaLabsHQ/bunli/issues"
|
|
29
|
-
},
|
|
30
|
-
"homepage": "https://github.com/AryaLabsHQ/bunli#readme",
|
|
31
|
-
"keywords": [
|
|
32
|
-
"bunli",
|
|
33
|
-
"cli",
|
|
34
|
-
"toolchain",
|
|
35
|
-
"bun",
|
|
36
|
-
"typescript",
|
|
37
|
-
"build-tool",
|
|
38
|
-
"development"
|
|
39
|
-
],
|
|
40
40
|
"scripts": {
|
|
41
41
|
"dev": "bun run src/cli.ts",
|
|
42
|
-
"build": "bun run scripts/build.ts && bun run
|
|
42
|
+
"build": "bun run scripts/build.ts && bun run tsgo",
|
|
43
43
|
"build:standalone": "bun run scripts/build.ts --compile",
|
|
44
44
|
"build:binaries": "bun run scripts/release-binaries.ts",
|
|
45
45
|
"test": "bun test",
|
|
46
|
-
"typecheck": "
|
|
46
|
+
"typecheck": "tsgo --noEmit",
|
|
47
47
|
"prepublishOnly": "bun run build"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@bunli/core": "^0.
|
|
51
|
-
"@bunli/generator": "^0.6.
|
|
52
|
-
"@bunli/plugin-completions": "^0.3.
|
|
53
|
-
"@bunli/
|
|
50
|
+
"@bunli/core": "^0.9.1",
|
|
51
|
+
"@bunli/generator": "^0.6.5",
|
|
52
|
+
"@bunli/plugin-completions": "^0.3.5",
|
|
53
|
+
"@bunli/tui": "^0.6.0",
|
|
54
|
+
"@bunli/utils": "^0.6.0",
|
|
54
55
|
"better-result": "^2.7.0",
|
|
55
56
|
"zod": "^4.3.6"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
|
-
"@bunli/test": "^0.
|
|
59
|
-
"@
|
|
60
|
-
"
|
|
59
|
+
"@bunli/test": "^0.6.0",
|
|
60
|
+
"@tsconfig/bun": "1.0.10",
|
|
61
|
+
"@types/bun": "1.3.10",
|
|
62
|
+
"typescript": "^6.0.2"
|
|
61
63
|
}
|
|
62
64
|
}
|