@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.
- package/.turbo/turbo-test.log +19 -92
- package/__tests__/fixtures/js-main-package/.turbo/turbo-build.log +3 -2
- package/__tests__/fixtures/simple-package/.turbo/turbo-build.log +3 -2
- package/__tests__/fixtures/watch-package/.turbo/turbo-build.log +3 -2
- package/package.json +2 -2
- package/__tests__/fixtures/js-main-package/dist/cjs/index.js +0 -21
- package/__tests__/fixtures/js-main-package/dist/cjs/index.js.map +0 -6
- package/__tests__/fixtures/js-main-package/dist/cjs/index.native.js +0 -29
- package/__tests__/fixtures/js-main-package/dist/cjs/index.native.js.map +0 -1
- package/__tests__/fixtures/js-main-package/dist/esm/index.mjs +0 -3
- package/__tests__/fixtures/js-main-package/dist/esm/index.mjs.map +0 -1
- package/__tests__/fixtures/js-main-package/dist/esm/index.native.js +0 -3
- package/__tests__/fixtures/js-main-package/dist/esm/index.native.js.map +0 -1
- package/__tests__/fixtures/js-main-package/types/index.d.ts +0 -2
- package/__tests__/fixtures/js-main-package/types/index.d.ts.map +0 -1
package/.turbo/turbo-test.log
CHANGED
|
@@ -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
|
[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
|
|
11
|
-
[22m[39mWatch process output: built tamagui-build-test-watch-package in
|
|
11
|
+
[22m[39mWatch process output: built tamagui-build-test-watch-package in 76 ms
|
|
12
12
|
|
|
13
13
|
Initial build complete, modifying file...
|
|
14
14
|
|
|
15
15
|
[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
|
|
16
|
-
[22m[39mWatch process output: built tamagui-build-test-watch-package in
|
|
16
|
+
[22m[39mWatch 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
|
-
[
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[33m[2m✓[22m[39m should skip sourcemaps when --skip-sourcemaps is used [33m
|
|
32
|
-
[33m[2m✓[22m[39m should ignore base URL when --ignore-base-url is used [33m
|
|
33
|
-
[33m[2m✓[22m[39m should rebuild the package on file change when --watch is used [33m
|
|
34
|
-
[33m[2m✓[22m[39m should generate correct platform-specific output [33m
|
|
35
|
-
[33m[2m✓[22m[39m should minify the output when MINIFY=true is set [33m
|
|
36
|
-
[33m[2m✓[22m[39m should clean stale outputs before building [33m
|
|
37
|
-
[
|
|
38
|
-
[33m[2m✓[22m[39m should keep explicit cjs .js mains as final output [33m
|
|
27
|
+
[32m✓[39m __tests__/integration.test.ts [2m([22m[2m11 tests[22m[2m)[22m[33m 8496[2mms[22m[39m
|
|
28
|
+
[33m[2m✓[22m[39m should build the package correctly [33m 600[2mms[22m[39m
|
|
29
|
+
[33m[2m✓[22m[39m should bundle the package correctly [33m 529[2mms[22m[39m
|
|
30
|
+
[33m[2m✓[22m[39m should skip mjs files when --skip-mjs is used [33m 590[2mms[22m[39m
|
|
31
|
+
[33m[2m✓[22m[39m should skip sourcemaps when --skip-sourcemaps is used [33m 627[2mms[22m[39m
|
|
32
|
+
[33m[2m✓[22m[39m should ignore base URL when --ignore-base-url is used [33m 608[2mms[22m[39m
|
|
33
|
+
[33m[2m✓[22m[39m should rebuild the package on file change when --watch is used [33m 748[2mms[22m[39m
|
|
34
|
+
[33m[2m✓[22m[39m should generate correct platform-specific output [33m 616[2mms[22m[39m
|
|
35
|
+
[33m[2m✓[22m[39m should minify the output when MINIFY=true is set [33m 1233[2mms[22m[39m
|
|
36
|
+
[33m[2m✓[22m[39m should clean stale outputs before building [33m 1251[2mms[22m[39m
|
|
37
|
+
[33m[2m✓[22m[39m should keep only the required js aliases after postprocessing [33m 629[2mms[22m[39m
|
|
38
|
+
[33m[2m✓[22m[39m should keep explicit cjs .js mains as final output [33m 1025[2mms[22m[39m
|
|
39
|
+
|
|
40
|
+
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
41
|
+
[2m Tests [22m [1m[32m11 passed[39m[22m[90m (11)[39m
|
|
42
|
+
[2m Start at [22m 20:27:14
|
|
43
|
+
[2m Duration [22m 8.60s[2m (transform 35ms, setup 0ms, collect 41ms, tests 8.50s, environment 0ms, prepare 2ms)[22m
|
|
39
44
|
|
|
40
|
-
[31m⎯⎯⎯⎯⎯⎯⎯[39m[1m[41m Failed Tests 4 [49m[22m[31m⎯⎯⎯⎯⎯⎯⎯[39m
|
|
41
|
-
|
|
42
|
-
[41m[1m FAIL [22m[49m __tests__/integration.test.ts[2m > [22mtamagui-build integration test[2m > [22mshould build the package correctly
|
|
43
|
-
[31m[1mAssertionError[22m: expected false to be true // Object.is equality[39m
|
|
44
|
-
|
|
45
|
-
[32m- Expected[39m
|
|
46
|
-
[31m+ Received[39m
|
|
47
|
-
|
|
48
|
-
[32m- true[39m
|
|
49
|
-
[31m+ false[39m
|
|
50
|
-
|
|
51
|
-
[36m [2m❯[22m __tests__/integration.test.ts:[2m50:59[22m[39m
|
|
52
|
-
[90m 48| [39m [34mexpect[39m(esmOutput)[33m.[39m[34mtoContain[39m([32m'Hello,'[39m)
|
|
53
|
-
[90m 49| [39m [34mexpect[39m(esmOutput)[33m.[39m[34mtoContain[39m([32m"./nested/index.mjs"[39m)
|
|
54
|
-
[90m 50| [39m [34mexpect[39m([34mexistsSync[39m([34mjoin[39m(distPath[33m,[39m [32m'cjs'[39m[33m,[39m [32m'index.js'[39m)))[33m.[39m[34mtoBe[39m([35mtrue[39m)
|
|
55
|
-
[90m | [39m [31m^[39m
|
|
56
|
-
[90m 51| [39m [34mexpect[39m([34mexistsSync[39m([34mjoin[39m(distPath[33m,[39m [32m'esm'[39m[33m,[39m [32m'index.js'[39m)))[33m.[39m[34mtoBe[39m([35mtrue[39m)
|
|
57
|
-
[90m 52| [39m [34mexpect[39m([34mexistsSync[39m([34mjoin[39m(distPath[33m,[39m [32m'jsx'[39m[33m,[39m [32m'index.js'[39m)))[33m.[39m[34mtoBe[39m([35mtrue[39m)
|
|
58
|
-
|
|
59
|
-
[31m[2m⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/4]⎯[22m[39m
|
|
60
|
-
|
|
61
|
-
[41m[1m FAIL [22m[49m __tests__/integration.test.ts[2m > [22mtamagui-build integration test[2m > [22mshould bundle the package correctly
|
|
62
|
-
[31m[1mAssertionError[22m: expected false to be true // Object.is equality[39m
|
|
63
|
-
|
|
64
|
-
[32m- Expected[39m
|
|
65
|
-
[31m+ Received[39m
|
|
66
|
-
|
|
67
|
-
[32m- true[39m
|
|
68
|
-
[31m+ false[39m
|
|
69
|
-
|
|
70
|
-
[36m [2m❯[22m __tests__/integration.test.ts:[2m67:59[22m[39m
|
|
71
|
-
[90m 65| [39m [34mexpect[39m(cjsOutput)[33m.[39m[34mtoContain[39m([32m'Hello,'[39m)
|
|
72
|
-
[90m 66| [39m [34mexpect[39m(esmOutput)[33m.[39m[34mtoContain[39m([32m'Hello,'[39m)
|
|
73
|
-
[90m 67| [39m [34mexpect[39m([34mexistsSync[39m([34mjoin[39m(distPath[33m,[39m [32m'cjs'[39m[33m,[39m [32m'index.js'[39m)))[33m.[39m[34mtoBe[39m([35mtrue[39m)
|
|
74
|
-
[90m | [39m [31m^[39m
|
|
75
|
-
[90m 68| [39m [34mexpect[39m([34mexistsSync[39m([34mjoin[39m(distPath[33m,[39m [32m'esm'[39m[33m,[39m [32m'index.js'[39m)))[33m.[39m[34mtoBe[39m([35mtrue[39m)
|
|
76
|
-
[90m 69| [39m [34mexpect[39m([34mexistsSync[39m([34mjoin[39m(distPath[33m,[39m [32m'jsx'[39m[33m,[39m [32m'index.js'[39m)))[33m.[39m[34mtoBe[39m([35mtrue[39m)
|
|
77
|
-
|
|
78
|
-
[31m[2m⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/4]⎯[22m[39m
|
|
79
|
-
|
|
80
|
-
[41m[1m FAIL [22m[49m __tests__/integration.test.ts[2m > [22mtamagui-build integration test[2m > [22mshould skip mjs files when --skip-mjs is used
|
|
81
|
-
[31m[1mAssertionError[22m: expected false to be true // Object.is equality[39m
|
|
82
|
-
|
|
83
|
-
[32m- Expected[39m
|
|
84
|
-
[31m+ Received[39m
|
|
85
|
-
|
|
86
|
-
[32m- true[39m
|
|
87
|
-
[31m+ false[39m
|
|
88
|
-
|
|
89
|
-
[36m [2m❯[22m __tests__/integration.test.ts:[2m79:59[22m[39m
|
|
90
|
-
[90m 77| [39m [34mexpect[39m([34mexistsSync[39m(distCjsFilePath))[33m.[39m[34mtoBe[39m([35mtrue[39m)
|
|
91
|
-
[90m 78| [39m [34mexpect[39m([34mexistsSync[39m(distEsmFilePath))[33m.[39m[34mtoBe[39m([35mfalse[39m)
|
|
92
|
-
[90m 79| [39m [34mexpect[39m([34mexistsSync[39m([34mjoin[39m(distPath[33m,[39m [32m'cjs'[39m[33m,[39m [32m'index.js'[39m)))[33m.[39m[34mtoBe[39m([35mtrue[39m)
|
|
93
|
-
[90m | [39m [31m^[39m
|
|
94
|
-
[90m 80| [39m })
|
|
95
|
-
[90m 81| [39m
|
|
96
|
-
|
|
97
|
-
[31m[2m⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/4]⎯[22m[39m
|
|
98
|
-
|
|
99
|
-
[41m[1m FAIL [22m[49m __tests__/integration.test.ts[2m > [22mtamagui-build integration test[2m > [22mshould keep only the required js aliases after postprocessing
|
|
100
|
-
[31m[1mAssertionError[22m: expected [ 'cjs/index.cjs', …(25) ] to include 'cjs/index.js'[39m
|
|
101
|
-
[36m [2m❯[22m __tests__/integration.test.ts:[2m250:23[22m[39m
|
|
102
|
-
[90m248| [39m [33m.[39m[34mmap[39m((file) [33m=>[39m file[33m.[39m[34mreplace[39m([36m/^dist\//[39m[33m,[39m [32m''[39m))
|
|
103
|
-
[90m249| [39m
|
|
104
|
-
[90m250| [39m [34mexpect[39m(distFiles)[33m.[39m[34mtoContain[39m([32m'cjs/index.js'[39m)
|
|
105
|
-
[90m | [39m [31m^[39m
|
|
106
|
-
[90m251| [39m [34mexpect[39m(distFiles)[33m.[39m[34mtoContain[39m([32m'esm/index.js'[39m)
|
|
107
|
-
[90m252| [39m [34mexpect[39m(distFiles)[33m.[39m[34mtoContain[39m([32m'esm/index.js.map'[39m)
|
|
108
|
-
|
|
109
|
-
[31m[2m⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/4]⎯[22m[39m
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
[2m Test Files [22m [1m[31m1 failed[39m[22m[90m (1)[39m
|
|
113
|
-
[2m Tests [22m [1m[31m4 failed[39m[22m[2m | [22m[1m[32m7 passed[39m[22m[90m (11)[39m
|
|
114
|
-
[2m Start at [22m 17:18:05
|
|
115
|
-
[2m Duration [22m 8.85s[2m (transform 35ms, setup 0ms, collect 42ms, tests 8.73s, environment 0ms, prepare 3ms)[22m
|
|
116
|
-
|
|
117
|
-
error: script "test" exited with code 1
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
|
|
2
|
+
[0m[2m[35m$[0m [2m[1mnode ../../../tamagui-build.js --skip-types[0m
|
|
3
|
+
built tamagui-build-test-js-main-package in [33m176[39m ms
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
|
|
2
|
+
[0m[2m[35m$[0m [2m[1mnode ../../../tamagui-build.js --skip-types[0m
|
|
3
|
+
built tamagui-build-test-simple-tpackage in [33m228[39m ms
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
|
|
2
|
+
[0m[2m[35m$[0m [2m[1mnode ../../../tamagui-build.js --skip-types[0m
|
|
3
|
+
built tamagui-build-test-watch-package in [33m190[39m ms
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/build",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
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.
|
|
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,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 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["jsMainFixture"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAO,MAAMA,aAAA,GAAgB","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["jsMainFixture"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAO,IAAAA,aAAM,OAAgB","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,OAAO,CAAA"}
|