@tamagui/build 1.0.0-alpha.2 → 1.0.0-alpha.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/.ultra.cache.json +1 -1
- package/package.json +2 -2
- package/tamagui-build.js +52 -5
package/.ultra.cache.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"files":{"node_modules":"1637314740088.0405","externalNodePlugin.js":"fa1cd57f4fb8bc9a8c7ea03adaabc309b322ae0b","package.json":"
|
|
1
|
+
{"files":{"node_modules":"1637314740088.0405","externalNodePlugin.js":"fa1cd57f4fb8bc9a8c7ea03adaabc309b322ae0b","package.json":"3135852ae2f779e86bfbc8353bf548cbc6c374dc","tamagui-build.js":"05b9862d7b7019904cd3c34ec444b259cdc8d6aa"},"deps":{}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/build",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.8",
|
|
4
4
|
"bin": {
|
|
5
5
|
"tamagui-build": "tamagui-build.js"
|
|
6
6
|
},
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"fs-extra": "^9.1.0",
|
|
22
22
|
"typescript": "^4.2.4"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "ecb0afe6782276b1f2ece90320fd2748f2f05c93"
|
|
25
25
|
}
|
package/tamagui-build.js
CHANGED
|
@@ -10,6 +10,7 @@ const path = require('path')
|
|
|
10
10
|
const skipJS = process.env.SKIP_JS || false
|
|
11
11
|
const skipTypes = process.argv.includes('skip-types') || process.env.SKIP_TYPES
|
|
12
12
|
const jsx = process.argv.includes('--jsx')
|
|
13
|
+
const separate = process.argv.includes('--separate')
|
|
13
14
|
const watch = process.argv.includes('--watch')
|
|
14
15
|
const legacy = process.argv.includes('legacy')
|
|
15
16
|
|
|
@@ -49,8 +50,12 @@ async function build() {
|
|
|
49
50
|
)
|
|
50
51
|
}
|
|
51
52
|
} catch (err) {
|
|
52
|
-
console.log('Errors during tsc build, may be ok')
|
|
53
|
-
console.log(
|
|
53
|
+
console.log('\n ⚠️ Errors during tsc build, may be ok')
|
|
54
|
+
console.log(
|
|
55
|
+
err.message
|
|
56
|
+
.replace(ignoreSkipLibCheckOutputRNNodeConflicting, '')
|
|
57
|
+
.replace(ignoreAltConflict, '')
|
|
58
|
+
)
|
|
54
59
|
}
|
|
55
60
|
}
|
|
56
61
|
|
|
@@ -67,11 +72,18 @@ async function build() {
|
|
|
67
72
|
pkgMain
|
|
68
73
|
? esbuild
|
|
69
74
|
.build({
|
|
70
|
-
|
|
71
|
-
|
|
75
|
+
...(separate && {
|
|
76
|
+
entryPoints: files,
|
|
77
|
+
outdir: 'dist/cjs',
|
|
78
|
+
bundle: false,
|
|
79
|
+
}),
|
|
80
|
+
...(!separate && {
|
|
81
|
+
entryPoints: ['./src/index'],
|
|
82
|
+
outfile: pkgMain,
|
|
83
|
+
bundle: true,
|
|
84
|
+
}),
|
|
72
85
|
sourcemap: true,
|
|
73
86
|
target: 'node16',
|
|
74
|
-
bundle: true,
|
|
75
87
|
keepNames: true,
|
|
76
88
|
format: 'cjs',
|
|
77
89
|
color: true,
|
|
@@ -241,3 +253,38 @@ const ignoreSkipLibCheckOutputRNNodeConflicting = `../../node_modules/@types/nod
|
|
|
241
253
|
../../node_modules/@types/react-native/globals.d.ts(468,14): error TS2717: Subsequent property declarations must have the same type. Property 'result' must be of type 'string | ArrayBuffer | null', but here has type 'string | ArrayBuffer'.
|
|
242
254
|
../../node_modules/@types/react-native/node_modules/@types/react/index.d.ts(3094,14): error TS2300: Duplicate identifier 'LibraryManagedAttributes'.
|
|
243
255
|
../../node_modules/@types/react-native/node_modu`
|
|
256
|
+
|
|
257
|
+
const ignoreAltConflict = `../../node_modules/@types/node/globals.d.ts(47,11): error TS2300: Duplicate identifier 'AbortController'.
|
|
258
|
+
../../node_modules/@types/node/globals.d.ts(60,11): error TS2300: Duplicate identifier 'AbortSignal'.
|
|
259
|
+
../../node_modules/@types/node/globals.d.ts(67,13): error TS2300: Duplicate identifier 'AbortController'.
|
|
260
|
+
../../node_modules/@types/node/globals.d.ts(72,13): error TS2300: Duplicate identifier 'AbortSignal'.
|
|
261
|
+
../../node_modules/@types/react-native/globals.d.ts(50,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'Blob' must be of type '{ new (blobParts?: BlobPart[] | undefined, options?: BlobPropertyBag | undefined): Blob; prototype: Blob; }', but here has type '{ new (blobParts?: (string | Blob)[] | undefined, options?: BlobOptions | undefined): Blob; prototype: Blob; }'.
|
|
262
|
+
../../node_modules/@types/react-native/globals.d.ts(65,15): error TS2300: Duplicate identifier 'FormData'.
|
|
263
|
+
../../node_modules/@types/react-native/globals.d.ts(122,5): error TS2717: Subsequent property declarations must have the same type. Property 'body' must be of type 'BodyInit | null | undefined', but here has type 'BodyInit_ | undefined'.
|
|
264
|
+
../../node_modules/@types/react-native/globals.d.ts(130,5): error TS2717: Subsequent property declarations must have the same type. Property 'window' must be of type 'null | undefined', but here has type 'any'.
|
|
265
|
+
../../node_modules/@types/react-native/globals.d.ts(131,5): error TS2717: Subsequent property declarations must have the same type. Property 'signal' must be of type 'AbortSignal | null | undefined', but here has type 'AbortSignal | undefined'.
|
|
266
|
+
../../node_modules/@types/react-native/globals.d.ts(149,14): error TS2300: Duplicate identifier 'RequestInfo'.
|
|
267
|
+
../../node_modules/@types/react-native/globals.d.ts(168,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'Response' must be of type '{ new (body?: BodyInit | null | undefined, init?: ResponseInit | undefined): Response; prototype: Response; error(): Response; redirect(url: string | URL, status?: number | undefined): Response; }', but here has type '{ new (body?: BodyInit_ | undefined, init?: ResponseInit | undefined): Response; prototype: Response; error: () => Response; redirect: (url: string, status?: number | undefined) => Response; }'.
|
|
268
|
+
../../node_modules/@types/react-native/globals.d.ts(245,5): error TS2717: Subsequent property declarations must have the same type. Property 'abort' must be of type 'ProgressEvent<XMLHttpRequestEventTarget>', but here has type 'ProgressEvent<EventTarget>'.
|
|
269
|
+
../../node_modules/@types/react-native/globals.d.ts(246,5): error TS2717: Subsequent property declarations must have the same type. Property 'error' must be of type 'ProgressEvent<XMLHttpRequestEventTarget>', but here has type 'ProgressEvent<EventTarget>'.
|
|
270
|
+
../../node_modules/@types/react-native/globals.d.ts(247,5): error TS2717: Subsequent property declarations must have the same type. Property 'load' must be of type 'ProgressEvent<XMLHttpRequestEventTarget>', but here has type 'ProgressEvent<EventTarget>'.
|
|
271
|
+
../../node_modules/@types/react-native/globals.d.ts(248,5): error TS2717: Subsequent property declarations must have the same type. Property 'loadend' must be of type 'ProgressEvent<XMLHttpRequestEventTarget>', but here has type 'ProgressEvent<EventTarget>'.
|
|
272
|
+
../../node_modules/@types/react-native/globals.d.ts(249,5): error TS2717: Subsequent property declarations must have the same type. Property 'loadstart' must be of type 'ProgressEvent<XMLHttpRequestEventTarget>', but here has type 'ProgressEvent<EventTarget>'.
|
|
273
|
+
../../node_modules/@types/react-native/globals.d.ts(250,5): error TS2717: Subsequent property declarations must have the same type. Property 'progress' must be of type 'ProgressEvent<XMLHttpRequestEventTarget>', but here has type 'ProgressEvent<EventTarget>'.
|
|
274
|
+
../../node_modules/@types/react-native/globals.d.ts(251,5): error TS2717: Subsequent property declarations must have the same type. Property 'timeout' must be of type 'ProgressEvent<XMLHttpRequestEventTarget>', but here has type 'ProgressEvent<EventTarget>'.
|
|
275
|
+
../../node_modules/@types/react-native/globals.d.ts(292,14): error TS2300: Duplicate identifier 'XMLHttpRequestResponseType'.
|
|
276
|
+
../../node_modules/@types/react-native/globals.d.ts(299,15): error TS2300: Duplicate identifier 'URL'.
|
|
277
|
+
../../node_modules/@types/react-native/globals.d.ts(324,15): error TS2300: Duplicate identifier 'URLSearchParams'.
|
|
278
|
+
../../node_modules/@types/react-native/globals.d.ts(368,5): error TS2717: Subsequent property declarations must have the same type. Property 'onopen' must be of type '((this: WebSocket, ev: Event) => any) | null', but here has type '(() => void) | null'.
|
|
279
|
+
../../node_modules/@types/react-native/globals.d.ts(369,5): error TS2717: Subsequent property declarations must have the same type. Property 'onmessage' must be of type '((this: WebSocket, ev: MessageEvent<any>) => any) | null', but here has type '((event: WebSocketMessageEvent) => void) | null'.
|
|
280
|
+
../../node_modules/@types/react-native/globals.d.ts(370,5): error TS2717: Subsequent property declarations must have the same type. Property 'onerror' must be of type '((this: WebSocket, ev: Event) => any) | null', but here has type '((event: WebSocketErrorEvent) => void) | null'.
|
|
281
|
+
../../node_modules/@types/react-native/globals.d.ts(371,5): error TS2717: Subsequent property declarations must have the same type. Property 'onclose' must be of type '((this: WebSocket, ev: CloseEvent) => any) | null', but here has type '((event: WebSocketCloseEvent) => void) | null'.
|
|
282
|
+
../../node_modules/@types/react-native/globals.d.ts(372,5): error TS2717: Subsequent property declarations must have the same type. Property 'addEventListener' must be of type '{ <K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void; (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | ... 1 more ... | undefined): void; }', but here has type 'WebsocketEventListener'.
|
|
283
|
+
../../node_modules/@types/react-native/globals.d.ts(373,5): error TS2717: Subsequent property declarations must have the same type. Property 'removeEventListener' must be of type '{ <K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions | undefined): void; (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | ... 1 more ... | undefined): void; }', but here has type 'WebsocketEventListener'.
|
|
284
|
+
../../node_modules/@types/react-native/globals.d.ts(376,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'WebSocket' must be of type '{ new (url: string | URL, protocols?: string | string[] | undefined): WebSocket; prototype: WebSocket; readonly CLOSED: number; readonly CLOSING: number; readonly CONNECTING: number; readonly OPEN: number; }', but here has type '{ new (uri: string, protocols?: string | string[] | null | undefined, options?: { [optionName: string]: any; headers: { [headerName: string]: string; }; } | null | undefined): WebSocket; ... 4 more ...; readonly OPEN: number; }'.
|
|
285
|
+
../../node_modules/@types/react-native/globals.d.ts(400,15): error TS2300: Duplicate identifier 'AbortSignal'.
|
|
286
|
+
../../node_modules/@types/react-native/globals.d.ts(400,15): error TS2420: Class 'AbortSignal' incorrectly implements interface 'EventTarget'.
|
|
287
|
+
Property 'dispatchEvent' is missing in type 'AbortSignal' but required in type 'EventTarget'.
|
|
288
|
+
../../node_modules/@types/react-native/globals.d.ts(435,15): error TS2300: Duplicate identifier 'AbortController'.
|
|
289
|
+
../../node_modules/@types/react-native/globals.d.ts(460,14): error TS2717: Subsequent property declarations must have the same type. Property 'error' must be of type 'DOMException | null', but here has type 'Error | null'.
|
|
290
|
+
../../node_modules/@types/react-native/globals.d.ts(468,14): error TS2717: Subsequent property declarations must have the same type. Property 'result' must be of type 'string | ArrayBuffer | null', but here has type 'string |`
|