intor-cli 0.0.12 → 0.0.13
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intor-cli",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.13",
|
|
4
|
+
"description": "The Intor CLI",
|
|
5
5
|
"author": "Yiming Liao",
|
|
6
6
|
"homepage": "https://github.com/yiming-liao/intor-cli#readme",
|
|
7
7
|
"repository": {
|
|
@@ -39,8 +39,10 @@
|
|
|
39
39
|
"intor": "src/cli/index.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@intor/reader-
|
|
43
|
-
"@intor/reader-
|
|
42
|
+
"@intor/reader-json5": "^0.1.0",
|
|
43
|
+
"@intor/reader-md": "^0.1.4",
|
|
44
|
+
"@intor/reader-toml": "^0.1.0",
|
|
45
|
+
"@intor/reader-yaml": "^0.1.1",
|
|
44
46
|
"cac": "6.7.14",
|
|
45
47
|
"fast-glob": "3.3.3",
|
|
46
48
|
"intor": "2.3.26",
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import type { ExtraExt } from "../../core/constants";
|
|
2
2
|
import type { MessagesReader, MessagesReaders } from "intor";
|
|
3
|
+
import { json5Reader } from "@intor/reader-json5";
|
|
3
4
|
import { mdReader } from "@intor/reader-md";
|
|
5
|
+
import { tomlReader } from "@intor/reader-toml";
|
|
4
6
|
import { yamlReader } from "@intor/reader-yaml";
|
|
5
7
|
|
|
6
8
|
export const BUILTIN_READERS: Record<ExtraExt, MessagesReader> = {
|
|
7
9
|
md: mdReader,
|
|
8
10
|
yaml: yamlReader,
|
|
11
|
+
toml: tomlReader,
|
|
12
|
+
json5: json5Reader,
|
|
9
13
|
};
|
|
10
14
|
|
|
11
15
|
export const getBuiltInReaders = (
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const EXTRA_EXTS = ["md", "yaml"] as const;
|
|
1
|
+
export const EXTRA_EXTS = ["md", "yaml", "toml", "json5"] as const;
|
|
2
2
|
export type ExtraExt = (typeof EXTRA_EXTS)[number];
|