@tamagui/helpers-node 1.135.4-1761749240853 → 1.135.4

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.
@@ -1,41 +1,38 @@
1
1
  "use strict";
2
-
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
6
  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);
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
16
  var getDefaultTamaguiOptions_exports = {};
24
17
  __export(getDefaultTamaguiOptions_exports, {
25
18
  getDefaultTamaguiOptions: () => getDefaultTamaguiOptions
26
19
  });
27
20
  module.exports = __toCommonJS(getDefaultTamaguiOptions_exports);
28
- var import_getTamaguiDefaultPath = require("./getTamaguiDefaultPath.native.js");
21
+ var import_getTamaguiDefaultPath = require("./getTamaguiDefaultPath");
29
22
  async function getDefaultTamaguiOptions(param) {
30
- var {
31
- cwd = "."
32
- } = param;
23
+ var { cwd = "." } = param;
33
24
  return {
34
25
  platform: "native",
35
- components: ["tamagui"],
26
+ components: [
27
+ "tamagui"
28
+ ],
36
29
  config: await (0, import_getTamaguiDefaultPath.getDefaultTamaguiConfigPath)({
37
30
  cwd
38
31
  })
39
32
  };
40
33
  }
41
- //# sourceMappingURL=getDefaultTamaguiOptions.native.js.map
34
+ // Annotate the CommonJS export names for ESM import in node:
35
+ 0 && (module.exports = {
36
+ getDefaultTamaguiOptions
37
+ });
38
+ //# sourceMappingURL=getDefaultTamaguiOptions.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","getDefaultTamaguiOptions_exports","__export","getDefaultTamaguiOptions","module","exports","import_getTamaguiDefaultPath","require","param","cwd","platform","components","config","getDefaultTamaguiConfigPath"],"sources":["../src/getDefaultTamaguiOptions.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,gCAAA;AAAAC,QAAA,CAAAD,gCAAA;EAAAE,wBAAA,EAAAA,CAAA,KAAAA;AAAA;AAEAC,MAAA,CAAAC,OAAA,GAAAT,YAAA,CAAAK,gCAA4C;AAE5C,IAAAK,4BAAsB,GAAAC,OAAyB;AAAA,eACvCJ,yBAAAK,KAAA;EACR,IAE4B;IAAAC,GAAA;EAAA,IAAAD,KAAA;EAC1B,OAAO;IACLE,QAAA,EAAU;IACVC,UAAA,EAAY,CACZ,SAAQ,CACV;IACFC,MAAA,YAAAN,4BAAA,CAAAO,2BAAA","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/getDefaultTamaguiOptions.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mCAA4C;AAC5C,eAAsB,yBAAyB,OAAO;AAClD,MAAI,EAAE,MAAM,IAAI,IAAI;AACpB,SAAO;AAAA,IACH,UAAU;AAAA,IACV,YAAY;AAAA,MACR;AAAA,IACJ;AAAA,IACA,QAAQ,UAAM,0DAA4B;AAAA,MACtC;AAAA,IACJ,CAAC;AAAA,EACL;AACJ;",
5
+ "names": []
6
+ }
@@ -1,49 +1,44 @@
1
1
  "use strict";
2
-
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
6
  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);
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
16
  var getTamaguiDefaultPath_exports = {};
24
17
  __export(getTamaguiDefaultPath_exports, {
25
18
  getDefaultTamaguiConfigPath: () => getDefaultTamaguiConfigPath
26
19
  });
27
20
  module.exports = __toCommonJS(getTamaguiDefaultPath_exports);
28
- var import_path = require("path"),
29
- import_fs_extra = require("fs-extra"),
30
- cachedPath = "";
21
+ var import_node_path = require("node:path"), import_fs_extra = require("fs-extra"), cachedPath = "";
31
22
  async function getDefaultTamaguiConfigPath(param) {
32
- var {
33
- cwd = ".",
34
- cache = !0
35
- } = param;
36
- if (cache && cachedPath) return cachedPath;
37
- var defaultPaths = ["tamagui.config.ts", (0, import_path.join)("src", "tamagui.config.ts")].map(function (p) {
38
- return (0, import_path.join)(cwd, p);
39
- }),
40
- existing = (await Promise.all(defaultPaths.map(function (path) {
41
- return (0, import_fs_extra.pathExists)(path);
42
- }))).findIndex(function (x) {
43
- return !!x;
44
- }),
45
- found = defaultPaths[existing];
46
- if (!found) throw new Error("No found tamagui.config.ts");
23
+ var { cwd = ".", cache = !0 } = param;
24
+ if (cache && cachedPath)
25
+ return cachedPath;
26
+ var defaultPaths = [
27
+ "tamagui.config.ts",
28
+ (0, import_node_path.join)("src", "tamagui.config.ts")
29
+ ].map(function(p) {
30
+ return (0, import_node_path.join)(cwd, p);
31
+ }), existing = (await Promise.all(defaultPaths.map(function(path) {
32
+ return (0, import_fs_extra.pathExists)(path);
33
+ }))).findIndex(function(x) {
34
+ return !!x;
35
+ }), found = defaultPaths[existing];
36
+ if (!found)
37
+ throw new Error("No found tamagui.config.ts");
47
38
  return cachedPath = found, found;
48
39
  }
