@tamagui/build 1.122.7 → 1.123.0
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tamagui-build-test-simple-tpackage",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.123.0",
|
|
4
4
|
"main": "dist/cjs",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"build:target-native": "TAMAGUI_TARGET=native node ../../../tamagui-build.js"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@tamagui/build": "1.
|
|
19
|
+
"@tamagui/build": "1.123.0",
|
|
20
20
|
"typescript": "^5.7.2"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tamagui-build-test-watch-package",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.123.0",
|
|
4
4
|
"main": "dist/cjs",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"build:target-native": "TAMAGUI_TARGET=native node ../../../tamagui-build.js"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@tamagui/build": "1.
|
|
19
|
+
"@tamagui/build": "1.123.0",
|
|
20
20
|
"typescript": "^5.7.2"
|
|
21
21
|
}
|
|
22
22
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/build",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.123.0",
|
|
4
4
|
"bin": {
|
|
5
5
|
"tamagui-build": "tamagui-build.js",
|
|
6
6
|
"teesx": "./teesx.sh"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@babel/core": "^7.25.2",
|
|
16
16
|
"@swc/core": "^1.7.21",
|
|
17
|
-
"@tamagui/babel-plugin-fully-specified": "1.
|
|
17
|
+
"@tamagui/babel-plugin-fully-specified": "1.123.0",
|
|
18
18
|
"@types/fs-extra": "^9.0.13",
|
|
19
19
|
"chokidar": "^3.5.2",
|
|
20
20
|
"esbuild": "^0.24.2",
|
package/tamagui-build.js
CHANGED
|
@@ -132,10 +132,12 @@ if (shouldClean || shouldCleanBuildOnly) {
|
|
|
132
132
|
const rebuild = debounce(build, 100)
|
|
133
133
|
const chokidar = require('chokidar')
|
|
134
134
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
135
|
+
if (!process.env.SKIP_INITIAL_BUILD) {
|
|
136
|
+
// do one js build but not types
|
|
137
|
+
build({
|
|
138
|
+
skipTypes: true,
|
|
139
|
+
})
|
|
140
|
+
}
|
|
139
141
|
|
|
140
142
|
chokidar
|
|
141
143
|
// prevent infinite loop but cause race condition if you just build directly
|
|
@@ -219,6 +221,14 @@ async function buildTsc(allFiles) {
|
|
|
219
221
|
compilerOptions
|
|
220
222
|
)
|
|
221
223
|
|
|
224
|
+
// exit on errors
|
|
225
|
+
if (diagnostics.some((x) => x.code) && !shouldWatch) {
|
|
226
|
+
console.error(
|
|
227
|
+
`Error building: ${diagnostics.map((x) => `${x.file.fileName}: ${x.messageText?.messageText ?? x.messageText}`).join('\n')}`
|
|
228
|
+
)
|
|
229
|
+
process.exit(1)
|
|
230
|
+
}
|
|
231
|
+
|
|
222
232
|
reportDiagnostics(diagnostics)
|
|
223
233
|
|
|
224
234
|
if (emitResult.emitSkipped) {
|