@tamagui/constants 1.15.16 → 1.15.18
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/package.json +2 -2
- package/src/index.ts +6 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/constants",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.18",
|
|
4
4
|
"types": "./types/index.d.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"clean:build": "tamagui-build clean:build"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@tamagui/build": "1.15.
|
|
21
|
+
"@tamagui/build": "1.15.18",
|
|
22
22
|
"react": "^18.2.0"
|
|
23
23
|
},
|
|
24
24
|
"exports": {
|
package/src/index.ts
CHANGED
|
@@ -31,11 +31,13 @@ export const isWebTouchable =
|
|
|
31
31
|
|
|
32
32
|
export const isTouchable = !isWeb || isWebTouchable
|
|
33
33
|
|
|
34
|
+
if (!process.env.TAMAGUI_TARGET) {
|
|
35
|
+
// eslint-disable-next-line no-console
|
|
36
|
+
console.warn(`⚠️ Must set TAMAGUI_TARGET`)
|
|
37
|
+
}
|
|
38
|
+
|
|
34
39
|
if (process.env.NODE_ENV === 'development') {
|
|
35
|
-
if (
|
|
36
|
-
// eslint-disable-next-line no-console
|
|
37
|
-
console.warn(`Must set TAMAGUI_TARGET to "web" or "native"`)
|
|
38
|
-
} else if (
|
|
40
|
+
if (
|
|
39
41
|
isClient &&
|
|
40
42
|
process.env.TAMAGUI_TARGET !== 'web' &&
|
|
41
43
|
process.env.TAMAGUI_IGNORE_TARGET !== '1'
|