@tamagui/build 1.126.7 → 1.126.8
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 +13 -13
- package/package.json +2 -2
- package/tamagui-build.js +8 -2
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
|
|
2
|
-
RUN v3.1.
|
|
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 64 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 377 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) 14587ms
|
|
15
|
+
✓ tamagui-build integration test > should build the package correctly 2359ms
|
|
16
|
+
✓ tamagui-build integration test > should bundle the package correctly 1603ms
|
|
17
|
+
✓ tamagui-build integration test > should skip mjs files when --skip-mjs is used 1826ms
|
|
18
|
+
✓ tamagui-build integration test > should ignore base URL when --ignore-base-url is used 1705ms
|
|
19
|
+
✓ tamagui-build integration test > should rebuild the package on file change when --watch is used 1964ms
|
|
20
|
+
✓ tamagui-build integration test > should generate correct platform-specific output 1686ms
|
|
21
|
+
✓ tamagui-build integration test > should minify the output when MINIFY=true is set 3425ms
|
|
22
22
|
|
|
23
23
|
Test Files 1 passed (1)
|
|
24
24
|
Tests 7 passed (7)
|
|
25
|
-
Start at
|
|
26
|
-
Duration
|
|
25
|
+
Start at 16:06:18
|
|
26
|
+
Duration 14.82s (transform 53ms, setup 0ms, collect 48ms, tests 14.59s, environment 0ms, prepare 47ms)
|
|
27
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/build",
|
|
3
|
-
"version": "1.126.
|
|
3
|
+
"version": "1.126.8",
|
|
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.126.
|
|
17
|
+
"@tamagui/babel-plugin-fully-specified": "1.126.8",
|
|
18
18
|
"@types/fs-extra": "^9.0.13",
|
|
19
19
|
"chokidar": "^3.5.2",
|
|
20
20
|
"esbuild": "^0.25.0",
|
package/tamagui-build.js
CHANGED
|
@@ -678,6 +678,7 @@ async function esbuildWriteIfChanged(
|
|
|
678
678
|
}
|
|
679
679
|
|
|
680
680
|
const cleanupNonMjsFiles = []
|
|
681
|
+
const cleanupNonCjsFiles = []
|
|
681
682
|
|
|
682
683
|
async function flush(path, contents) {
|
|
683
684
|
if (shouldWatch) {
|
|
@@ -812,6 +813,8 @@ async function esbuildWriteIfChanged(
|
|
|
812
813
|
].filter(Boolean),
|
|
813
814
|
})
|
|
814
815
|
|
|
816
|
+
cleanupNonCjsFiles.push(path)
|
|
817
|
+
|
|
815
818
|
await FSE.writeFile(path.replace(/\.js$/, '.cjs'), result.code)
|
|
816
819
|
})
|
|
817
820
|
)
|
|
@@ -871,10 +874,13 @@ async function esbuildWriteIfChanged(
|
|
|
871
874
|
)
|
|
872
875
|
|
|
873
876
|
// if we do mjs we should remove js after to avoid bloat
|
|
874
|
-
if (
|
|
877
|
+
if (
|
|
878
|
+
process.env.TAMAGUI_BUILD_REMOVE_ESM_JS_FILES ||
|
|
879
|
+
process.env.TAMAGUI_BUILD_CLEANUP_JS_FILES
|
|
880
|
+
) {
|
|
875
881
|
if (cleanupNonMjsFiles.length) {
|
|
876
882
|
await Promise.all(
|
|
877
|
-
cleanupNonMjsFiles.map(async (file) => {
|
|
883
|
+
[...cleanupNonMjsFiles, ...cleanupNonCjsFiles].map(async (file) => {
|
|
878
884
|
await FSE.remove(file)
|
|
879
885
|
})
|
|
880
886
|
)
|