@tamagui/helpers-node 1.0.1-rc.5.1 → 1.0.1-rc.6

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.
@@ -34,9 +34,7 @@ async function getDefaultTamaguiConfigPath({
34
34
  const defaultPaths = ["tamagui.config.ts", (0, import_path.join)("src", "tamagui.config.ts")].map(
35
35
  (p) => (0, import_path.join)(cwd, p)
36
36
  );
37
- const existing = (await Promise.all(defaultPaths.map((path) => (0, import_fs_extra.pathExists)(path)))).findIndex(
38
- (x) => !!x
39
- );
37
+ const existing = (await Promise.all(defaultPaths.map((path) => (0, import_fs_extra.pathExists)(path)))).findIndex((x) => !!x);
40
38
  const found = defaultPaths[existing];
41
39
  if (!found) {
42
40
  throw new Error(`No found tamagui.config.ts`);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/getTamaguiDefaultPath.ts"],
4
- "sourcesContent": ["import { join } from 'path'\n\nimport { pathExists } from 'fs-extra'\n\nlet cachedPath = ''\n\nexport async function getDefaultTamaguiConfigPath({\n cwd = '.',\n cache = true,\n}: {\n cwd?: string\n // TODO this isn't passed down / could avoid\n cache?: boolean\n}) {\n if (cache && cachedPath) {\n return cachedPath\n }\n\n const defaultPaths = ['tamagui.config.ts', join('src', 'tamagui.config.ts')].map((p) =>\n join(cwd, p)\n )\n const existing = (await Promise.all(defaultPaths.map((path) => pathExists(path)))).findIndex(\n (x) => !!x\n )\n const found = defaultPaths[existing]\n if (!found) {\n throw new Error(`No found tamagui.config.ts`)\n }\n\n cachedPath = found\n return found\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAqB;AAErB,sBAA2B;AAE3B,IAAI,aAAa;AAEjB,eAAsB,4BAA4B;AAAA,EAChD,MAAM;AAAA,EACN,QAAQ;AACV,GAIG;AACD,MAAI,SAAS,YAAY;AACvB,WAAO;AAAA,EACT;AAEA,QAAM,eAAe,CAAC,yBAAqB,kBAAK,OAAO,mBAAmB,CAAC,EAAE;AAAA,IAAI,CAAC,UAChF,kBAAK,KAAK,CAAC;AAAA,EACb;AACA,QAAM,YAAY,MAAM,QAAQ,IAAI,aAAa,IAAI,CAAC,aAAS,4BAAW,IAAI,CAAC,CAAC,GAAG;AAAA,IACjF,CAAC,MAAM,CAAC,CAAC;AAAA,EACX;AACA,QAAM,QAAQ,aAAa;AAC3B,MAAI,CAAC,OAAO;AACV,UAAM,IAAI,MAAM,4BAA4B;AAAA,EAC9C;AAEA,eAAa;AACb,SAAO;AACT;",
4
+ "sourcesContent": ["import { join } from 'path'\n\nimport { pathExists } from 'fs-extra'\n\nlet cachedPath = ''\n\nexport async function getDefaultTamaguiConfigPath({\n cwd = '.',\n cache = true,\n}: {\n cwd?: string\n // TODO this isn't passed down / could avoid\n cache?: boolean\n}) {\n if (cache && cachedPath) {\n return cachedPath\n }\n\n const defaultPaths = ['tamagui.config.ts', join('src', 'tamagui.config.ts')].map(\n (p) => join(cwd, p),\n )\n const existing = (\n await Promise.all(defaultPaths.map((path) => pathExists(path)))\n ).findIndex((x) => !!x)\n const found = defaultPaths[existing]\n if (!found) {\n throw new Error(`No found tamagui.config.ts`)\n }\n\n cachedPath = found\n return found\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAqB;AAErB,sBAA2B;AAE3B,IAAI,aAAa;AAEjB,eAAsB,4BAA4B;AAAA,EAChD,MAAM;AAAA,EACN,QAAQ;AACV,GAIG;AACD,MAAI,SAAS,YAAY;AACvB,WAAO;AAAA,EACT;AAEA,QAAM,eAAe,CAAC,yBAAqB,kBAAK,OAAO,mBAAmB,CAAC,EAAE;AAAA,IAC3E,CAAC,UAAM,kBAAK,KAAK,CAAC;AAAA,EACpB;AACA,QAAM,YACJ,MAAM,QAAQ,IAAI,aAAa,IAAI,CAAC,aAAS,4BAAW,IAAI,CAAC,CAAC,GAC9D,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;AACtB,QAAM,QAAQ,aAAa;AAC3B,MAAI,CAAC,OAAO;AACV,UAAM,IAAI,MAAM,4BAA4B;AAAA,EAC9C;AAEA,eAAa;AACb,SAAO;AACT;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/helpers-node",
3
- "version": "1.0.1-rc.5.1",
3
+ "version": "1.0.1-rc.6",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "main": "./dist",
@@ -16,7 +16,7 @@
16
16
  "clean:build": "tamagui-build clean:build"
17
17
  },
18
18
  "devDependencies": {
19
- "@tamagui/build": "^1.0.1-rc.5.1",
19
+ "@tamagui/build": "^1.0.1-rc.6",
20
20
  "fs-extra": "^10.1.0"
21
21
  },
22
22
  "publishConfig": {
@@ -16,12 +16,12 @@ export async function getDefaultTamaguiConfigPath({
16
16
  return cachedPath
17
17
  }
18
18
 
19
- const defaultPaths = ['tamagui.config.ts', join('src', 'tamagui.config.ts')].map((p) =>
20
- join(cwd, p)
21
- )
22
- const existing = (await Promise.all(defaultPaths.map((path) => pathExists(path)))).findIndex(
23
- (x) => !!x
19
+ const defaultPaths = ['tamagui.config.ts', join('src', 'tamagui.config.ts')].map(
20
+ (p) => join(cwd, p),
24
21
  )
22
+ const existing = (
23
+ await Promise.all(defaultPaths.map((path) => pathExists(path)))
24
+ ).findIndex((x) => !!x)
25
25
  const found = defaultPaths[existing]
26
26
  if (!found) {
27
27
  throw new Error(`No found tamagui.config.ts`)