tailwindcss-patch 8.6.1 → 8.7.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 +193 -11
- package/dist/chunk-K3NZYVML.js +4743 -0
- package/dist/chunk-OK2PBYIA.mjs +4739 -0
- package/dist/cli.js +20 -5
- package/dist/cli.mjs +20 -5
- package/dist/index.d.mts +282 -23
- package/dist/index.d.ts +282 -23
- package/dist/index.js +16 -2
- package/dist/index.mjs +15 -1
- package/package.json +18 -14
- package/schema/migration-report.schema.json +144 -0
- package/schema/restore-result.schema.json +68 -0
- package/schema/validate-result.schema.json +122 -0
- package/dist/chunk-DRPYVUDA.js +0 -2462
- package/dist/chunk-LOJHMBK5.mjs +0 -2458
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://mangle.icebreaker.top/schemas/tailwindcss-patch/migration-report.schema.json",
|
|
4
|
+
"title": "tailwindcss-patch migration report",
|
|
5
|
+
"description": "Schema for reports generated by `tw-patch migrate --report-file`.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"cwd",
|
|
9
|
+
"dryRun",
|
|
10
|
+
"rollbackOnError",
|
|
11
|
+
"scannedFiles",
|
|
12
|
+
"changedFiles",
|
|
13
|
+
"writtenFiles",
|
|
14
|
+
"backupsWritten",
|
|
15
|
+
"unchangedFiles",
|
|
16
|
+
"missingFiles",
|
|
17
|
+
"entries"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"reportKind": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"const": "tw-patch-migrate-report"
|
|
23
|
+
},
|
|
24
|
+
"schemaVersion": {
|
|
25
|
+
"type": "integer",
|
|
26
|
+
"const": 1
|
|
27
|
+
},
|
|
28
|
+
"generatedAt": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": "date-time"
|
|
31
|
+
},
|
|
32
|
+
"tool": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"required": [
|
|
35
|
+
"name",
|
|
36
|
+
"version"
|
|
37
|
+
],
|
|
38
|
+
"properties": {
|
|
39
|
+
"name": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"version": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"additionalProperties": false
|
|
47
|
+
},
|
|
48
|
+
"cwd": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"dryRun": {
|
|
52
|
+
"type": "boolean"
|
|
53
|
+
},
|
|
54
|
+
"rollbackOnError": {
|
|
55
|
+
"type": "boolean"
|
|
56
|
+
},
|
|
57
|
+
"backupDirectory": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"scannedFiles": {
|
|
61
|
+
"type": "integer",
|
|
62
|
+
"minimum": 0
|
|
63
|
+
},
|
|
64
|
+
"changedFiles": {
|
|
65
|
+
"type": "integer",
|
|
66
|
+
"minimum": 0
|
|
67
|
+
},
|
|
68
|
+
"writtenFiles": {
|
|
69
|
+
"type": "integer",
|
|
70
|
+
"minimum": 0
|
|
71
|
+
},
|
|
72
|
+
"backupsWritten": {
|
|
73
|
+
"type": "integer",
|
|
74
|
+
"minimum": 0
|
|
75
|
+
},
|
|
76
|
+
"unchangedFiles": {
|
|
77
|
+
"type": "integer",
|
|
78
|
+
"minimum": 0
|
|
79
|
+
},
|
|
80
|
+
"missingFiles": {
|
|
81
|
+
"type": "integer",
|
|
82
|
+
"minimum": 0
|
|
83
|
+
},
|
|
84
|
+
"entries": {
|
|
85
|
+
"type": "array",
|
|
86
|
+
"items": {
|
|
87
|
+
"$ref": "#/$defs/entry"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"allOf": [
|
|
92
|
+
{
|
|
93
|
+
"if": {
|
|
94
|
+
"required": [
|
|
95
|
+
"reportKind"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"then": {
|
|
99
|
+
"required": [
|
|
100
|
+
"schemaVersion",
|
|
101
|
+
"generatedAt",
|
|
102
|
+
"tool"
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"$defs": {
|
|
108
|
+
"entry": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"required": [
|
|
111
|
+
"file",
|
|
112
|
+
"changed",
|
|
113
|
+
"written",
|
|
114
|
+
"rolledBack",
|
|
115
|
+
"changes"
|
|
116
|
+
],
|
|
117
|
+
"properties": {
|
|
118
|
+
"file": {
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
121
|
+
"changed": {
|
|
122
|
+
"type": "boolean"
|
|
123
|
+
},
|
|
124
|
+
"written": {
|
|
125
|
+
"type": "boolean"
|
|
126
|
+
},
|
|
127
|
+
"rolledBack": {
|
|
128
|
+
"type": "boolean"
|
|
129
|
+
},
|
|
130
|
+
"backupFile": {
|
|
131
|
+
"type": "string"
|
|
132
|
+
},
|
|
133
|
+
"changes": {
|
|
134
|
+
"type": "array",
|
|
135
|
+
"items": {
|
|
136
|
+
"type": "string"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"additionalProperties": false
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"additionalProperties": false
|
|
144
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://mangle.icebreaker.top/schemas/tailwindcss-patch/restore-result.schema.json",
|
|
4
|
+
"title": "tailwindcss-patch restore result",
|
|
5
|
+
"description": "Schema for JSON output from `tw-patch restore --json`.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"cwd",
|
|
9
|
+
"reportFile",
|
|
10
|
+
"dryRun",
|
|
11
|
+
"strict",
|
|
12
|
+
"scannedEntries",
|
|
13
|
+
"restorableEntries",
|
|
14
|
+
"restoredFiles",
|
|
15
|
+
"missingBackups",
|
|
16
|
+
"skippedEntries",
|
|
17
|
+
"restored"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"cwd": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"reportFile": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"reportKind": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"const": "tw-patch-migrate-report"
|
|
29
|
+
},
|
|
30
|
+
"reportSchemaVersion": {
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": 1
|
|
33
|
+
},
|
|
34
|
+
"dryRun": {
|
|
35
|
+
"type": "boolean"
|
|
36
|
+
},
|
|
37
|
+
"strict": {
|
|
38
|
+
"type": "boolean"
|
|
39
|
+
},
|
|
40
|
+
"scannedEntries": {
|
|
41
|
+
"type": "integer",
|
|
42
|
+
"minimum": 0
|
|
43
|
+
},
|
|
44
|
+
"restorableEntries": {
|
|
45
|
+
"type": "integer",
|
|
46
|
+
"minimum": 0
|
|
47
|
+
},
|
|
48
|
+
"restoredFiles": {
|
|
49
|
+
"type": "integer",
|
|
50
|
+
"minimum": 0
|
|
51
|
+
},
|
|
52
|
+
"missingBackups": {
|
|
53
|
+
"type": "integer",
|
|
54
|
+
"minimum": 0
|
|
55
|
+
},
|
|
56
|
+
"skippedEntries": {
|
|
57
|
+
"type": "integer",
|
|
58
|
+
"minimum": 0
|
|
59
|
+
},
|
|
60
|
+
"restored": {
|
|
61
|
+
"type": "array",
|
|
62
|
+
"items": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"additionalProperties": false
|
|
68
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://mangle.icebreaker.top/schemas/tailwindcss-patch/validate-result.schema.json",
|
|
4
|
+
"title": "tailwindcss-patch validate result",
|
|
5
|
+
"description": "Schema for JSON output from `tw-patch validate --json`.",
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{
|
|
8
|
+
"$ref": "#/$defs/success"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"$ref": "#/$defs/failure"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"$defs": {
|
|
15
|
+
"success": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"required": [
|
|
18
|
+
"ok",
|
|
19
|
+
"cwd",
|
|
20
|
+
"reportFile",
|
|
21
|
+
"dryRun",
|
|
22
|
+
"strict",
|
|
23
|
+
"scannedEntries",
|
|
24
|
+
"restorableEntries",
|
|
25
|
+
"restoredFiles",
|
|
26
|
+
"missingBackups",
|
|
27
|
+
"skippedEntries",
|
|
28
|
+
"restored"
|
|
29
|
+
],
|
|
30
|
+
"properties": {
|
|
31
|
+
"ok": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"const": true
|
|
34
|
+
},
|
|
35
|
+
"cwd": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"reportFile": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"reportKind": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"const": "tw-patch-migrate-report"
|
|
44
|
+
},
|
|
45
|
+
"reportSchemaVersion": {
|
|
46
|
+
"type": "integer",
|
|
47
|
+
"minimum": 1
|
|
48
|
+
},
|
|
49
|
+
"dryRun": {
|
|
50
|
+
"type": "boolean"
|
|
51
|
+
},
|
|
52
|
+
"strict": {
|
|
53
|
+
"type": "boolean"
|
|
54
|
+
},
|
|
55
|
+
"scannedEntries": {
|
|
56
|
+
"type": "integer",
|
|
57
|
+
"minimum": 0
|
|
58
|
+
},
|
|
59
|
+
"restorableEntries": {
|
|
60
|
+
"type": "integer",
|
|
61
|
+
"minimum": 0
|
|
62
|
+
},
|
|
63
|
+
"restoredFiles": {
|
|
64
|
+
"type": "integer",
|
|
65
|
+
"minimum": 0
|
|
66
|
+
},
|
|
67
|
+
"missingBackups": {
|
|
68
|
+
"type": "integer",
|
|
69
|
+
"minimum": 0
|
|
70
|
+
},
|
|
71
|
+
"skippedEntries": {
|
|
72
|
+
"type": "integer",
|
|
73
|
+
"minimum": 0
|
|
74
|
+
},
|
|
75
|
+
"restored": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"items": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"additionalProperties": false
|
|
83
|
+
},
|
|
84
|
+
"failure": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"required": [
|
|
87
|
+
"ok",
|
|
88
|
+
"reason",
|
|
89
|
+
"exitCode",
|
|
90
|
+
"message"
|
|
91
|
+
],
|
|
92
|
+
"properties": {
|
|
93
|
+
"ok": {
|
|
94
|
+
"type": "boolean",
|
|
95
|
+
"const": false
|
|
96
|
+
},
|
|
97
|
+
"reason": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"enum": [
|
|
100
|
+
"report-incompatible",
|
|
101
|
+
"missing-backups",
|
|
102
|
+
"io-error",
|
|
103
|
+
"unknown-error"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
"exitCode": {
|
|
107
|
+
"type": "integer",
|
|
108
|
+
"enum": [
|
|
109
|
+
21,
|
|
110
|
+
22,
|
|
111
|
+
23,
|
|
112
|
+
24
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"message": {
|
|
116
|
+
"type": "string"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"additionalProperties": false
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|