49
- //# sourceMappingURL=getTamaguiDefaultPath.native.js.map
40
+ // Annotate the CommonJS export names for ESM import in node:
41
+ 0 && (module.exports = {
42
+ getDefaultTamaguiConfigPath
43
+ });
44
+ //# sourceMappingURL=getTamaguiDefaultPath.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","getTamaguiDefaultPath_exports","__export","getDefaultTamaguiConfigPath","module","exports","import_path","require","import_fs_extra","cachedPath","param","cwd","cache","defaultPaths","join","map","p","existing","Promise","all","path","pathExists","findIndex","x"],"sources":["../src/getTamaguiDefaultPath.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;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tB,CAAC,GACG,YAAY,MAAM,QAAQ,IAAI,aAAa,IAAI,SAAS,MAAM;AAC9D,eAAO,4BAAW,IAAI;AAAA,EAC1B,CAAC,CAAC,GAAG,UAAU,SAAS,GAAG;AACvB,WAAO,CAAC,CAAC;AAAA,EACb,CAAC,GACG,QAAQ,aAAa,QAAQ;AACjC,MAAI,CAAC;AACD,UAAM,IAAI,MAAM,4BAA4B;AAEhD,sBAAa,OACN;AACX;",
5
+ "names": []
6
+ }
@@ -1,37 +1,32 @@
1
1
  "use strict";
2
-
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
6
  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);
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
16
  var getTamaguiOptions_exports = {};
24
17
  __export(getTamaguiOptions_exports, {
25
18
  getTamaguiOptions: () => getTamaguiOptions
26
19
  });
27
20
  module.exports = __toCommonJS(getTamaguiOptions_exports);
28
- var import_readTamaguiOptions = require("./readTamaguiOptions.native.js");
21
+ var import_readTamaguiOptions = require("./readTamaguiOptions");
29
22
  async function getTamaguiOptions(param) {
30
- var {
31
- cwd = "."
32
- } = param;
23
+ var { cwd = "." } = param;
33
24
  return (await (0, import_readTamaguiOptions.readTamaguiOptions)({
34
25
  cwd
35
26
  })).options;
36
27
  }
37
- //# sourceMappingURL=getTamaguiOptions.native.js.map
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
30
+ getTamaguiOptions
31
+ });
32
+ //# sourceMappingURL=getTamaguiOptions.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","getTamaguiOptions_exports","__export","getTamaguiOptions","module","exports","import_readTamaguiOptions","require","param","cwd","readTamaguiOptions"],"sources":["../src/getTamaguiOptions.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,yBAAA;AAAAC,QAAA,CAAAD,yBAAA;EAAAE,iBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAA,CAAAK,yBAAmC;AAEnC,IAAAK,yBAAsB,GAAAC,OAAkB;AAAA,eAChCJ,kBAAAK,KAAA;EACR,IAA6E;IAAAC,GAAA;EAAA,IAAAD,KAAA;EAC3E,QAAQ,UAAMF,yBAAA,CAAAI,kBAAA,EAAmB;IACnCD","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/getTamaguiOptions.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAmC;AACnC,eAAsB,kBAAkB,OAAO;AAC3C,MAAI,EAAE,MAAM,IAAI,IAAI;AACpB,UAAQ,UAAM,8CAAmB;AAAA,IAC7B;AAAA,EACJ,CAAC,GAAG;AACR;",
5
+ "names": []
6
+ }
@@ -1,23 +1,24 @@
1
1
  "use strict";
