-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathts-to-zod.config.js
More file actions
34 lines (31 loc) · 857 Bytes
/
Copy pathts-to-zod.config.js
File metadata and controls
34 lines (31 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* ts-to-zod configuration.
*
* @type {import("ts-to-zod").TsToZodConfig}
*/
const config = [
"authorization","adjustment","brand","category","company","currency","customer","expense",
"pos_setting","product","purchase","purchase_return","quotation",
"sale","sale_return","setting","supplier","tenant","transfer",
"unit","pos_setting","warehouse","report"
].map(function(v){
return {
name: "ts-to-zod.config",
input: `src/core/${v}/index.ts`,
output: `src/core/${v}/index.zod.ts`,
};
});
module.exports=config
//module.exports = models
// [
// {
// name: "ts-to-zod.config",
// input: "src/core/tenant/index.ts",
// output: "src/core/tenant/index.zod.ts",
// },
// {
// name: "ts-to-zod.config",
// input: "src/core/company/index.ts",
// output: "src/core/company/index.zod.ts",
// },
// ];