@tamagui/build 1.0.0-alpha.8 → 1.0.0-beta.0
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-build.log +1 -0
- package/package.json +9 -7
- package/tamagui-build.js +155 -250
- package/tsconfig.json +9 -0
- package/.ultra.cache.json +0 -1
- package/LICENSE +0 -21
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@tamagui/build:build: cache hit, replaying output f63532eebd5fe683
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/build",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
4
|
"bin": {
|
|
5
5
|
"tamagui-build": "tamagui-build.js"
|
|
6
6
|
},
|
|
@@ -11,15 +11,17 @@
|
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
14
|
-
"
|
|
14
|
+
"dependencies": {
|
|
15
15
|
"chokidar": "^3.5.2",
|
|
16
|
-
"
|
|
17
|
-
"dts-bundle-generator": "^5.9.0",
|
|
18
|
-
"esbuild": "^0.13.14",
|
|
16
|
+
"esbuild": "^0.14.36",
|
|
19
17
|
"execa": "^5.0.0",
|
|
20
18
|
"fast-glob": "^3.2.7",
|
|
21
19
|
"fs-extra": "^9.1.0",
|
|
22
|
-
"
|
|
20
|
+
"json5": "^2.2.0",
|
|
21
|
+
"typescript": "^4.5.2"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/fs-extra": "^9.0.13"
|
|
23
25
|
},
|
|
24
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14"
|
|
25
27
|
}
|
package/tamagui-build.js
CHANGED
|
@@ -2,289 +2,194 @@
|
|
|
2
2
|
|
|
3
3
|
const exec = require('execa')
|
|
4
4
|
const fs = require('fs-extra')
|
|
5
|
+
const json5 = require('json5')
|
|
5
6
|
const esbuild = require('esbuild')
|
|
6
7
|
const fg = require('fast-glob')
|
|
7
8
|
const createExternalPlugin = require('./externalNodePlugin')
|
|
8
|
-
const path = require('path')
|
|
9
9
|
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
10
|
+
const jsOnly = !!process.env.JS_ONLY
|
|
11
|
+
const skipJS = !!(process.env.SKIP_JS || false)
|
|
12
|
+
const shouldSkipTypes = !!(process.argv.includes('skip-types') || process.env.SKIP_TYPES)
|
|
13
|
+
const shouldClean = !!process.argv.includes('clean')
|
|
14
|
+
const shouldCleanBuildOnly = !!process.argv.includes('clean:build')
|
|
15
|
+
const shouldWatch = process.argv.includes('--watch')
|
|
16
16
|
|
|
17
17
|
const pkg = fs.readJSONSync('./package.json')
|
|
18
|
-
const pkgSource = pkg.source || 'src/index.ts'
|
|
19
|
-
const pkgMain = pkg.main
|
|
20
|
-
const pkgModule = pkg.module
|
|
21
18
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
if (shouldClean || shouldCleanBuildOnly) {
|
|
20
|
+
;(async () => {
|
|
21
|
+
try {
|
|
22
|
+
await Promise.allSettled([fs.remove('.turbo'), fs.remove('types'), fs.remove('dist')])
|
|
23
|
+
} catch {}
|
|
24
|
+
if (shouldCleanBuildOnly) {
|
|
25
|
+
console.log('» cleaned', pkg.name)
|
|
26
|
+
process.exit(0)
|
|
27
|
+
}
|
|
28
|
+
try {
|
|
29
|
+
await Promise.allSettled([fs.remove('node_modules')])
|
|
30
|
+
} catch {}
|
|
31
|
+
console.log('» cleaned', pkg.name)
|
|
32
|
+
process.exit(0)
|
|
33
|
+
})()
|
|
34
|
+
} else {
|
|
35
|
+
let shouldSkipInitialTypes = !!process.env.SKIP_TYPES_INITIAL
|
|
26
36
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} else {
|
|
30
|
-
fs.existsSync('tsconfig.tsbuildinfo') && fs.rmSync('tsconfig.tsbuildinfo')
|
|
31
|
-
}
|
|
37
|
+
const pkgMain = pkg.main
|
|
38
|
+
const pkgModule = pkg.module
|
|
32
39
|
|
|
33
|
-
async function
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
40
|
+
async function build() {
|
|
41
|
+
console.log('»', pkg.name)
|
|
42
|
+
const x = Date.now()
|
|
43
|
+
let files = (await fg(['src/**/*.ts', 'src/**/*.tsx', 'src/**/*.css'])).filter(
|
|
44
|
+
(x) => !x.includes('.d.ts')
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
if (process.env.NO_CLEAN) {
|
|
48
|
+
console.log('skip typecheck')
|
|
49
|
+
} else {
|
|
50
|
+
fs.existsSync('tsconfig.tsbuildinfo') && fs.rmSync('tsconfig.tsbuildinfo')
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
async function buildTsc() {
|
|
54
|
+
if (jsOnly || shouldSkipTypes) return
|
|
55
|
+
if (shouldSkipInitialTypes) {
|
|
56
|
+
shouldSkipInitialTypes = false
|
|
57
|
+
return
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// NOTE:
|
|
61
|
+
// for Intellisense to work in monorepo you need baseUrl: "../.."
|
|
62
|
+
// but to build things nicely we need here to reset a few things:
|
|
63
|
+
// baseUrl: ., outDir: types, rootDir: src
|
|
64
|
+
// now we can have the best of both worlds
|
|
65
|
+
|
|
66
|
+
// NOTE: to get intellisense to *not* suggest importing from the index file when it re-exports another package...
|
|
67
|
+
// (like tamagui does with @tamagui/core...)
|
|
68
|
+
// we add `exclude: ['src/index.ts']` to the tsconfig.json which fixes that
|
|
69
|
+
// but then it causes it to not export the types out from index... so....
|
|
70
|
+
// we do a stupid, stupid thing to re-write it temporarily without it before build. then restore it after
|
|
71
|
+
// honestly hate typescript config all around but this seems to work so fuck it
|
|
72
|
+
const tsConfOg = await fs.readFile('tsconfig.json')
|
|
73
|
+
const tsConfJSON = json5.parse(tsConfOg)
|
|
74
|
+
if (tsConfJSON.exclude && tsConfJSON.exclude.includes('src/index.ts')) {
|
|
75
|
+
tsConfJSON.exclude = tsConfJSON.exclude.filter((x) => x !== 'src/index.ts')
|
|
76
|
+
await fs.writeJSON('tsconfig.json', tsConfJSON)
|
|
77
|
+
}
|
|
78
|
+
try {
|
|
37
79
|
await exec('npx', [
|
|
38
80
|
'tsc',
|
|
81
|
+
'--baseUrl',
|
|
82
|
+
'.',
|
|
83
|
+
'--outDir',
|
|
84
|
+
'types',
|
|
85
|
+
'--rootDir',
|
|
86
|
+
'src',
|
|
39
87
|
'--declaration',
|
|
40
88
|
'--emitDeclarationOnly',
|
|
41
89
|
'--declarationMap',
|
|
42
|
-
'--declarationDir',
|
|
43
|
-
'types',
|
|
44
90
|
])
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
// was going super slow... --no-check for now..?
|
|
49
|
-
['dts-bundle-generator', watch ? '--no-check' : [], '-o', 'types.d.ts', pkgSource].flat()
|
|
50
|
-
)
|
|
91
|
+
} finally {
|
|
92
|
+
// restore
|
|
93
|
+
await fs.writeFile('tsconfig.json', tsConfOg)
|
|
51
94
|
}
|
|
52
|
-
} catch (err) {
|
|
53
|
-
console.log('\n ⚠️ Errors during tsc build, may be ok')
|
|
54
|
-
console.log(
|
|
55
|
-
err.message
|
|
56
|
-
.replace(ignoreSkipLibCheckOutputRNNodeConflicting, '')
|
|
57
|
-
.replace(ignoreAltConflict, '')
|
|
58
|
-
)
|
|
59
95
|
}
|
|
60
|
-
}
|
|
61
96
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
97
|
+
const externalPlugin = createExternalPlugin({
|
|
98
|
+
skipNodeModulesBundle: true,
|
|
99
|
+
})
|
|
65
100
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
...(separate && {
|
|
101
|
+
try {
|
|
102
|
+
await Promise.all([
|
|
103
|
+
buildTsc(),
|
|
104
|
+
...(skipJS
|
|
105
|
+
? []
|
|
106
|
+
: [
|
|
107
|
+
pkgMain
|
|
108
|
+
? esbuild
|
|
109
|
+
.build({
|
|
76
110
|
entryPoints: files,
|
|
77
111
|
outdir: 'dist/cjs',
|
|
78
112
|
bundle: false,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
})
|
|
137
|
-
: null,
|
|
138
|
-
]),
|
|
139
|
-
])
|
|
140
|
-
} catch (error) {
|
|
141
|
-
console.log('error', error)
|
|
142
|
-
} finally {
|
|
143
|
-
console.log('built in', `${(Date.now() - x) / 1000}s`)
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
if (watch) {
|
|
148
|
-
const path = require('path')
|
|
149
|
-
process.env.IS_WATCHING = true
|
|
150
|
-
process.env.DISABLE_AUTORUN = true
|
|
151
|
-
|
|
152
|
-
// TODO determine internal packages smarter
|
|
153
|
-
const deps = [
|
|
154
|
-
...new Set([...Object.keys(pkg.dependencies || {}), ...Object.keys(pkg.devDependencies || {})]),
|
|
155
|
-
]
|
|
156
|
-
.filter(Boolean)
|
|
157
|
-
.filter((x) => x.includes(`tamagui`))
|
|
158
|
-
|
|
159
|
-
const watchDirs = [
|
|
160
|
-
'src',
|
|
161
|
-
...deps.flatMap((d) => {
|
|
162
|
-
try {
|
|
163
|
-
return path.dirname(require.resolve(d))
|
|
164
|
-
} catch {
|
|
165
|
-
const potentialDir = path.join('..', d.replace('@tamagui/', '') + '/dist')
|
|
166
|
-
if (fs.existsSync(potentialDir)) {
|
|
167
|
-
return potentialDir
|
|
168
|
-
}
|
|
169
|
-
return []
|
|
170
|
-
}
|
|
171
|
-
}),
|
|
172
|
-
]
|
|
173
|
-
|
|
174
|
-
for (const dir of watchDirs) {
|
|
175
|
-
if (dir === 'src') {
|
|
176
|
-
build().then(() => watch())
|
|
177
|
-
} else {
|
|
178
|
-
watch()
|
|
113
|
+
sourcemap: true,
|
|
114
|
+
target: 'node14',
|
|
115
|
+
keepNames: true,
|
|
116
|
+
format: 'cjs',
|
|
117
|
+
color: true,
|
|
118
|
+
logLevel: 'error',
|
|
119
|
+
plugins: [externalPlugin],
|
|
120
|
+
minify: false,
|
|
121
|
+
platform: 'node',
|
|
122
|
+
})
|
|
123
|
+
.then(() => {
|
|
124
|
+
console.log(' >-> commonjs')
|
|
125
|
+
})
|
|
126
|
+
: null,
|
|
127
|
+
// dont bundle for tree shaking
|
|
128
|
+
pkgModule
|
|
129
|
+
? esbuild
|
|
130
|
+
.build({
|
|
131
|
+
entryPoints: files,
|
|
132
|
+
outdir: 'dist/esm',
|
|
133
|
+
sourcemap: true,
|
|
134
|
+
target: 'es2019',
|
|
135
|
+
keepNames: true,
|
|
136
|
+
format: 'esm',
|
|
137
|
+
color: true,
|
|
138
|
+
logLevel: 'error',
|
|
139
|
+
minify: false,
|
|
140
|
+
platform: 'neutral',
|
|
141
|
+
})
|
|
142
|
+
.then(() => {
|
|
143
|
+
console.log(' >-> esm')
|
|
144
|
+
})
|
|
145
|
+
: null,
|
|
146
|
+
esbuild
|
|
147
|
+
.build({
|
|
148
|
+
// only diff is jsx preserve and outdir
|
|
149
|
+
jsx: 'preserve',
|
|
150
|
+
outdir: 'dist/jsx',
|
|
151
|
+
entryPoints: files,
|
|
152
|
+
sourcemap: false,
|
|
153
|
+
target: 'es2019',
|
|
154
|
+
keepNames: true,
|
|
155
|
+
format: 'esm',
|
|
156
|
+
color: true,
|
|
157
|
+
logLevel: 'error',
|
|
158
|
+
minify: false,
|
|
159
|
+
platform: 'neutral',
|
|
160
|
+
})
|
|
161
|
+
.then(() => {
|
|
162
|
+
console.log(' >-> jsx')
|
|
163
|
+
}),
|
|
164
|
+
]),
|
|
165
|
+
])
|
|
166
|
+
} catch (error) {
|
|
167
|
+
console.log('error', error)
|
|
168
|
+
} finally {
|
|
169
|
+
console.log('built in', `${(Date.now() - x) / 1000}s`)
|
|
179
170
|
}
|
|
171
|
+
}
|
|
180
172
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
173
|
+
if (shouldWatch) {
|
|
174
|
+
const path = require('path')
|
|
175
|
+
process.env.IS_WATCHING = true
|
|
176
|
+
process.env.DISABLE_AUTORUN = true
|
|
177
|
+
build().then(() => {
|
|
178
|
+
const finish = (_, path, stats) => {
|
|
179
|
+
build()
|
|
189
180
|
}
|
|
190
|
-
|
|
191
181
|
const chokidar = require('chokidar')
|
|
192
182
|
chokidar
|
|
193
183
|
// prevent infinite loop but cause race condition if you just build directly
|
|
194
|
-
.watch(
|
|
184
|
+
.watch('src', {
|
|
195
185
|
persistent: true,
|
|
196
186
|
alwaysStat: true,
|
|
197
187
|
ignoreInitial: true,
|
|
198
188
|
})
|
|
199
189
|
.on('change', finish)
|
|
200
190
|
.on('add', finish)
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
if (deps.length) {
|
|
205
|
-
console.log(' ', pkg.name, '👀', deps.join(', '))
|
|
206
|
-
}
|
|
207
|
-
} else {
|
|
208
|
-
process.on('uncaughtException', console.log.bind(console))
|
|
209
|
-
process.on('unhandledRejection', console.log.bind(console))
|
|
210
|
-
build()
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
function debounce(callback, wait) {
|
|
214
|
-
let timer
|
|
215
|
-
return (...args) => {
|
|
216
|
-
clearTimeout(timer)
|
|
217
|
-
timer = setTimeout(() => callback(...args), wait)
|
|
191
|
+
})
|
|
192
|
+
} else {
|
|
193
|
+
build()
|
|
218
194
|
}
|
|
219
195
|
}
|
|
220
|
-
|
|
221
|
-
const ignoreSkipLibCheckOutputRNNodeConflicting = `../../node_modules/@types/node/globals.d.ts(47,11): error TS2300: Duplicate identifier 'AbortController'.
|
|
222
|
-
../../node_modules/@types/node/globals.d.ts(60,11): error TS2300: Duplicate identifier 'AbortSignal'.
|
|
223
|
-
../../node_modules/@types/node/globals.d.ts(67,13): error TS2300: Duplicate identifier 'AbortController'.
|
|
224
|
-
../../node_modules/@types/node/globals.d.ts(72,13): error TS2300: Duplicate identifier 'AbortSignal'.
|
|
225
|
-
../../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; }'.
|
|
226
|
-
../../node_modules/@types/react-native/globals.d.ts(65,15): error TS2300: Duplicate identifier 'FormData'.
|
|
227
|
-
../../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'.
|
|
228
|
-
../../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'.
|
|
229
|
-
../../node_modules/@types/react-native/globals.d.ts(149,14): error TS2300: Duplicate identifier 'RequestInfo'.
|
|
230
|
-
../../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; }'.
|
|
231
|
-
../../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>'.
|
|
232
|
-
../../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>'.
|
|
233
|
-
../../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>'.
|
|
234
|
-
../../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>'.
|
|
235
|
-
../../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>'.
|
|
236
|
-
../../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>'.
|
|
237
|
-
../../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>'.
|
|
238
|
-
../../node_modules/@types/react-native/globals.d.ts(292,14): error TS2300: Duplicate identifier 'XMLHttpRequestResponseType'.
|
|
239
|
-
../../node_modules/@types/react-native/globals.d.ts(299,15): error TS2300: Duplicate identifier 'URL'.
|
|
240
|
-
../../node_modules/@types/react-native/globals.d.ts(324,15): error TS2300: Duplicate identifier 'URLSearchParams'.
|
|
241
|
-
../../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'.
|
|
242
|
-
../../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'.
|
|
243
|
-
../../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'.
|
|
244
|
-
../../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'.
|
|
245
|
-
../../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'.
|
|
246
|
-
../../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'.
|
|
247
|
-
../../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; }'.
|
|
248
|
-
../../node_modules/@types/react-native/globals.d.ts(400,15): error TS2300: Duplicate identifier 'AbortSignal'.
|
|
249
|
-
../../node_modules/@types/react-native/globals.d.ts(400,15): error TS2420: Class 'AbortSignal' incorrectly implements interface 'EventTarget'.
|
|
250
|
-
Property 'dispatchEvent' is missing in type 'AbortSignal' but required in type 'EventTarget'.
|
|
251
|
-
../../node_modules/@types/react-native/globals.d.ts(435,15): error TS2300: Duplicate identifier 'AbortController'.
|
|
252
|
-
../../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'.
|
|
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'.
|
|
254
|
-
../../node_modules/@types/react-native/node_modules/@types/react/index.d.ts(3094,14): error TS2300: Duplicate identifier 'LibraryManagedAttributes'.
|
|
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 |`
|
package/tsconfig.json
ADDED
package/.ultra.cache.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"files":{"node_modules":"1637314740088.0405","externalNodePlugin.js":"fa1cd57f4fb8bc9a8c7ea03adaabc309b322ae0b","package.json":"3135852ae2f779e86bfbc8353bf548cbc6c374dc","tamagui-build.js":"05b9862d7b7019904cd3c34ec444b259cdc8d6aa"},"deps":{}}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020 Nate Wienert
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|