@tamagui/build 1.127.0 → 1.127.2
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/.turbo/turbo-test.log +12 -12
- package/package.json +3 -2
- package/tamagui-build.js +27 -1
package/.turbo/turbo-test.log
CHANGED
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
RUN v3.1.3 /Users/n8/tamagui/code/packages/build
|
|
3
3
|
|
|
4
4
|
stdout | __tests__/integration.test.ts > tamagui-build integration test > should rebuild the package on file change when --watch is used
|
|
5
|
-
Watch process output: built tamagui-build-test-watch-package in
|
|
5
|
+
Watch process output: built tamagui-build-test-watch-package in 75 ms
|
|
6
6
|
|
|
7
7
|
Initial build complete, modifying file...
|
|
8
8
|
|
|
9
9
|
stdout | __tests__/integration.test.ts > tamagui-build integration test > should rebuild the package on file change when --watch is used
|
|
10
|
-
Watch process output: built tamagui-build-test-watch-package in
|
|
10
|
+
Watch process output: built tamagui-build-test-watch-package in 431 ms
|
|
11
11
|
|
|
12
12
|
Rebuild after file modification complete
|
|
13
13
|
|
|
14
|
-
✓ __tests__/integration.test.ts (7 tests)
|
|
15
|
-
✓ tamagui-build integration test > should build the package correctly
|
|
16
|
-
✓ tamagui-build integration test > should bundle the package correctly
|
|
17
|
-
✓ tamagui-build integration test > should skip mjs files when --skip-mjs is used
|
|
18
|
-
✓ tamagui-build integration test > should ignore base URL when --ignore-base-url is used
|
|
19
|
-
✓ tamagui-build integration test > should rebuild the package on file change when --watch is used
|
|
20
|
-
✓ tamagui-build integration test > should generate correct platform-specific output
|
|
21
|
-
✓ tamagui-build integration test > should minify the output when MINIFY=true is set
|
|
14
|
+
✓ __tests__/integration.test.ts (7 tests) 10686ms
|
|
15
|
+
✓ tamagui-build integration test > should build the package correctly 1283ms
|
|
16
|
+
✓ tamagui-build integration test > should bundle the package correctly 1110ms
|
|
17
|
+
✓ tamagui-build integration test > should skip mjs files when --skip-mjs is used 1134ms
|
|
18
|
+
✓ tamagui-build integration test > should ignore base URL when --ignore-base-url is used 1274ms
|
|
19
|
+
✓ tamagui-build integration test > should rebuild the package on file change when --watch is used 1420ms
|
|
20
|
+
✓ tamagui-build integration test > should generate correct platform-specific output 1423ms
|
|
21
|
+
✓ tamagui-build integration test > should minify the output when MINIFY=true is set 3019ms
|
|
22
22
|
|
|
23
23
|
Test Files 1 passed (1)
|
|
24
24
|
Tests 7 passed (7)
|
|
25
|
-
Start at
|
|
26
|
-
Duration
|
|
25
|
+
Start at 12:06:30
|
|
26
|
+
Duration 10.92s (transform 49ms, setup 0ms, collect 45ms, tests 10.69s, environment 0ms, prepare 46ms)
|
|
27
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/build",
|
|
3
|
-
"version": "1.127.
|
|
3
|
+
"version": "1.127.2",
|
|
4
4
|
"bin": {
|
|
5
5
|
"tamagui-build": "tamagui-build.js",
|
|
6
6
|
"teesx": "./teesx.sh"
|
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@babel/core": "^7.25.2",
|
|
16
16
|
"@swc/core": "^1.7.21",
|
|
17
|
-
"@tamagui/babel-plugin-fully-specified": "1.127.
|
|
17
|
+
"@tamagui/babel-plugin-fully-specified": "1.127.2",
|
|
18
18
|
"@types/fs-extra": "^9.0.13",
|
|
19
|
+
"@typescript/native-preview": "7.0.0-dev.20250619.1",
|
|
19
20
|
"chokidar": "^3.5.2",
|
|
20
21
|
"esbuild": "^0.25.0",
|
|
21
22
|
"esbuild-plugin-es5": "^2.1.1",
|
package/tamagui-build.js
CHANGED
|
@@ -12,6 +12,7 @@ const alias = require('./esbuildAliasPlugin')
|
|
|
12
12
|
const { es5Plugin } = require('./esbuild-es5')
|
|
13
13
|
const ts = require('typescript')
|
|
14
14
|
const path = require('node:path')
|
|
15
|
+
const childProcess = require('node:child_process')
|
|
15
16
|
|
|
16
17
|
const jsOnly = !!process.env.JS_ONLY
|
|
17
18
|
const skipJS = !!(process.env.SKIP_JS || false)
|
|
@@ -177,6 +178,7 @@ async function build({ skipTypes } = {}) {
|
|
|
177
178
|
console.info('built', pkg.name, 'in', Date.now() - start, 'ms')
|
|
178
179
|
} catch (error) {
|
|
179
180
|
console.error(` ❌ Error building in ${process.cwd()}:\n\n`, error.stack + '\n')
|
|
181
|
+
process.exit(1)
|
|
180
182
|
}
|
|
181
183
|
}
|
|
182
184
|
|
|
@@ -194,6 +196,16 @@ async function buildTsc(allFiles) {
|
|
|
194
196
|
const { config, error } = await loadTsConfig()
|
|
195
197
|
if (error) throw error
|
|
196
198
|
|
|
199
|
+
// much slower
|
|
200
|
+
// if (config.options.isolatedDeclarations) {
|
|
201
|
+
// console.info(
|
|
202
|
+
// childProcess
|
|
203
|
+
// .execSync(`npx tsgo --project ./tsconfig.json --emitDeclarationOnly`)
|
|
204
|
+
// .toString()
|
|
205
|
+
// )
|
|
206
|
+
// return
|
|
207
|
+
// }
|
|
208
|
+
|
|
197
209
|
const compilerOptions = createCompilerOptions(config.options, targetDir)
|
|
198
210
|
|
|
199
211
|
if (config.options.isolatedDeclarations) {
|
|
@@ -380,6 +392,13 @@ async function buildJs(allFiles) {
|
|
|
380
392
|
plugins: [
|
|
381
393
|
alias({
|
|
382
394
|
'@tamagui/web': require.resolve('@tamagui/web/native'),
|
|
395
|
+
'react-native': require.resolve('@tamagui/react-native-web-lite'),
|
|
396
|
+
'react-native/Libraries/Core/ReactNativeVersion':
|
|
397
|
+
require.resolve('@tamagui/proxy-worm'),
|
|
398
|
+
'react-native/Libraries/Components/View/ViewNativeComponent':
|
|
399
|
+
require.resolve('@tamagui/proxy-worm'),
|
|
400
|
+
'react-native/Libraries/Text/TextAncestor':
|
|
401
|
+
require.resolve('@tamagui/proxy-worm'),
|
|
383
402
|
|
|
384
403
|
// for test mode we want real react-native
|
|
385
404
|
...(!bundleNativeTest && {
|
|
@@ -660,7 +679,14 @@ async function esbuildWriteIfChanged(
|
|
|
660
679
|
}
|
|
661
680
|
})()
|
|
662
681
|
|
|
663
|
-
|
|
682
|
+
let built
|
|
683
|
+
|
|
684
|
+
try {
|
|
685
|
+
built = await esbuild.build(buildSettings)
|
|
686
|
+
} catch (err) {
|
|
687
|
+
console.error(`Error building`, err)
|
|
688
|
+
process.exit(1)
|
|
689
|
+
}
|
|
664
690
|
|
|
665
691
|
if (!built.outputFiles) {
|
|
666
692
|
return
|