@jakubmazanec/carson 1.1.1-unstable.ec40525 → 1.1.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.
|
@@ -2,8 +2,8 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const templateAttributesSchema: z.ZodObject<{
|
|
3
3
|
strategy: z.ZodUnion<[z.ZodLiteral<"create">, z.ZodLiteral<"ensure">, z.ZodLiteral<"overwrite">, z.ZodLiteral<"merge">, z.ZodLiteral<"check">, z.ZodTuple<[z.ZodLiteral<"insert">, z.ZodString], null>]>;
|
|
4
4
|
}, "strict", z.ZodTypeAny, {
|
|
5
|
-
strategy:
|
|
5
|
+
strategy: "create" | "ensure" | "overwrite" | "merge" | "check" | ["insert", string];
|
|
6
6
|
}, {
|
|
7
|
-
strategy:
|
|
7
|
+
strategy: "create" | "ensure" | "overwrite" | "merge" | "check" | ["insert", string];
|
|
8
8
|
}>;
|
|
9
9
|
export type TemplateAttributes = z.infer<typeof templateAttributesSchema>;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const templateRenderSnapshotSchema: z.ZodObject<{
|
|
3
|
-
attributes: z.ZodObject<{
|
|
3
|
+
attributes: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
4
|
+
extends: z.ZodOptional<z.ZodString>;
|
|
4
5
|
to: z.ZodString;
|
|
6
|
+
if: z.ZodOptional<z.ZodString>;
|
|
7
|
+
variables: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">]>>;
|
|
8
|
+
}, "to">, {
|
|
5
9
|
strategy: z.ZodUnion<[z.ZodLiteral<"create">, z.ZodLiteral<"ensure">, z.ZodLiteral<"overwrite">, z.ZodLiteral<"merge">, z.ZodLiteral<"check">, z.ZodTuple<[z.ZodLiteral<"insert">, z.ZodString], null>]>;
|
|
6
|
-
}
|
|
7
|
-
strategy:
|
|
10
|
+
}>, "strict", z.ZodTypeAny, {
|
|
11
|
+
strategy: "create" | "ensure" | "overwrite" | "merge" | "check" | ["insert", string];
|
|
8
12
|
to: string;
|
|
9
13
|
}, {
|
|
10
|
-
strategy:
|
|
14
|
+
strategy: "create" | "ensure" | "overwrite" | "merge" | "check" | ["insert", string];
|
|
11
15
|
to: string;
|
|
12
16
|
}>;
|
|
13
17
|
content: z.ZodString;
|
|
@@ -23,7 +27,7 @@ export declare const templateRenderSnapshotSchema: z.ZodObject<{
|
|
|
23
27
|
path: string;
|
|
24
28
|
};
|
|
25
29
|
attributes: {
|
|
26
|
-
strategy:
|
|
30
|
+
strategy: "create" | "ensure" | "overwrite" | "merge" | "check" | ["insert", string];
|
|
27
31
|
to: string;
|
|
28
32
|
};
|
|
29
33
|
content: string;
|
|
@@ -32,7 +36,7 @@ export declare const templateRenderSnapshotSchema: z.ZodObject<{
|
|
|
32
36
|
path: string;
|
|
33
37
|
};
|
|
34
38
|
attributes: {
|
|
35
|
-
strategy:
|
|
39
|
+
strategy: "create" | "ensure" | "overwrite" | "merge" | "check" | ["insert", string];
|
|
36
40
|
to: string;
|
|
37
41
|
};
|
|
38
42
|
content: string;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { type z } from 'zod';
|
|
2
2
|
export declare const templateRenderSnapshotsSchema: z.ZodArray<z.ZodObject<{
|
|
3
|
-
attributes: z.ZodObject<{
|
|
3
|
+
attributes: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
4
|
+
extends: z.ZodOptional<z.ZodString>;
|
|
4
5
|
to: z.ZodString;
|
|
6
|
+
if: z.ZodOptional<z.ZodString>;
|
|
7
|
+
variables: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">]>>;
|
|
8
|
+
}, "to">, {
|
|
5
9
|
strategy: z.ZodUnion<[z.ZodLiteral<"create">, z.ZodLiteral<"ensure">, z.ZodLiteral<"overwrite">, z.ZodLiteral<"merge">, z.ZodLiteral<"check">, z.ZodTuple<[z.ZodLiteral<"insert">, z.ZodString], null>]>;
|
|
6
|
-
}
|
|
7
|
-
strategy:
|
|
10
|
+
}>, "strict", z.ZodTypeAny, {
|
|
11
|
+
strategy: "create" | "ensure" | "overwrite" | "merge" | "check" | ["insert", string];
|
|
8
12
|
to: string;
|
|
9
13
|
}, {
|
|
10
|
-
strategy:
|
|
14
|
+
strategy: "create" | "ensure" | "overwrite" | "merge" | "check" | ["insert", string];
|
|
11
15
|
to: string;
|
|
12
16
|
}>;
|
|
13
17
|
content: z.ZodString;
|
|
@@ -23,7 +27,7 @@ export declare const templateRenderSnapshotsSchema: z.ZodArray<z.ZodObject<{
|
|
|
23
27
|
path: string;
|
|
24
28
|
};
|
|
25
29
|
attributes: {
|
|
26
|
-
strategy:
|
|
30
|
+
strategy: "create" | "ensure" | "overwrite" | "merge" | "check" | ["insert", string];
|
|
27
31
|
to: string;
|
|
28
32
|
};
|
|
29
33
|
content: string;
|
|
@@ -32,7 +36,7 @@ export declare const templateRenderSnapshotsSchema: z.ZodArray<z.ZodObject<{
|
|
|
32
36
|
path: string;
|
|
33
37
|
};
|
|
34
38
|
attributes: {
|
|
35
|
-
strategy:
|
|
39
|
+
strategy: "create" | "ensure" | "overwrite" | "merge" | "check" | ["insert", string];
|
|
36
40
|
to: string;
|
|
37
41
|
};
|
|
38
42
|
content: string;
|
|
@@ -3,7 +3,7 @@ export declare function loadTemplateRenderSnapshots(templateRenderSnapshotsPath:
|
|
|
3
3
|
path: string;
|
|
4
4
|
};
|
|
5
5
|
attributes: {
|
|
6
|
-
strategy:
|
|
6
|
+
strategy: "create" | "ensure" | "overwrite" | "merge" | "check" | ["insert", string];
|
|
7
7
|
to: string;
|
|
8
8
|
};
|
|
9
9
|
content: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jakubmazanec/carson",
|
|
3
|
-
"version": "1.1.1
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Tool for managing workspace and project configuration.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"typecheck": "tsc --project tsconfig.typecheck.json"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@jakubmazanec/args": "2.0.
|
|
36
|
-
"@jakubmazanec/cli": "0.3.
|
|
37
|
-
"@jakubmazanec/error": "3.0.
|
|
38
|
-
"@jakubmazanec/fs-utils": "0.2.
|
|
39
|
-
"@jakubmazanec/template": "2.0.
|
|
40
|
-
"@jakubmazanec/ts-utils": "3.0.
|
|
41
|
-
"@jakubmazanec/zod-utils": "2.0.
|
|
35
|
+
"@jakubmazanec/args": "^2.0.0",
|
|
36
|
+
"@jakubmazanec/cli": "^0.3.0",
|
|
37
|
+
"@jakubmazanec/error": "^3.0.0",
|
|
38
|
+
"@jakubmazanec/fs-utils": "^0.2.0",
|
|
39
|
+
"@jakubmazanec/template": "^2.0.0",
|
|
40
|
+
"@jakubmazanec/ts-utils": "^3.0.0",
|
|
41
|
+
"@jakubmazanec/zod-utils": "^2.0.0",
|
|
42
42
|
"chalk": "^5.3.0",
|
|
43
43
|
"fast-glob": "^3.3.2",
|
|
44
44
|
"fflate": "^0.8.2",
|
|
@@ -46,16 +46,16 @@
|
|
|
46
46
|
"json5": "^2.2.3",
|
|
47
47
|
"lodash": "^4.17.21",
|
|
48
48
|
"micromatch": "^4.0.7",
|
|
49
|
-
"prettier": "^3.
|
|
50
|
-
"prettier-plugin-packagejson": "^2.
|
|
49
|
+
"prettier": "^3.3.0",
|
|
50
|
+
"prettier-plugin-packagejson": "^2.5.0",
|
|
51
51
|
"semver": "^7.6.2",
|
|
52
|
-
"simple-git": "^3.
|
|
52
|
+
"simple-git": "^3.24.0",
|
|
53
53
|
"yaml": "^2.4.3",
|
|
54
54
|
"zen-observable": "^0.10.0",
|
|
55
|
-
"zod": "^3.
|
|
55
|
+
"zod": "^3.23.8"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@jakubmazanec/eslint-config": "3.
|
|
58
|
+
"@jakubmazanec/eslint-config": "^3.2.0",
|
|
59
59
|
"@types/fs-extra": "^11.0.4",
|
|
60
60
|
"@types/lodash": "^4.14.202",
|
|
61
61
|
"@types/micromatch": "^4.0.7",
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"eslint": "^8.56.0",
|
|
71
71
|
"ink": "^4.4.1",
|
|
72
72
|
"lodash": "^4.17.21",
|
|
73
|
-
"prettier": "^3.
|
|
74
|
-
"prettier-plugin-packagejson": "^2.
|
|
73
|
+
"prettier": "^3.3.0",
|
|
74
|
+
"prettier-plugin-packagejson": "^2.5.0",
|
|
75
75
|
"react": "^18.2.0",
|
|
76
76
|
"ts-node": "^10.9.2",
|
|
77
77
|
"typedoc": "^0.25.13",
|
|
78
|
-
"typedoc-plugin-markdown": "^
|
|
78
|
+
"typedoc-plugin-markdown": "^4.0.3",
|
|
79
79
|
"typescript": "^5.4.5",
|
|
80
80
|
"vitest": "^1.3.1"
|
|
81
81
|
},
|