2
-
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
6
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
9
- get: () => from[key],
10
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
- });
12
- return to;
13
- },
14
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: !0
17
- }), mod);
7
+ if (from && typeof from == "object" || typeof from == "function")
8
+ for (let key of __getOwnPropNames(from))
9
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ return to;
11
+ }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
12
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
18
13
  var index_exports = {};
19
14
  module.exports = __toCommonJS(index_exports);
20
- __reExport(index_exports, require("./readTamaguiOptions.native.js"), module.exports);
21
- __reExport(index_exports, require("./getTamaguiDefaultPath.native.js"), module.exports);
22
- __reExport(index_exports, require("./getTamaguiOptions.native.js"), module.exports);
23
- //# sourceMappingURL=index.native.js.map
15
+ __reExport(index_exports, require("./readTamaguiOptions"), module.exports);
16
+ __reExport(index_exports, require("./getTamaguiDefaultPath"), module.exports);
17
+ __reExport(index_exports, require("./getTamaguiOptions"), module.exports);
18
+ // Annotate the CommonJS export names for ESM import in node:
19
+ 0 && (module.exports = {
20
+ ...require("./readTamaguiOptions"),
21
+ ...require("./getTamaguiDefaultPath"),
22
+ ...require("./getTamaguiOptions")
23
+ });
24
+ //# sourceMappingURL=index.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports","__reExport","require"],"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,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA;AACdG,UAAA,CAAAH,aAAA,EAAcI,OAAA,oCAAAH,MADd,CAAAC,OAAA;AAEAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,oCAFd,GAAAH,MAAA,CAAAC,OAAA","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts"],
4
+ "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,iCAAd;AACA,0BAAc,oCADd;AAEA,0BAAc,gCAFd;",
5
+ "names": []
6
+ }
@@ -1,53 +1,43 @@
1
1
  "use strict";
2
-
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
6
  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);
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
16
  var readTamaguiOptions_exports = {};
24
17
  __export(readTamaguiOptions_exports, {
25
18
  readTamaguiOptions: () => readTamaguiOptions
26
19
  });
27
20
  module.exports = __toCommonJS(readTamaguiOptions_exports);
28
- var import_path = require("path"),
29
- import_fs_extra = require("fs-extra"),
30
- import_getDefaultTamaguiOptions = require("./getDefaultTamaguiOptions.native.js");
21
+ var import_node_path = require("node:path"), import_fs_extra = require("fs-extra"), import_getDefaultTamaguiOptions = require("./getDefaultTamaguiOptions");
31
22
  async function readTamaguiOptions(param) {
32
- var {
33
- cwd = "."
34
- } = param,
35
- filePath = (0, import_path.join)(cwd, "tamagui.json");
36
- if (!(await (0, import_fs_extra.pathExists)(filePath))) return {
37
- exists: !1,
38
- options: await (0, import_getDefaultTamaguiOptions.getDefaultTamaguiOptions)({
39
- cwd
40
- })
41
- };
23
+ var { cwd = "." } = param, filePath = (0, import_node_path.join)(cwd, "tamagui.json");
24
+ if (!await (0, import_fs_extra.pathExists)(filePath))
25
+ return {
26
+ exists: !1,
27
+ options: await (0, import_getDefaultTamaguiOptions.getDefaultTamaguiOptions)({
28
+ cwd
29
+ })
30
+ };
42
31
  try {
43
32
  var options = await (0, import_fs_extra.readJSON)(filePath);
44
- if (!Array.isArray(options.components)) throw new Error("Invalid components: not string[]");
33
+ if (!Array.isArray(options.components))
34
+ throw new Error("Invalid components: not string[]");
45
35
  return {
46
36
  exists: !0,
47
37
  options: {
48
- ...(!options.config && (await (0, import_getDefaultTamaguiOptions.getDefaultTamaguiOptions)({
38
+ ...!options.config && await (0, import_getDefaultTamaguiOptions.getDefaultTamaguiOptions)({
49
39
  cwd
50
- }))),
40
+ }),
51
41
  ...options
52
42
  }
53
43
  };
@@ -60,4 +50,8 @@ async function readTamaguiOptions(param) {
60
50
  };
61
51
  }
62
52
  }
