@tamagui/build 2.0.0-rc.31 → 2.0.0-rc.32

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.
@@ -8,12 +8,12 @@ $ node ../../../tamagui-build.js --skip-mjs
8
8
  $ node ../../../tamagui-build.js --skip-sourcemaps
9
9
  $ node ../../../tamagui-build.js --ignore-base-url
10
10
  stdout | __tests__/integration.test.ts > tamagui-build integration test > should rebuild the package on file change when --watch is used
11
- Watch process output: built tamagui-build-test-watch-package in 79 ms
11
+ Watch process output: built tamagui-build-test-watch-package in 76 ms
12
12
 
13
13
  Initial build complete, modifying file...
14
14
 
15
15
  stdout | __tests__/integration.test.ts > tamagui-build integration test > should rebuild the package on file change when --watch is used
16
- Watch process output: built tamagui-build-test-watch-package in 348 ms
16
+ Watch process output: built tamagui-build-test-watch-package in 351 ms
17
17
 
18
18
  Rebuild after file modification complete
19
19
 
@@ -24,94 +24,21 @@ $ node ../../../tamagui-build.js
24
24
  $ node ../../../tamagui-build.js
25
25
  $ node ../../../tamagui-build.js
26
26
  $ node ../../../tamagui-build.js
27
- ❯ __tests__/integration.test.ts (11 tests | 4 failed) 8732ms
28
-  × should build the package correctly 647ms
29
-  × should bundle the package correctly 549ms
30
-  × should skip mjs files when --skip-mjs is used 611ms
31
- ✓ should skip sourcemaps when --skip-sourcemaps is used  620ms
32
- ✓ should ignore base URL when --ignore-base-url is used  621ms
33
- ✓ should rebuild the package on file change when --watch is used  752ms
34
- ✓ should generate correct platform-specific output  617ms
35
- ✓ should minify the output when MINIFY=true is set  1267ms
36
- ✓ should clean stale outputs before building  1250ms
37
-  × should keep only the required js aliases after postprocessing 631ms
38
- ✓ should keep explicit cjs .js mains as final output  1133ms
27
+ ✓ __tests__/integration.test.ts (11 tests) 8496ms
28
+ ✓ should build the package correctly  600ms
29
+ ✓ should bundle the package correctly  529ms
30
+ ✓ should skip mjs files when --skip-mjs is used  590ms
31
+ ✓ should skip sourcemaps when --skip-sourcemaps is used  627ms
32
+ ✓ should ignore base URL when --ignore-base-url is used  608ms
33
+ ✓ should rebuild the package on file change when --watch is used  748ms
34
+ ✓ should generate correct platform-specific output  616ms
35
+ ✓ should minify the output when MINIFY=true is set  1233ms
36
+ ✓ should clean stale outputs before building  1251ms
37
+ ✓ should keep only the required js aliases after postprocessing  629ms
38
+ ✓ should keep explicit cjs .js mains as final output  1025ms
39
+
40
+  Test Files  1 passed (1)
41
+  Tests  11 passed (11)
42
+  Start at  20:27:14
43
+  Duration  8.60s (transform 35ms, setup 0ms, collect 41ms, tests 8.50s, environment 0ms, prepare 2ms)
39
44
 
