@tamagui/build 1.138.0 → 1.138.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.
@@ -7,21 +7,21 @@
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 343 ms
10
+ Watch process output: built tamagui-build-test-watch-package in 330 ms
11
11
 
12
12
  Rebuild after file modification complete
13
13
 
14
- ✓ __tests__/integration.test.ts (7 tests) 9455ms
15
- ✓ should build the package correctly  1353ms
16
- ✓ should bundle the package correctly  1094ms
17
- ✓ should skip mjs files when --skip-mjs is used  1114ms
18
- ✓ should ignore base URL when --ignore-base-url is used  1142ms
19
- ✓ should rebuild the package on file change when --watch is used  1314ms
20
- ✓ should generate correct platform-specific output  1141ms
21
- ✓ should minify the output when MINIFY=true is set  2277ms
14
+ ✓ __tests__/integration.test.ts (7 tests) 10497ms
15
+ ✓ should build the package correctly  1538ms
16
+ ✓ should bundle the package correctly  1209ms
17
+ ✓ should skip mjs files when --skip-mjs is used  1343ms
18
+ ✓ should ignore base URL when --ignore-base-url is used  1251ms
19
+ ✓ should rebuild the package on file change when --watch is used  1416ms
20
+ ✓ should generate correct platform-specific output  1217ms
21
+ ✓ should minify the output when MINIFY=true is set  2505ms
22
22
 
23
23
   Test Files  1 passed (1)
24
24
   Tests  7 passed (7)
25
-  Start at  19:00:40
26
-  Duration  9.57s (transform 37ms, setup 0ms, collect 42ms, tests 9.46s, environment 0ms, prepare 2ms)
25
+  Start at  04:20:45
26
+  Duration  10.61s (transform 37ms, setup 0ms, collect 42ms, tests 10.50s, environment 0ms, prepare 2ms)
27
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/build",
3
- "version": "1.138.0",
3
+ "version": "1.138.1",
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.0",
17
+ "@tamagui/babel-plugin-fully-specified": "1.138.1",
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,