@stephansama/auto-readme 0.2.1 → 0.2.2
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/config/schema.cjs +122 -127
- package/config/schema.cjs.map +1 -1
- package/config/schema.d.cts +134 -133
- package/config/schema.d.ts +134 -133
- package/config/schema.js +96 -100
- package/config/schema.js.map +1 -1
- package/dist/index.cjs +602 -661
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +557 -631
- package/dist/index.js.map +1 -1
- package/package.json +21 -21
package/config/schema.cjs
CHANGED
|
@@ -1,139 +1,134 @@
|
|
|
1
|
-
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
8
|
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
+
key = keys[i];
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
17
|
};
|
|
18
|
-
var
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
+
value: mod,
|
|
20
|
+
enumerable: true
|
|
21
|
+
}) : target, mod));
|
|
19
22
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"name",
|
|
44
|
-
"private",
|
|
45
|
-
"required",
|
|
46
|
-
"version"
|
|
23
|
+
//#endregion
|
|
24
|
+
let zod = require("zod");
|
|
25
|
+
zod = __toESM(zod);
|
|
26
|
+
|
|
27
|
+
//#region src/schema.js
|
|
28
|
+
const actionsSchema = zod.z.enum([
|
|
29
|
+
"ACTION",
|
|
30
|
+
"PKG",
|
|
31
|
+
"USAGE",
|
|
32
|
+
"WORKSPACE",
|
|
33
|
+
"ZOD"
|
|
34
|
+
]).describe("Comment action options");
|
|
35
|
+
const formatsSchema = zod.z.enum(["LIST", "TABLE"]).default("TABLE").optional();
|
|
36
|
+
const languageSchema = zod.z.enum(["JS", "RS"]).optional().default("JS");
|
|
37
|
+
const headingsSchema = zod.z.enum([
|
|
38
|
+
"default",
|
|
39
|
+
"description",
|
|
40
|
+
"devDependency",
|
|
41
|
+
"downloads",
|
|
42
|
+
"name",
|
|
43
|
+
"private",
|
|
44
|
+
"required",
|
|
45
|
+
"version"
|
|
47
46
|
]).describe("Table heading options");
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
const tableHeadingsSchema = zod.z.record(actionsSchema, headingsSchema.array().optional()).optional().describe("Table heading action configuration").default({
|
|
48
|
+
ACTION: [
|
|
49
|
+
"name",
|
|
50
|
+
"required",
|
|
51
|
+
"default",
|
|
52
|
+
"description"
|
|
53
|
+
],
|
|
54
|
+
PKG: [
|
|
55
|
+
"name",
|
|
56
|
+
"version",
|
|
57
|
+
"devDependency"
|
|
58
|
+
],
|
|
59
|
+
WORKSPACE: [
|
|
60
|
+
"name",
|
|
61
|
+
"version",
|
|
62
|
+
"downloads",
|
|
63
|
+
"description"
|
|
64
|
+
],
|
|
65
|
+
ZOD: []
|
|
53
66
|
});
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"https://img.shields.io/npm/v/{{uri_name}}?logo=npm&logoColor=red&color=211F1F&labelColor=211F1F"
|
|
69
|
-
)
|
|
67
|
+
const templatesSchema = zod.z.object({
|
|
68
|
+
downloadImage: zod.z.string().optional().default("https://img.shields.io/npm/dw/{{name}}?labelColor=211F1F"),
|
|
69
|
+
emojis: zod.z.record(headingsSchema, zod.z.string()).optional().describe("Table heading emojis used when enabled").default({
|
|
70
|
+
default: "⚙️",
|
|
71
|
+
description: "📝",
|
|
72
|
+
devDependency: "💻",
|
|
73
|
+
downloads: "📥",
|
|
74
|
+
name: "🏷️",
|
|
75
|
+
private: "🔒",
|
|
76
|
+
required: "",
|
|
77
|
+
version: ""
|
|
78
|
+
}),
|
|
79
|
+
registryUrl: zod.z.string().optional().default("https://www.npmjs.com/package/{{name}}"),
|
|
80
|
+
versionImage: zod.z.string().optional().default("https://img.shields.io/npm/v/{{uri_name}}?logo=npm&logoColor=red&color=211F1F&labelColor=211F1F")
|
|
70
81
|
});
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
templates: templatesSchema.optional().default(defaultTemplates).describe(
|
|
110
|
-
"Handlebars templates used to fuel list and table generation"
|
|
111
|
-
),
|
|
112
|
-
tocHeading: import_zod.z.string().optional().default("Table of contents").meta({
|
|
113
|
-
description: "Markdown heading used to generate table of contents"
|
|
114
|
-
}),
|
|
115
|
-
usageFile: import_zod.z.string().optional().default("").meta({
|
|
116
|
-
description: "Workspace level usage file"
|
|
117
|
-
}),
|
|
118
|
-
usageHeading: import_zod.z.string().optional().default("Usage").meta({
|
|
119
|
-
description: "Markdown heading used to generate usage example"
|
|
120
|
-
}),
|
|
121
|
-
verbose: import_zod.z.boolean().default(false).meta({
|
|
122
|
-
alias: "v",
|
|
123
|
-
description: "whether or not to display verbose logging"
|
|
124
|
-
})
|
|
125
|
-
});
|
|
126
|
-
var configSchema = _configSchema.optional();
|
|
127
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
128
|
-
0 && (module.exports = {
|
|
129
|
-
actionsSchema,
|
|
130
|
-
configSchema,
|
|
131
|
-
defaultTableHeadings,
|
|
132
|
-
defaultTemplates,
|
|
133
|
-
formatsSchema,
|
|
134
|
-
headingsSchema,
|
|
135
|
-
languageSchema,
|
|
136
|
-
tableHeadingsSchema,
|
|
137
|
-
templatesSchema
|
|
82
|
+
const defaultTemplates = templatesSchema.parse({});
|
|
83
|
+
const defaultTableHeadings = tableHeadingsSchema.parse(void 0);
|
|
84
|
+
const _configSchema = zod.z.object({
|
|
85
|
+
affectedRegexes: zod.z.string().array().optional().default([]),
|
|
86
|
+
collapseHeadings: zod.z.string().array().optional().default([]),
|
|
87
|
+
defaultLanguage: languageSchema.meta({
|
|
88
|
+
alias: "l",
|
|
89
|
+
description: "Default language to infer projects from"
|
|
90
|
+
}),
|
|
91
|
+
disableEmojis: zod.z.boolean().default(false).meta({
|
|
92
|
+
alias: "e",
|
|
93
|
+
description: "Whether or not to use emojis in markdown table headings"
|
|
94
|
+
}),
|
|
95
|
+
disableMarkdownHeadings: zod.z.boolean().default(false).meta({ description: "Whether or not to display markdown headings" }),
|
|
96
|
+
enablePrettier: zod.z.boolean().default(true).meta({ description: "Whether or not to use prettier to format the files" }),
|
|
97
|
+
enableToc: zod.z.boolean().default(false).meta({
|
|
98
|
+
alias: "t",
|
|
99
|
+
description: "generate table of contents for readmes"
|
|
100
|
+
}),
|
|
101
|
+
enableUsage: zod.z.boolean().optional().default(false).meta({ description: "Whether or not to enable usage plugin" }),
|
|
102
|
+
headings: tableHeadingsSchema.optional().default(defaultTableHeadings).describe("List of headings for different table outputs"),
|
|
103
|
+
onlyReadmes: zod.z.boolean().default(true).meta({
|
|
104
|
+
alias: "r",
|
|
105
|
+
description: "Whether or not to only traverse readmes"
|
|
106
|
+
}),
|
|
107
|
+
onlyShowPublicPackages: zod.z.boolean().default(false).meta({
|
|
108
|
+
alias: "p",
|
|
109
|
+
description: "Only show public packages in workspaces"
|
|
110
|
+
}),
|
|
111
|
+
removeScope: zod.z.string().optional().default("").meta({ description: "Remove common workspace scope" }),
|
|
112
|
+
templates: templatesSchema.optional().default(defaultTemplates).describe("Handlebars templates used to fuel list and table generation"),
|
|
113
|
+
tocHeading: zod.z.string().optional().default("Table of contents").meta({ description: "Markdown heading used to generate table of contents" }),
|
|
114
|
+
usageFile: zod.z.string().optional().default("").meta({ description: "Workspace level usage file" }),
|
|
115
|
+
usageHeading: zod.z.string().optional().default("Usage").meta({ description: "Markdown heading used to generate usage example" }),
|
|
116
|
+
verbose: zod.z.boolean().default(false).meta({
|
|
117
|
+
alias: "v",
|
|
118
|
+
description: "whether or not to display verbose logging"
|
|
119
|
+
})
|
|
138
120
|
});
|
|
121
|
+
const configSchema = _configSchema.optional();
|
|
122
|
+
/** @typedef {Partial<z.infer<typeof _configSchema>>} Config */
|
|
123
|
+
|
|
124
|
+
//#endregion
|
|
125
|
+
exports.actionsSchema = actionsSchema;
|
|
126
|
+
exports.configSchema = configSchema;
|
|
127
|
+
exports.defaultTableHeadings = defaultTableHeadings;
|
|
128
|
+
exports.defaultTemplates = defaultTemplates;
|
|
129
|
+
exports.formatsSchema = formatsSchema;
|
|
130
|
+
exports.headingsSchema = headingsSchema;
|
|
131
|
+
exports.languageSchema = languageSchema;
|
|
132
|
+
exports.tableHeadingsSchema = tableHeadingsSchema;
|
|
133
|
+
exports.templatesSchema = templatesSchema;
|
|
139
134
|
//# sourceMappingURL=schema.cjs.map
|
package/config/schema.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/schema.js"],"sourcesContent":["import { z } from \"zod\";\n\nexport const actionsSchema = z\n\t.enum([\"ACTION\", \"PKG\", \"USAGE\", \"WORKSPACE\", \"ZOD\"])\n\t.describe(\"Comment action options\");\n\nexport const formatsSchema = z\n\t.enum([\"LIST\", \"TABLE\"])\n\t.default(\"TABLE\")\n\t.optional();\n\nexport const languageSchema = z.enum([\"JS\", \"RS\"]).optional().default(\"JS\");\n\nexport const headingsSchema = z\n\t.enum([\n\t\t\"default\",\n\t\t\"description\",\n\t\t\"devDependency\",\n\t\t\"downloads\",\n\t\t\"name\",\n\t\t\"private\",\n\t\t\"required\",\n\t\t\"version\",\n\t])\n\t.describe(\"Table heading options\");\n\nexport const tableHeadingsSchema = z\n\t.record(actionsSchema, headingsSchema.array().optional())\n\t.optional()\n\t.describe(\"Table heading action configuration\")\n\t.default({\n\t\tACTION: [\"name\", \"required\", \"default\", \"description\"],\n\t\tPKG: [\"name\", \"version\", \"devDependency\"],\n\t\tWORKSPACE: [\"name\", \"version\", \"downloads\", \"description\"],\n\t\tZOD: [],\n\t});\n\nexport const templatesSchema = z.object({\n\tdownloadImage: z\n\t\t.string()\n\t\t.optional()\n\t\t.default(\"https://img.shields.io/npm/dw/{{name}}?labelColor=211F1F\"),\n\temojis: z\n\t\t.record(headingsSchema, z.string())\n\t\t.optional()\n\t\t.describe(\"Table heading emojis used when enabled\")\n\t\t.default({\n\t\t\tdefault: \"⚙️\",\n\t\t\tdescription: \"📝\",\n\t\t\tdevDependency: \"💻\",\n\t\t\tdownloads: \"📥\",\n\t\t\tname: \"🏷️\",\n\t\t\tprivate: \"🔒\",\n\t\t\trequired: \"\",\n\t\t\tversion: \"\",\n\t\t}),\n\tregistryUrl: z\n\t\t.string()\n\t\t.optional()\n\t\t.default(\"https://www.npmjs.com/package/{{name}}\"),\n\tversionImage: z\n\t\t.string()\n\t\t.optional()\n\t\t.default(\n\t\t\t\"https://img.shields.io/npm/v/{{uri_name}}?logo=npm&logoColor=red&color=211F1F&labelColor=211F1F\",\n\t\t),\n});\n\nexport const defaultTemplates = templatesSchema.parse({});\nexport const defaultTableHeadings = tableHeadingsSchema.parse(undefined);\n\nconst _configSchema = z.object({\n\taffectedRegexes: z.string().array().optional().default([]),\n\tcollapseHeadings: z.string().array().optional().default([]),\n\tdefaultLanguage: languageSchema.meta({\n\t\talias: \"l\",\n\t\tdescription: \"Default language to infer projects from\",\n\t}),\n\tdisableEmojis: z.boolean().default(false).meta({\n\t\talias: \"e\",\n\t\tdescription: \"Whether or not to use emojis in markdown table headings\",\n\t}),\n\tdisableMarkdownHeadings: z.boolean().default(false).meta({\n\t\tdescription: \"Whether or not to display markdown headings\",\n\t}),\n\tenablePrettier: z.boolean().default(true).meta({\n\t\tdescription: \"Whether or not to use prettier to format the files\",\n\t}),\n\tenableToc: z.boolean().default(false).meta({\n\t\talias: \"t\",\n\t\tdescription: \"generate table of contents for readmes\",\n\t}),\n\tenableUsage: z.boolean().optional().default(false).meta({\n\t\tdescription: \"Whether or not to enable usage plugin\",\n\t}),\n\theadings: tableHeadingsSchema\n\t\t.optional()\n\t\t.default(defaultTableHeadings)\n\t\t.describe(\"List of headings for different table outputs\"),\n\tonlyReadmes: z.boolean().default(true).meta({\n\t\talias: \"r\",\n\t\tdescription: \"Whether or not to only traverse readmes\",\n\t}),\n\tonlyShowPublicPackages: z.boolean().default(false).meta({\n\t\talias: \"p\",\n\t\tdescription: \"Only show public packages in workspaces\",\n\t}),\n\tremoveScope: z.string().optional().default(\"\").meta({\n\t\tdescription: \"Remove common workspace scope\",\n\t}),\n\ttemplates: templatesSchema\n\t\t.optional()\n\t\t.default(defaultTemplates)\n\t\t.describe(\n\t\t\t\"Handlebars templates used to fuel list and table generation\",\n\t\t),\n\ttocHeading: z.string().optional().default(\"Table of contents\").meta({\n\t\tdescription: \"Markdown heading used to generate table of contents\",\n\t}),\n\tusageFile: z.string().optional().default(\"\").meta({\n\t\tdescription: \"Workspace level usage file\",\n\t}),\n\tusageHeading: z.string().optional().default(\"Usage\").meta({\n\t\tdescription: \"Markdown heading used to generate usage example\",\n\t}),\n\tverbose: z.boolean().default(false).meta({\n\t\talias: \"v\",\n\t\tdescription: \"whether or not to display verbose logging\",\n\t}),\n});\n\nexport const configSchema = _configSchema.optional();\n\n/** @typedef {Partial<z.infer<typeof _configSchema>>} Config */\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.cjs","names":["z"],"sources":["../src/schema.js"],"sourcesContent":["import { z } from \"zod\";\n\nexport const actionsSchema = z\n\t.enum([\"ACTION\", \"PKG\", \"USAGE\", \"WORKSPACE\", \"ZOD\"])\n\t.describe(\"Comment action options\");\n\nexport const formatsSchema = z\n\t.enum([\"LIST\", \"TABLE\"])\n\t.default(\"TABLE\")\n\t.optional();\n\nexport const languageSchema = z.enum([\"JS\", \"RS\"]).optional().default(\"JS\");\n\nexport const headingsSchema = z\n\t.enum([\n\t\t\"default\",\n\t\t\"description\",\n\t\t\"devDependency\",\n\t\t\"downloads\",\n\t\t\"name\",\n\t\t\"private\",\n\t\t\"required\",\n\t\t\"version\",\n\t])\n\t.describe(\"Table heading options\");\n\nexport const tableHeadingsSchema = z\n\t.record(actionsSchema, headingsSchema.array().optional())\n\t.optional()\n\t.describe(\"Table heading action configuration\")\n\t.default({\n\t\tACTION: [\"name\", \"required\", \"default\", \"description\"],\n\t\tPKG: [\"name\", \"version\", \"devDependency\"],\n\t\tWORKSPACE: [\"name\", \"version\", \"downloads\", \"description\"],\n\t\tZOD: [],\n\t});\n\nexport const templatesSchema = z.object({\n\tdownloadImage: z\n\t\t.string()\n\t\t.optional()\n\t\t.default(\"https://img.shields.io/npm/dw/{{name}}?labelColor=211F1F\"),\n\temojis: z\n\t\t.record(headingsSchema, z.string())\n\t\t.optional()\n\t\t.describe(\"Table heading emojis used when enabled\")\n\t\t.default({\n\t\t\tdefault: \"⚙️\",\n\t\t\tdescription: \"📝\",\n\t\t\tdevDependency: \"💻\",\n\t\t\tdownloads: \"📥\",\n\t\t\tname: \"🏷️\",\n\t\t\tprivate: \"🔒\",\n\t\t\trequired: \"\",\n\t\t\tversion: \"\",\n\t\t}),\n\tregistryUrl: z\n\t\t.string()\n\t\t.optional()\n\t\t.default(\"https://www.npmjs.com/package/{{name}}\"),\n\tversionImage: z\n\t\t.string()\n\t\t.optional()\n\t\t.default(\n\t\t\t\"https://img.shields.io/npm/v/{{uri_name}}?logo=npm&logoColor=red&color=211F1F&labelColor=211F1F\",\n\t\t),\n});\n\nexport const defaultTemplates = templatesSchema.parse({});\nexport const defaultTableHeadings = tableHeadingsSchema.parse(undefined);\n\nconst _configSchema = z.object({\n\taffectedRegexes: z.string().array().optional().default([]),\n\tcollapseHeadings: z.string().array().optional().default([]),\n\tdefaultLanguage: languageSchema.meta({\n\t\talias: \"l\",\n\t\tdescription: \"Default language to infer projects from\",\n\t}),\n\tdisableEmojis: z.boolean().default(false).meta({\n\t\talias: \"e\",\n\t\tdescription: \"Whether or not to use emojis in markdown table headings\",\n\t}),\n\tdisableMarkdownHeadings: z.boolean().default(false).meta({\n\t\tdescription: \"Whether or not to display markdown headings\",\n\t}),\n\tenablePrettier: z.boolean().default(true).meta({\n\t\tdescription: \"Whether or not to use prettier to format the files\",\n\t}),\n\tenableToc: z.boolean().default(false).meta({\n\t\talias: \"t\",\n\t\tdescription: \"generate table of contents for readmes\",\n\t}),\n\tenableUsage: z.boolean().optional().default(false).meta({\n\t\tdescription: \"Whether or not to enable usage plugin\",\n\t}),\n\theadings: tableHeadingsSchema\n\t\t.optional()\n\t\t.default(defaultTableHeadings)\n\t\t.describe(\"List of headings for different table outputs\"),\n\tonlyReadmes: z.boolean().default(true).meta({\n\t\talias: \"r\",\n\t\tdescription: \"Whether or not to only traverse readmes\",\n\t}),\n\tonlyShowPublicPackages: z.boolean().default(false).meta({\n\t\talias: \"p\",\n\t\tdescription: \"Only show public packages in workspaces\",\n\t}),\n\tremoveScope: z.string().optional().default(\"\").meta({\n\t\tdescription: \"Remove common workspace scope\",\n\t}),\n\ttemplates: templatesSchema\n\t\t.optional()\n\t\t.default(defaultTemplates)\n\t\t.describe(\n\t\t\t\"Handlebars templates used to fuel list and table generation\",\n\t\t),\n\ttocHeading: z.string().optional().default(\"Table of contents\").meta({\n\t\tdescription: \"Markdown heading used to generate table of contents\",\n\t}),\n\tusageFile: z.string().optional().default(\"\").meta({\n\t\tdescription: \"Workspace level usage file\",\n\t}),\n\tusageHeading: z.string().optional().default(\"Usage\").meta({\n\t\tdescription: \"Markdown heading used to generate usage example\",\n\t}),\n\tverbose: z.boolean().default(false).meta({\n\t\talias: \"v\",\n\t\tdescription: \"whether or not to display verbose logging\",\n\t}),\n});\n\nexport const configSchema = _configSchema.optional();\n\n/** @typedef {Partial<z.infer<typeof _configSchema>>} Config */\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAAa,gBAAgBA,MAC3B,KAAK;CAAC;C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,aAAa,mDACb,CAAC;CACF,SAASA,MAAE,SAAS,CAAC,QAAQ,MAAM,CAAC,KAAK;EACxC,OAAO;EACP,aAAa;EACb,CAAC;CACF,CAAC;AAEF,MAAa,eAAe,cAAc,UAAU"}
|
package/config/schema.d.cts
CHANGED
|
@@ -1,21 +1,50 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
|
|
3
|
+
//#region src/schema.d.ts
|
|
3
4
|
declare const actionsSchema: z.ZodEnum<{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
ACTION: "ACTION";
|
|
6
|
+
PKG: "PKG";
|
|
7
|
+
USAGE: "USAGE";
|
|
8
|
+
WORKSPACE: "WORKSPACE";
|
|
9
|
+
ZOD: "ZOD";
|
|
9
10
|
}>;
|
|
10
11
|
declare const formatsSchema: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
LIST: "LIST";
|
|
13
|
+
TABLE: "TABLE";
|
|
13
14
|
}>>>;
|
|
14
15
|
declare const languageSchema: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
JS: "JS";
|
|
17
|
+
RS: "RS";
|
|
17
18
|
}>>>;
|
|
18
19
|
declare const headingsSchema: z.ZodEnum<{
|
|
20
|
+
default: "default";
|
|
21
|
+
description: "description";
|
|
22
|
+
devDependency: "devDependency";
|
|
23
|
+
downloads: "downloads";
|
|
24
|
+
name: "name";
|
|
25
|
+
private: "private";
|
|
26
|
+
required: "required";
|
|
27
|
+
version: "version";
|
|
28
|
+
}>;
|
|
29
|
+
declare const tableHeadingsSchema: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
30
|
+
ACTION: "ACTION";
|
|
31
|
+
PKG: "PKG";
|
|
32
|
+
USAGE: "USAGE";
|
|
33
|
+
WORKSPACE: "WORKSPACE";
|
|
34
|
+
ZOD: "ZOD";
|
|
35
|
+
}>, z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
36
|
+
default: "default";
|
|
37
|
+
description: "description";
|
|
38
|
+
devDependency: "devDependency";
|
|
39
|
+
downloads: "downloads";
|
|
40
|
+
name: "name";
|
|
41
|
+
private: "private";
|
|
42
|
+
required: "required";
|
|
43
|
+
version: "version";
|
|
44
|
+
}>>>>>>;
|
|
45
|
+
declare const templatesSchema: z.ZodObject<{
|
|
46
|
+
downloadImage: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
47
|
+
emojis: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
19
48
|
default: "default";
|
|
20
49
|
description: "description";
|
|
21
50
|
devDependency: "devDependency";
|
|
@@ -24,14 +53,36 @@ declare const headingsSchema: z.ZodEnum<{
|
|
|
24
53
|
private: "private";
|
|
25
54
|
required: "required";
|
|
26
55
|
version: "version";
|
|
27
|
-
}
|
|
28
|
-
|
|
56
|
+
}>, z.ZodString>>>;
|
|
57
|
+
registryUrl: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
58
|
+
versionImage: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
declare const defaultTemplates: {
|
|
61
|
+
downloadImage: string;
|
|
62
|
+
emojis: Record<"default" | "description" | "devDependency" | "downloads" | "name" | "private" | "required" | "version", string>;
|
|
63
|
+
registryUrl: string;
|
|
64
|
+
versionImage: string;
|
|
65
|
+
};
|
|
66
|
+
declare const defaultTableHeadings: Record<"ACTION" | "PKG" | "USAGE" | "WORKSPACE" | "ZOD", ("default" | "description" | "devDependency" | "downloads" | "name" | "private" | "required" | "version")[] | undefined>;
|
|
67
|
+
declare const configSchema: z.ZodOptional<z.ZodObject<{
|
|
68
|
+
affectedRegexes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
69
|
+
collapseHeadings: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
70
|
+
defaultLanguage: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
71
|
+
JS: "JS";
|
|
72
|
+
RS: "RS";
|
|
73
|
+
}>>>;
|
|
74
|
+
disableEmojis: z.ZodDefault<z.ZodBoolean>;
|
|
75
|
+
disableMarkdownHeadings: z.ZodDefault<z.ZodBoolean>;
|
|
76
|
+
enablePrettier: z.ZodDefault<z.ZodBoolean>;
|
|
77
|
+
enableToc: z.ZodDefault<z.ZodBoolean>;
|
|
78
|
+
enableUsage: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
79
|
+
headings: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
29
80
|
ACTION: "ACTION";
|
|
30
81
|
PKG: "PKG";
|
|
31
82
|
USAGE: "USAGE";
|
|
32
83
|
WORKSPACE: "WORKSPACE";
|
|
33
84
|
ZOD: "ZOD";
|
|
34
|
-
}>, z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
85
|
+
}>, z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
35
86
|
default: "default";
|
|
36
87
|
description: "description";
|
|
37
88
|
devDependency: "devDependency";
|
|
@@ -40,132 +91,82 @@ declare const tableHeadingsSchema: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodE
|
|
|
40
91
|
private: "private";
|
|
41
92
|
required: "required";
|
|
42
93
|
version: "version";
|
|
43
|
-
}
|
|
44
|
-
|
|
94
|
+
}>>>>>>>>;
|
|
95
|
+
onlyReadmes: z.ZodDefault<z.ZodBoolean>;
|
|
96
|
+
onlyShowPublicPackages: z.ZodDefault<z.ZodBoolean>;
|
|
97
|
+
removeScope: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
98
|
+
templates: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
45
99
|
downloadImage: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
46
100
|
emojis: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
101
|
+
default: "default";
|
|
102
|
+
description: "description";
|
|
103
|
+
devDependency: "devDependency";
|
|
104
|
+
downloads: "downloads";
|
|
105
|
+
name: "name";
|
|
106
|
+
private: "private";
|
|
107
|
+
required: "required";
|
|
108
|
+
version: "version";
|
|
55
109
|
}>, z.ZodString>>>;
|
|
56
110
|
registryUrl: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
57
111
|
versionImage: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
58
|
-
}, z.core.$strip
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
versionImage: string;
|
|
64
|
-
};
|
|
65
|
-
declare const defaultTableHeadings: Record<"ACTION" | "PKG" | "USAGE" | "WORKSPACE" | "ZOD", ("default" | "description" | "devDependency" | "downloads" | "name" | "private" | "required" | "version")[] | undefined>;
|
|
66
|
-
declare const configSchema: z.ZodOptional<z.ZodObject<{
|
|
67
|
-
affectedRegexes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
68
|
-
collapseHeadings: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
69
|
-
defaultLanguage: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
70
|
-
JS: "JS";
|
|
71
|
-
RS: "RS";
|
|
72
|
-
}>>>;
|
|
73
|
-
disableEmojis: z.ZodDefault<z.ZodBoolean>;
|
|
74
|
-
disableMarkdownHeadings: z.ZodDefault<z.ZodBoolean>;
|
|
75
|
-
enablePrettier: z.ZodDefault<z.ZodBoolean>;
|
|
76
|
-
enableToc: z.ZodDefault<z.ZodBoolean>;
|
|
77
|
-
enableUsage: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
78
|
-
headings: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
79
|
-
ACTION: "ACTION";
|
|
80
|
-
PKG: "PKG";
|
|
81
|
-
USAGE: "USAGE";
|
|
82
|
-
WORKSPACE: "WORKSPACE";
|
|
83
|
-
ZOD: "ZOD";
|
|
84
|
-
}>, z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
85
|
-
default: "default";
|
|
86
|
-
description: "description";
|
|
87
|
-
devDependency: "devDependency";
|
|
88
|
-
downloads: "downloads";
|
|
89
|
-
name: "name";
|
|
90
|
-
private: "private";
|
|
91
|
-
required: "required";
|
|
92
|
-
version: "version";
|
|
93
|
-
}>>>>>>>>;
|
|
94
|
-
onlyReadmes: z.ZodDefault<z.ZodBoolean>;
|
|
95
|
-
onlyShowPublicPackages: z.ZodDefault<z.ZodBoolean>;
|
|
96
|
-
removeScope: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
97
|
-
templates: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
98
|
-
downloadImage: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
99
|
-
emojis: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
100
|
-
default: "default";
|
|
101
|
-
description: "description";
|
|
102
|
-
devDependency: "devDependency";
|
|
103
|
-
downloads: "downloads";
|
|
104
|
-
name: "name";
|
|
105
|
-
private: "private";
|
|
106
|
-
required: "required";
|
|
107
|
-
version: "version";
|
|
108
|
-
}>, z.ZodString>>>;
|
|
109
|
-
registryUrl: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
110
|
-
versionImage: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
111
|
-
}, z.core.$strip>>>;
|
|
112
|
-
tocHeading: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
113
|
-
usageFile: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
114
|
-
usageHeading: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
115
|
-
verbose: z.ZodDefault<z.ZodBoolean>;
|
|
112
|
+
}, z.core.$strip>>>;
|
|
113
|
+
tocHeading: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
114
|
+
usageFile: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
115
|
+
usageHeading: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
116
|
+
verbose: z.ZodDefault<z.ZodBoolean>;
|
|
116
117
|
}, z.core.$strip>>;
|
|
117
118
|
type Config = Partial<z.infer<typeof _configSchema>>;
|
|
118
|
-
|
|
119
119
|
declare const _configSchema: z.ZodObject<{
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
120
|
+
affectedRegexes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
121
|
+
collapseHeadings: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
122
|
+
defaultLanguage: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
123
|
+
JS: "JS";
|
|
124
|
+
RS: "RS";
|
|
125
|
+
}>>>;
|
|
126
|
+
disableEmojis: z.ZodDefault<z.ZodBoolean>;
|
|
127
|
+
disableMarkdownHeadings: z.ZodDefault<z.ZodBoolean>;
|
|
128
|
+
enablePrettier: z.ZodDefault<z.ZodBoolean>;
|
|
129
|
+
enableToc: z.ZodDefault<z.ZodBoolean>;
|
|
130
|
+
enableUsage: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
131
|
+
headings: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
132
|
+
ACTION: "ACTION";
|
|
133
|
+
PKG: "PKG";
|
|
134
|
+
USAGE: "USAGE";
|
|
135
|
+
WORKSPACE: "WORKSPACE";
|
|
136
|
+
ZOD: "ZOD";
|
|
137
|
+
}>, z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
138
|
+
default: "default";
|
|
139
|
+
description: "description";
|
|
140
|
+
devDependency: "devDependency";
|
|
141
|
+
downloads: "downloads";
|
|
142
|
+
name: "name";
|
|
143
|
+
private: "private";
|
|
144
|
+
required: "required";
|
|
145
|
+
version: "version";
|
|
146
|
+
}>>>>>>>>;
|
|
147
|
+
onlyReadmes: z.ZodDefault<z.ZodBoolean>;
|
|
148
|
+
onlyShowPublicPackages: z.ZodDefault<z.ZodBoolean>;
|
|
149
|
+
removeScope: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
150
|
+
templates: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
151
|
+
downloadImage: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
152
|
+
emojis: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
153
|
+
default: "default";
|
|
154
|
+
description: "description";
|
|
155
|
+
devDependency: "devDependency";
|
|
156
|
+
downloads: "downloads";
|
|
157
|
+
name: "name";
|
|
158
|
+
private: "private";
|
|
159
|
+
required: "required";
|
|
160
|
+
version: "version";
|
|
161
|
+
}>, z.ZodString>>>;
|
|
162
|
+
registryUrl: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
163
|
+
versionImage: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
164
|
+
}, z.core.$strip>>>;
|
|
165
|
+
tocHeading: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
166
|
+
usageFile: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
167
|
+
usageHeading: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
168
|
+
verbose: z.ZodDefault<z.ZodBoolean>;
|
|
169
169
|
}, z.core.$strip>;
|
|
170
|
-
|
|
171
|
-
export {
|
|
170
|
+
//#endregion
|
|
171
|
+
export { Config, actionsSchema, configSchema, defaultTableHeadings, defaultTemplates, formatsSchema, headingsSchema, languageSchema, tableHeadingsSchema, templatesSchema };
|
|
172
|
+
//# sourceMappingURL=schema.d.cts.map
|