40
- ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 4 ⎯⎯⎯⎯⎯⎯⎯
41
-
42
-  FAIL  __tests__/integration.test.ts > tamagui-build integration test > should build the package correctly
43
- AssertionError: expected false to be true // Object.is equality
44
-
45
- - Expected
46
- + Received
47
-
48
- - true
49
- + false
50
-
51
-  ❯ __tests__/integration.test.ts:50:59
52
-  48|  expect(esmOutput).toContain('Hello,')
53
-  49|  expect(esmOutput).toContain("./nested/index.mjs")
54
-  50|  expect(existsSync(join(distPath, 'cjs', 'index.js'))).toBe(true)
55
-  |  ^
56
-  51|  expect(existsSync(join(distPath, 'esm', 'index.js'))).toBe(true)
57
-  52|  expect(existsSync(join(distPath, 'jsx', 'index.js'))).toBe(true)
58
-
59
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/4]⎯
60
-
61
-  FAIL  __tests__/integration.test.ts > tamagui-build integration test > should bundle the package correctly
62
- AssertionError: expected false to be true // Object.is equality
63
-
64
- - Expected
65
- + Received
66
-
67
- - true
68
- + false
69
-
70
-  ❯ __tests__/integration.test.ts:67:59
71
-  65|  expect(cjsOutput).toContain('Hello,')
72
-  66|  expect(esmOutput).toContain('Hello,')
73
-  67|  expect(existsSync(join(distPath, 'cjs', 'index.js'))).toBe(true)
74
-  |  ^
75
-  68|  expect(existsSync(join(distPath, 'esm', 'index.js'))).toBe(true)
76
-  69|  expect(existsSync(join(distPath, 'jsx', 'index.js'))).toBe(true)
77
-
78
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/4]⎯
79
-
80
-  FAIL  __tests__/integration.test.ts > tamagui-build integration test > should skip mjs files when --skip-mjs is used
81
- AssertionError: expected false to be true // Object.is equality
82
-
83
- - Expected
84
- + Received
85
-
86
- - true
87
- + false
88
-
89
-  ❯ __tests__/integration.test.ts:79:59
90
-  77|  expect(existsSync(distCjsFilePath)).toBe(true)
91
-  78|  expect(existsSync(distEsmFilePath)).toBe(false)
92
-  79|  expect(existsSync(join(distPath, 'cjs', 'index.js'))).toBe(true)
93
-  |  ^
94
-  80|  })
95
-  81| 
96
-
97
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/4]⎯
98
-
99
-  FAIL  __tests__/integration.test.ts > tamagui-build integration test > should keep only the required js aliases after postprocessing
100
- AssertionError: expected [ 'cjs/index.cjs', …(25) ] to include 'cjs/index.js'
101
-  ❯ __tests__/integration.test.ts:250:23
102
- 248|  .map((file) => file.replace(/^dist\//, ''))
103
- 249| 
104
- 250|  expect(distFiles).toContain('cjs/index.js')
105
-  |  ^
106
- 251|  expect(distFiles).toContain('esm/index.js')
107
- 252|  expect(distFiles).toContain('esm/index.js.map')
108
-
109
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/4]⎯
110
-
111
-
112
-  Test Files  1 failed (1)
113
-  Tests  4 failed | 7 passed (11)
114
-  Start at  17:18:05
115
-  Duration  8.85s (transform 35ms, setup 0ms, collect 42ms, tests 8.73s, environment 0ms, prepare 3ms)
116
-
117
- error: script "test" exited with code 1
@@ -1,2 +1,3 @@
1
- $ node ../../../tamagui-build.js
2
- built tamagui-build-test-js-main-package in 5670 ms
1
+
2
+ $ node ../../../tamagui-build.js --skip-types
3
+ built tamagui-build-test-js-main-package in 176 ms
@@ -1,2 +1,3 @@
1
- $ node ../../../tamagui-build.js
2
- built tamagui-build-test-simple-tpackage in 3496 ms
1
+
2
+ $ node ../../../tamagui-build.js --skip-types
3
+ built tamagui-build-test-simple-tpackage in 228 ms
@@ -1,2 +1,3 @@
1
- $ node ../../../tamagui-build.js
2
- built tamagui-build-test-watch-package in 2561 ms
1
+
2
+ $ node ../../../tamagui-build.js --skip-types
3
+ built tamagui-build-test-watch-package in 190 ms
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/build",
3
- "version": "2.0.0-rc.31",
3
+ "version": "2.0.0-rc.32",
4
4
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
5
  "bin": {
6
6
  "tamagui-build": "tamagui-build.js",
@@ -17,7 +17,7 @@
17
17
  "@babel/core": "^7.25.2",
18
18
  "@babel/preset-typescript": "^7.26.0",
19
19
  "@swc/core": "^1.14.0",
20
- "@tamagui/babel-plugin-fully-specified": "2.0.0-rc.31",
20
+ "@tamagui/babel-plugin-fully-specified": "2.0.0-rc.32",
21
21
  "@types/fs-extra": "^9.0.13",
22
22
  "baseline-browser-mapping": "^2.9.15",
23
23
  "chokidar": "^3.5.2",
@@ -1,21 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var index_exports = {};
16
- __export(index_exports, {
17
- jsMainFixture: () => jsMainFixture
18
- });
19
- module.exports = __toCommonJS(index_exports);
20
- const jsMainFixture = "ok";
21
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,gBAAgB;",
5
- "names": []
6
- }
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
- get: () => from[key],
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
- });
18
- return to;
19
- };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
22
- }), mod);
23
- var index_exports = {};
24
- __export(index_exports, {
25
- jsMainFixture: () => jsMainFixture
26
- });
27
- module.exports = __toCommonJS(index_exports);
28
- var jsMainFixture = "ok";
29
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","jsMainFixture","module","exports"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,aAAA,EAAAA,CAAA,KAAAA;AAAA;AAAOC,MAAM,CAAAC,OAAA,GAAAT,YAAgB,CAAAK,aAAA","ignoreList":[]}
@@ -1,3 +0,0 @@
1
- const jsMainFixture = "ok";
2
- export { jsMainFixture };
3
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["jsMainFixture"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAO,MAAMA,aAAA,GAAgB","ignoreList":[]}
@@ -1,3 +0,0 @@
1
- var jsMainFixture = "ok";
2
- export { jsMainFixture };
3
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["jsMainFixture"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAO,IAAAA,aAAM,OAAgB","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export declare const jsMainFixture = "ok";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,OAAO,CAAA"}