@tamagui/build 1.138.0 → 1.138.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 +2 -2
- package/tamagui-build.js +2 -14
package/.turbo/turbo-test.log
CHANGED
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
[1m[46m RUN [49m[22m [36mv4.0.4 [39m[90m/Users/n8/tamagui/code/packages/build[39m
|
|
3
3
|
|
|
4
4
|
[90mstdout[2m | __tests__/integration.test.ts[2m > [22m[2mtamagui-build integration test[2m > [22m[2mshould rebuild the package on file change when --watch is used
|
|
5
|
-
[22m[39mWatch process output: built tamagui-build-test-watch-package in
|
|
5
|
+
[22m[39mWatch process output: built tamagui-build-test-watch-package in 67 ms
|
|
6
6
|
|
|
7
7
|
Initial build complete, modifying file...
|
|
8
8
|
|
|
9
9
|
[90mstdout[2m | __tests__/integration.test.ts[2m > [22m[2mtamagui-build integration test[2m > [22m[2mshould rebuild the package on file change when --watch is used
|
|
10
|
-
[22m[39mWatch process output: built tamagui-build-test-watch-package in
|
|
10
|
+
[22m[39mWatch process output: built tamagui-build-test-watch-package in 345 ms
|
|
11
11
|
|
|
12
12
|
Rebuild after file modification complete
|
|
13
13
|
|
|
14
|
-
[32m✓[39m __tests__/integration.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m
|
|
15
|
-
[33m[2m✓[22m[39m should build the package correctly [33m
|
|
16
|
-
[33m[2m✓[22m[39m should bundle the package correctly [33m
|
|
17
|
-
[33m[2m✓[22m[39m should skip mjs files when --skip-mjs is used [33m
|
|
18
|
-
[33m[2m✓[22m[39m should ignore base URL when --ignore-base-url is used [33m
|
|
19
|
-
[33m[2m✓[22m[39m should rebuild the package on file change when --watch is used [33m
|
|
20
|
-
[33m[2m✓[22m[39m should generate correct platform-specific output [33m
|
|
21
|
-
[33m[2m✓[22m[39m should minify the output when MINIFY=true is set [33m
|
|
14
|
+
[32m✓[39m __tests__/integration.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m 9174[2mms[22m[39m
|
|
15
|
+
[33m[2m✓[22m[39m should build the package correctly [33m 1264[2mms[22m[39m
|
|
16
|
+
[33m[2m✓[22m[39m should bundle the package correctly [33m 1048[2mms[22m[39m
|
|
17
|
+
[33m[2m✓[22m[39m should skip mjs files when --skip-mjs is used [33m 1107[2mms[22m[39m
|
|
18
|
+
[33m[2m✓[22m[39m should ignore base URL when --ignore-base-url is used [33m 1102[2mms[22m[39m
|
|
19
|
+
[33m[2m✓[22m[39m should rebuild the package on file change when --watch is used [33m 1272[2mms[22m[39m
|
|
20
|
+
[33m[2m✓[22m[39m should generate correct platform-specific output [33m 1128[2mms[22m[39m
|
|
21
|
+
[33m[2m✓[22m[39m should minify the output when MINIFY=true is set [33m 2233[2mms[22m[39m
|
|
22
22
|
|
|
23
23
|
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
24
24
|
[2m Tests [22m [1m[32m7 passed[39m[22m[90m (7)[39m
|
|
25
|
-
[2m Start at [22m
|
|
26
|
-
[2m Duration [22m 9.
|
|
25
|
+
[2m Start at [22m 06:28:10
|
|
26
|
+
[2m Duration [22m 9.28s[2m (transform 36ms, setup 0ms, collect 42ms, tests 9.17s, environment 0ms, prepare 2ms)[22m
|
|
27
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/build",
|
|
3
|
-
"version": "1.138.
|
|
3
|
+
"version": "1.138.2",
|
|
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.14.0",
|
|
17
|
-
"@tamagui/babel-plugin-fully-specified": "1.138.
|
|
17
|
+
"@tamagui/babel-plugin-fully-specified": "1.138.2",
|
|
18
18
|
"@types/fs-extra": "^9.0.13",
|
|
19
19
|
"chokidar": "^3.5.2",
|
|
20
20
|
"esbuild": "^0.25.11",
|
package/tamagui-build.js
CHANGED
|
@@ -34,13 +34,6 @@ const shouldClean = !!process.argv.includes('clean')
|
|
|
34
34
|
const shouldCleanBuildOnly = !!process.argv.includes('clean:build')
|
|
35
35
|
const shouldWatch = process.argv.includes('--watch')
|
|
36
36
|
|
|
37
|
-
if (process.env.NEEDS_UNLOCK) {
|
|
38
|
-
if (!FSE.readFileSync(`./src/test-encrypted-file`, 'utf-8').includes(`is_unlocked`)) {
|
|
39
|
-
console.warn(`Not unlocked, skipping`)
|
|
40
|
-
process.exit(0)
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
37
|
const declarationToRoot = !!process.argv.includes('--declaration-root')
|
|
45
38
|
const ignoreBaseUrl = process.argv.includes('--ignore-base-url')
|
|
46
39
|
const baseUrlIndex = process.argv.indexOf('--base-url')
|
|
@@ -201,7 +194,7 @@ async function runAfterBuild() {
|
|
|
201
194
|
|
|
202
195
|
childProcess.execSync(afterBuild, {
|
|
203
196
|
stdio: 'inherit',
|
|
204
|
-
cwd: process.cwd()
|
|
197
|
+
cwd: process.cwd(),
|
|
205
198
|
})
|
|
206
199
|
|
|
207
200
|
console.info('afterBuild completed in', Date.now() - start, 'ms')
|
|
@@ -408,10 +401,7 @@ async function buildJs(allFiles) {
|
|
|
408
401
|
return { external: true }
|
|
409
402
|
}
|
|
410
403
|
|
|
411
|
-
if (
|
|
412
|
-
!args.path.startsWith('.') &&
|
|
413
|
-
!args.path.startsWith('/')
|
|
414
|
-
) {
|
|
404
|
+
if (!args.path.startsWith('.') && !args.path.startsWith('/')) {
|
|
415
405
|
// Keep esbuild-wasm external (it needs access to WASM files)
|
|
416
406
|
if (args.path === 'esbuild-wasm' || args.path.startsWith('esbuild-wasm/')) {
|
|
417
407
|
return { external: true }
|
|
@@ -429,7 +419,6 @@ async function buildJs(allFiles) {
|
|
|
429
419
|
|
|
430
420
|
const external = shouldBundleFlag ? ['@swc/*', '*.node'] : undefined
|
|
431
421
|
|
|
432
|
-
|
|
433
422
|
const start = Date.now()
|
|
434
423
|
|
|
435
424
|
const entryPoints = shouldBundleFlag ? [pkgSource || './src/index.ts'] : allFiles
|
|
@@ -616,7 +605,6 @@ async function esbuildWriteIfChanged(
|
|
|
616
605
|
: []),
|
|
617
606
|
].filter(Boolean),
|
|
618
607
|
|
|
619
|
-
|
|
620
608
|
format: isESM ? 'esm' : 'cjs',
|
|
621
609
|
|
|
622
610
|
treeShaking: true,
|