@tamagui/cli 3.0.0-beta.889.1 → 3.0.0-beta.891.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/dist/migrate.cjs +4 -13
- package/package.json +9 -9
- package/src/migrate.ts +4 -13
package/dist/migrate.cjs
CHANGED
|
@@ -140,19 +140,10 @@ rg "@tamagui/theme-builder|v5-builder|createV5Theme|componentThemes|grandChildre
|
|
|
140
140
|
|
|
141
141
|
### 4. Migrate Sheet anatomy
|
|
142
142
|
|
|
143
|
-
The
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
codemod first. Pass expanded file paths because the script does not expand a
|
|
148
|
-
quoted glob:
|
|
149
|
-
|
|
150
|
-
\`\`\`bash
|
|
151
|
-
rg --files src -g '*.ts' -g '*.tsx' -0 \\
|
|
152
|
-
| xargs -0 node ./scripts/codemods/sheet-frame-to-container.js
|
|
153
|
-
\`\`\`
|
|
154
|
-
|
|
155
|
-
Migration rules:
|
|
143
|
+
The flat-values codemod from step 1 rewrites every provable \`Sheet.Frame\` to
|
|
144
|
+
\`Sheet.Container\` with a \`Sheet.Background\` first child carrying the surface
|
|
145
|
+
props, and reports spreads and \`styled(Sheet.Frame, \u2026)\` targets for review.
|
|
146
|
+
Check each rewritten callsite against these rules:
|
|
156
147
|
|
|
157
148
|
- Replace \`Sheet.Frame\` with \`Sheet.Container\` plus \`Sheet.Background\`.
|
|
158
149
|
- Keep layout props such as \`padding\`, \`gap\`, \`height\`, \`maxHeight\`, and flex props on \`Sheet.Container\`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/cli",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.891.1",
|
|
4
4
|
"bin": {
|
|
5
5
|
"tama": "dist/index.cjs",
|
|
6
6
|
"tamagui": "dist/index.cjs"
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
"test:web": "bun run test"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@tamagui/generate-themes": "3.0.0-beta.
|
|
55
|
-
"@tamagui/metro-plugin": "3.0.0-beta.
|
|
56
|
-
"@tamagui/static": "3.0.0-beta.
|
|
57
|
-
"@tamagui/to-tailwind": "3.0.0-beta.
|
|
58
|
-
"@tamagui/types": "3.0.0-beta.
|
|
59
|
-
"@tamagui/vite-plugin": "3.0.0-beta.
|
|
54
|
+
"@tamagui/generate-themes": "3.0.0-beta.891.1",
|
|
55
|
+
"@tamagui/metro-plugin": "3.0.0-beta.891.1",
|
|
56
|
+
"@tamagui/static": "3.0.0-beta.891.1",
|
|
57
|
+
"@tamagui/to-tailwind": "3.0.0-beta.891.1",
|
|
58
|
+
"@tamagui/types": "3.0.0-beta.891.1",
|
|
59
|
+
"@tamagui/vite-plugin": "3.0.0-beta.891.1",
|
|
60
60
|
"arg": "^5.0.2",
|
|
61
61
|
"chalk": "^4.1.2",
|
|
62
62
|
"change-case": "^4.1.2",
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
"ts-morph": "^28.0.0",
|
|
76
76
|
"typescript": "~6.0.3",
|
|
77
77
|
"url": "^0.11.0",
|
|
78
|
-
"@tamagui/language-service": "3.0.0-beta.
|
|
78
|
+
"@tamagui/language-service": "3.0.0-beta.891.1"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@tamagui/build": "3.0.0-beta.
|
|
81
|
+
"@tamagui/build": "3.0.0-beta.891.1",
|
|
82
82
|
"@types/chokidar": "^2.1.3",
|
|
83
83
|
"@types/marked": "^5.0.0",
|
|
84
84
|
"vitest": "4.1.0"
|
package/src/migrate.ts
CHANGED
|
@@ -124,19 +124,10 @@ rg "@tamagui/theme-builder|v5-builder|createV5Theme|componentThemes|grandChildre
|
|
|
124
124
|
|
|
125
125
|
### 4. Migrate Sheet anatomy
|
|
126
126
|
|
|
127
|
-
The
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
codemod first. Pass expanded file paths because the script does not expand a
|
|
132
|
-
quoted glob:
|
|
133
|
-
|
|
134
|
-
\`\`\`bash
|
|
135
|
-
rg --files src -g '*.ts' -g '*.tsx' -0 \\
|
|
136
|
-
| xargs -0 node ./scripts/codemods/sheet-frame-to-container.js
|
|
137
|
-
\`\`\`
|
|
138
|
-
|
|
139
|
-
Migration rules:
|
|
127
|
+
The flat-values codemod from step 1 rewrites every provable \`Sheet.Frame\` to
|
|
128
|
+
\`Sheet.Container\` with a \`Sheet.Background\` first child carrying the surface
|
|
129
|
+
props, and reports spreads and \`styled(Sheet.Frame, …)\` targets for review.
|
|
130
|
+
Check each rewritten callsite against these rules:
|
|
140
131
|
|
|
141
132
|
- Replace \`Sheet.Frame\` with \`Sheet.Container\` plus \`Sheet.Background\`.
|
|
142
133
|
- Keep layout props such as \`padding\`, \`gap\`, \`height\`, \`maxHeight\`, and flex props on \`Sheet.Container\`.
|