63
- //# sourceMappingURL=readTamaguiOptions.native.js.map
53
+ // Annotate the CommonJS export names for ESM import in node:
54
+ 0 && (module.exports = {
55
+ readTamaguiOptions
56
+ });
57
+ //# sourceMappingURL=readTamaguiOptions.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","readTamaguiOptions_exports","__export","readTamaguiOptions","module","exports","import_path","require","import_fs_extra","import_getDefaultTamaguiOptions","param","cwd","filePath","join","pathExists","exists","options","getDefaultTamaguiOptions","readJSON","Array","isArray","components","Error","config","err","console","error","message","stack"],"sources":["../src/readTamaguiOptions.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,0BAAA;AAAAC,QAAA,CAAAD,0BAAA;EAAAE,kBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAqB,CAAAK,0BAGrB;AAIA,IAAAK,WAAsB,GAAAC,OAAA;EAAmBC,eAGtC,GAAAD,OAAA;EAAAE,+BAAA,GAAAF,OAAA;AACD,eAAMJ,kBAAWA,CAAAO,KAAA;EAEjB,IAAI;MAAEC,GAAA;IAAM,IAAAD,KAAA;IAAAE,QAAA,OAAAN,WAAmB,CAAAO,IAAA,EAAAF,GAAA;EAC7B,YAAO,IAAAH,eAAA,CAAAM,UAAA,EAAAF,QAAA,WACL;IACAG,MAAA,GAAS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K,EAAE,GAChE;AAAA,MACH,QAAQ;AAAA,MACR,SAAS,UAAM,0DAAyB;AAAA,QACpC;AAAA,MACJ,CAAC;AAAA,IACL;AAAA,EACJ;AACJ;",
5
+ "names": []
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/helpers-node",
3
- "version": "1.135.4-1761749240853",
3
+ "version": "1.135.4",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "main": "./dist",
@@ -16,10 +16,10 @@
16
16
  "clean:build": "tamagui-build clean:build"
17
17
  },
18
18
  "dependencies": {
19
- "@tamagui/types": "1.135.4-1761749240853"
19
+ "@tamagui/types": "1.135.4"
20
20
  },
21
21
  "devDependencies": {
22
- "@tamagui/build": "1.135.4-1761749240853",
22
+ "@tamagui/build": "1.135.4",
23
23
  "fs-extra": "^11.2.0"
24
24
  },
25
25
  "publishConfig": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "mappings": "AAAA,cAAc,sBAAsB;AAIpC,OAAO,iBAAe,yBAAyB,EAC7C,OACC;CACD;IACE,QAAQ",
2
+ "mappings": "AAAA,cAAc,sBAAsB,gBAAgB;AAIpD,OAAO,iBAAe,yBAAyB,EAC7C,KAGD,EAFE;CACD;AACD,IAAG,QAAQ",
3
3
  "names": [],
4
4
  "sources": [
5
5
  "src/getDefaultTamaguiOptions.ts"
@@ -1,5 +1,6 @@
1
1
  export declare function getDefaultTamaguiConfigPath({ cwd, cache }: {
2
2
  cwd?: string;
3
+ // TODO this isn't passed down / could avoid
3
4
  cache?: boolean;
4
5
  }): Promise<string>;
5
6
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "mappings": "AAMA,OAAO,iBAAe,4BAA4B,EAChD,KACA,SACC;CACD;CAEA;IACE",
2
+ "mappings": "AAMA,OAAO,iBAAe,4BAA4B,EAChD,KACA,OAKD,EAJE;CACD;;CAEA;AACD,IAAG",
3
3
  "names": [],
4
4
  "sources": [
5
5
  "src/getTamaguiDefaultPath.ts"
@@ -1,5 +1,5 @@
1
1
  {
2
- "mappings": "AAEA,OAAO,iBAAe,kBAAkB,EACtC,OACC;CAAE;IAAiB,eAAe",
2
+ "mappings": "AAEA,OAAO,iBAAe,kBAAkB,EACtC,KACiB,EAAhB;CAAE;AAAc,IAAG,eAAe,wBAAwB",
3
3
  "names": [],
4
4
  "sources": [
5
5
  "src/getTamaguiOptions.ts"
@@ -1,5 +1,5 @@
1
1
  {
2
- "mappings": "AAEA,cAAc,sBAAsB;AAKpC,OAAO,iBAAe,mBAAmB,EAAE,OAAa;CAAE;IAAgB,QAAQ;CAChF;CACA,SAAS",
2
+ "mappings": "AAEA,cAAc,sBAAsB,gBAAgB;AAKpD,OAAO,iBAAe,mBAAmB,EAAE,KAA4B,EAAf;CAAE;AAAa,IAAG,QAAQ;CAChF;CACA,SAAS;AACV",
3
3
  "names": [],
4
4
  "sources": [
5
5
  "src/readTamaguiOptions.ts"