@stryke/prisma-better-auth-generator 0.12.2 → 0.13.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/dist/generator.js CHANGED
@@ -6,9 +6,9 @@ var __esm = (fn, res) => function __init() {
6
6
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
7
7
  };
8
8
 
9
- // ../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.52.1_@types+node@22.13.10__@swc+core@1.11.9_@swc+_3224746ec47d1b8fe4ee6bf9861e331d/node_modules/tsup/assets/esm_shims.js
9
+ // ../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.52.8_@types+node@22.15.30__@swc+core@1.11.9_@swc+_1a2de6809bc5b79e36a8d4bf1aad64d8/node_modules/tsup/assets/esm_shims.js
10
10
  var init_esm_shims = __esm({
11
- "../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.52.1_@types+node@22.13.10__@swc+core@1.11.9_@swc+_3224746ec47d1b8fe4ee6bf9861e331d/node_modules/tsup/assets/esm_shims.js"() {
11
+ "../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.52.8_@types+node@22.15.30__@swc+core@1.11.9_@swc+_1a2de6809bc5b79e36a8d4bf1aad64d8/node_modules/tsup/assets/esm_shims.js"() {
12
12
  "use strict";
13
13
  }
14
14
  });
@@ -4498,46 +4498,200 @@ init_esm_shims();
4498
4498
  // ../string-format/src/acronyms.ts
4499
4499
  init_esm_shims();
4500
4500
  var ACRONYMS = [
4501
+ "3D",
4502
+ "4D",
4503
+ "5G",
4504
+ "6G",
4505
+ "7G",
4506
+ "8G",
4507
+ "ACID",
4508
+ "AES",
4509
+ "AI",
4510
+ "AJAX",
4501
4511
  "API",
4512
+ "AR",
4513
+ "ASCII",
4514
+ "B2B",
4515
+ "B2C",
4516
+ "BFF",
4517
+ "BI",
4518
+ "BIOS",
4519
+ "BGP",
4520
+ "BOM",
4521
+ "BYOD",
4522
+ "C2C",
4523
+ "CAGR",
4524
+ "CAPTCHA",
4525
+ "CD",
4526
+ "CDN",
4527
+ "CDP",
4528
+ "CI",
4529
+ "CI/CD",
4530
+ "CIAM",
4531
+ "CICD",
4532
+ "CLI",
4533
+ "CMDB",
4534
+ "CORS",
4502
4535
  "CPU",
4536
+ "CRUD",
4537
+ "CSR",
4503
4538
  "CSS",
4539
+ "CX",
4540
+ "DAG",
4541
+ "DBMS",
4542
+ "DDoS",
4504
4543
  "DNS",
4544
+ "DNSSEC",
4545
+ "DOM",
4546
+ "DR",
4547
+ "DRM",
4548
+ "DWH",
4549
+ "E2E",
4550
+ "EAI",
4551
+ "EKS",
4505
4552
  "EOF",
4553
+ "EOD",
4554
+ "ETC",
4555
+ "ETL",
4556
+ "EULA",
4557
+ "FIDO",
4558
+ "FQDN",
4559
+ "FTP",
4560
+ "FaaS",
4561
+ "GDPR",
4562
+ "GCP",
4563
+ "GPU",
4506
4564
  "GUID",
4565
+ "GUI",
4566
+ "GZIP",
4567
+ "HCI",
4568
+ "HDD",
4569
+ "HDFS",
4570
+ "HIPAA",
4571
+ "HMAC",
4572
+ "HOTP",
4573
+ "HSM",
4507
4574
  "HTML",
4508
4575
  "HTTP",
4576
+ "HTTP/2",
4577
+ "HTTP/2.0",
4578
+ "HTTP/3",
4579
+ "HTTP/3.0",
4580
+ "HTTP2",
4509
4581
  "HTTPS",
4582
+ "HTTPS/2",
4583
+ "HTTPS/3",
4584
+ "HTTPS3",
4585
+ "IAM",
4586
+ "IAMM",
4587
+ "IAMT",
4588
+ "IaaS",
4510
4589
  "ID",
4590
+ "IMAP",
4511
4591
  "IP",
4592
+ "IPFS",
4593
+ "IoT",
4512
4594
  "JSON",
4595
+ "JSONP",
4596
+ "JWT",
4597
+ "K8s",
4598
+ "KMS",
4599
+ "KPI",
4600
+ "LAN",
4513
4601
  "LHS",
4602
+ "LXC",
4603
+ "MFA",
4604
+ "ML",
4605
+ "MLOps",
4606
+ "MVC",
4607
+ "MVP",
4608
+ "NAS",
4609
+ "NAT",
4610
+ "NDA",
4611
+ "NFS",
4612
+ "NIST",
4613
+ "NLP",
4614
+ "NPS",
4615
+ "OCR",
4514
4616
  "OEM",
4617
+ "OKR",
4618
+ "OLAP",
4619
+ "OLTP",
4620
+ "OOP",
4621
+ "ORM",
4622
+ "OS",
4623
+ "OTP",
4624
+ "P2P",
4625
+ "PDP",
4626
+ "PaaS",
4627
+ "PCI",
4628
+ "PKI",
4515
4629
  "PP",
4630
+ "PWA",
4631
+ "PX",
4516
4632
  "QA",
4633
+ "RAID",
4517
4634
  "RAM",
4635
+ "RDS",
4636
+ "REST",
4518
4637
  "RHS",
4519
4638
  "RPC",
4639
+ "RPA",
4640
+ "RUM",
4520
4641
  "RSS",
4642
+ "SAN",
4643
+ "SASE",
4644
+ "SDLC",
4645
+ "SDK",
4646
+ "SEO",
4647
+ "SFTP",
4648
+ "SIEM",
4521
4649
  "SLA",
4650
+ "SMB",
4522
4651
  "SMTP",
4652
+ "SOAP",
4653
+ "SOC",
4654
+ "SOA",
4655
+ "SPDY",
4656
+ "SPF",
4523
4657
  "SQL",
4658
+ "SRV",
4659
+ "SRE",
4524
4660
  "SSH",
4661
+ "SSDL",
4662
+ "SSO",
4525
4663
  "SSL",
4526
- "TCP",
4664
+ "SSR",
4665
+ "TDD",
4666
+ "TLD",
4527
4667
  "TLS",
4668
+ "TLS1.3",
4669
+ "TOTP",
4528
4670
  "TRPC",
4529
4671
  "TTL",
4530
4672
  "UDP",
4531
4673
  "UI",
4532
4674
  "UID",
4533
- "UUID",
4534
4675
  "URI",
4535
4676
  "URL",
4536
4677
  "UTF",
4678
+ "UUID",
4679
+ "UX",
4537
4680
  "VM",
4681
+ "VLAN",
4682
+ "VPN",
4683
+ "VR",
4684
+ "WAF",
4685
+ "WAN",
4686
+ "WLAN",
4687
+ "WPA",
4688
+ "XACML",
4538
4689
  "XML",
4690
+ "XSRF",
4539
4691
  "XSS",
4540
- "XSRF"
4692
+ "XR",
4693
+ "YAML",
4694
+ "ZTA"
4541
4695
  ];
4542
4696
 
4543
4697
  // ../string-format/src/upper-case-first.ts
@@ -4552,20 +4706,16 @@ function titleCase(input) {
4552
4706
  if (!input) {
4553
4707
  return input;
4554
4708
  }
4555
- return input.split(/(?=[A-Z])|[\s._-]/).map((s) => s.trim()).filter(Boolean).map((s) => ACRONYMS.includes(s) ? s.toUpperCase() : upperCaseFirst(s.toLowerCase())).join(" ");
4709
+ const formatSegment = /* @__PURE__ */ __name((segment) => segment.toLowerCase().split(/[\s\-_]+/).filter(Boolean).map((word) => {
4710
+ if (ACRONYMS.includes(word.toUpperCase())) {
4711
+ return word.toUpperCase();
4712
+ }
4713
+ return `${upperCaseFirst(word.toLowerCase())}`;
4714
+ }).join(" "), "formatSegment");
4715
+ return input.split(/\s+-\s+/).map((part) => formatSegment(part)).join(" - ");
4556
4716
  }
4557
4717
  __name(titleCase, "titleCase");
4558
4718
 
4559
- // ../type-checks/src/is-string.ts
4560
- init_esm_shims();
4561
- var isString = /* @__PURE__ */ __name((value) => {
4562
- try {
4563
- return typeof value === "string";
4564
- } catch {
4565
- return false;
4566
- }
4567
- }, "isString");
4568
-
4569
4719
  // ../env/src/get-env-paths.ts
4570
4720
  import os from "node:os";
4571
4721
  import path from "node:path";
@@ -4602,7 +4752,8 @@ var linux = /* @__PURE__ */ __name((orgId) => {
4602
4752
  cache: joinPaths(process.env.XDG_CACHE_HOME || joinPaths(homedir, ".cache"), orgId),
4603
4753
  // https://wiki.debian.org/XDGBaseDirectorySpecification#state
4604
4754
  log: joinPaths(process.env.XDG_STATE_HOME || joinPaths(homedir, ".local", "state"), orgId),
4605
- temp: joinPaths(tmpdir, username, orgId)
4755
+ // https://devenv.sh/files-and-variables/#devenv_root
4756
+ temp: process.env.DEVENV_RUNTIME || process.env.XDG_RUNTIME_DIR ? joinPaths(process.env.DEVENV_RUNTIME || process.env.XDG_RUNTIME_DIR, orgId) : joinPaths(tmpdir, username, orgId)
4606
4757
  };
4607
4758
  }, "linux");
4608
4759
  function getEnvPaths(options = {}) {
@@ -4611,7 +4762,7 @@ function getEnvPaths(options = {}) {
4611
4762
  throw new Error("You need to provide an orgId to the `getEnvPaths` function");
4612
4763
  }
4613
4764
  if (options.suffix) {
4614
- orgId += `-${isString(options.suffix) ? options.suffix : "nodejs"}`;
4765
+ orgId += `-${typeof options.suffix === "string" ? options.suffix : "nodejs"}`;
4615
4766
  }
4616
4767
  let result = {};
4617
4768
  if (process.platform === "darwin") {
@@ -4621,16 +4772,16 @@ function getEnvPaths(options = {}) {
4621
4772
  } else {
4622
4773
  result = linux(orgId);
4623
4774
  }
4624
- if (process.env.STORM_DATA_DIRECTORY) {
4625
- result.data = process.env.STORM_DATA_DIRECTORY;
4626
- } else if (process.env.STORM_CONFIG_DIRECTORY) {
4627
- result.config = process.env.STORM_CONFIG_DIRECTORY;
4628
- } else if (process.env.STORM_CACHE_DIRECTORY) {
4629
- result.cache = process.env.STORM_CACHE_DIRECTORY;
4630
- } else if (process.env.STORM_LOG_DIRECTORY) {
4631
- result.log = process.env.STORM_LOG_DIRECTORY;
4632
- } else if (process.env.STORM_TEMP_DIRECTORY) {
4633
- result.temp = process.env.STORM_TEMP_DIRECTORY;
4775
+ if (process.env.STORM_DATA_DIR) {
4776
+ result.data = process.env.STORM_DATA_DIR;
4777
+ } else if (process.env.STORM_CONFIG_DIR) {
4778
+ result.config = process.env.STORM_CONFIG_DIR;
4779
+ } else if (process.env.STORM_CACHE_DIR) {
4780
+ result.cache = process.env.STORM_CACHE_DIR;
4781
+ } else if (process.env.STORM_LOG_DIR) {
4782
+ result.log = process.env.STORM_LOG_DIR;
4783
+ } else if (process.env.STORM_TEMP_DIR) {
4784
+ result.temp = process.env.STORM_TEMP_DIR;
4634
4785
  }
4635
4786
  if (options.workspaceRoot) {
4636
4787
  result.cache ??= joinPaths(options.workspaceRoot, "node_modules", ".cache", orgId);
@@ -4654,24 +4805,14 @@ __name(getEnvPaths, "getEnvPaths");
4654
4805
  // ../path/src/get-workspace-root.ts
4655
4806
  init_esm_shims();
4656
4807
 
4657
- // ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/index.js
4658
- init_esm_shims();
4659
-
4660
- // ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-K6PUXRK3.js
4808
+ // ../../node_modules/.pnpm/@storm-software+config-tools@1.173.0/node_modules/@storm-software/config-tools/dist/index.js
4661
4809
  init_esm_shims();
4662
4810
 
4663
- // ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-NQFXB5CV.js
4811
+ // ../../node_modules/.pnpm/@storm-software+config-tools@1.173.0/node_modules/@storm-software/config-tools/dist/chunk-VLWSWYG7.js
4664
4812
  init_esm_shims();
4665
4813
 
4666
- // ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-SHUYVCID.js
4814
+ // ../../node_modules/.pnpm/@storm-software+config-tools@1.173.0/node_modules/@storm-software/config-tools/dist/chunk-RWBPUJIZ.js
4667
4815
  init_esm_shims();
4668
- var __defProp2 = Object.defineProperty;
4669
- var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", {
4670
- value,
4671
- configurable: true
4672
- }), "__name");
4673
-
4674
- // ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-NQFXB5CV.js
4675
4816
  import { existsSync as existsSync2 } from "node:fs";
4676
4817
  import { join } from "node:path";
4677
4818
  var MAX_PATH_SEARCH_DEPTH = 30;
@@ -4691,9 +4832,8 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
4691
4832
  return void 0;
4692
4833
  }
4693
4834
  __name(findFolderUp, "findFolderUp");
4694
- __name2(findFolderUp, "findFolderUp");
4695
4835
 
4696
- // ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-D6E6GZD2.js
4836
+ // ../../node_modules/.pnpm/@storm-software+config-tools@1.173.0/node_modules/@storm-software/config-tools/dist/chunk-FRR2ZRWD.js
4697
4837
  init_esm_shims();
4698
4838
  var _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
4699
4839
  function normalizeWindowsPath2(input = "") {
@@ -4703,11 +4843,10 @@ function normalizeWindowsPath2(input = "") {
4703
4843
  return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE2, (r) => r.toUpperCase());
4704
4844
  }
4705
4845
  __name(normalizeWindowsPath2, "normalizeWindowsPath");
4706
- __name2(normalizeWindowsPath2, "normalizeWindowsPath");
4707
4846
  var _UNC_REGEX2 = /^[/\\]{2}/;
4708
4847
  var _IS_ABSOLUTE_RE2 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
4709
4848
  var _DRIVE_LETTER_RE2 = /^[A-Za-z]:$/;
4710
- var correctPaths2 = /* @__PURE__ */ __name2(function(path2) {
4849
+ var correctPaths2 = /* @__PURE__ */ __name(function(path2) {
4711
4850
  if (!path2 || path2.length === 0) {
4712
4851
  return ".";
4713
4852
  }
@@ -4736,14 +4875,6 @@ var correctPaths2 = /* @__PURE__ */ __name2(function(path2) {
4736
4875
  }
4737
4876
  return isPathAbsolute && !isAbsolute2(path2) ? `/${path2}` : path2;
4738
4877
  }, "correctPaths");
4739
- function cwd() {
4740
- if (typeof process !== "undefined" && typeof process.cwd === "function") {
4741
- return process.cwd().replace(/\\/g, "/");
4742
- }
4743
- return "/";
4744
- }
4745
- __name(cwd, "cwd");
4746
- __name2(cwd, "cwd");
4747
4878
  function normalizeString2(path2, allowAboveRoot) {
4748
4879
  let res = "";
4749
4880
  let lastSegmentLength = 0;
@@ -4805,12 +4936,11 @@ function normalizeString2(path2, allowAboveRoot) {
4805
4936
  return res;
4806
4937
  }
4807
4938
  __name(normalizeString2, "normalizeString");
4808
- __name2(normalizeString2, "normalizeString");
4809
- var isAbsolute2 = /* @__PURE__ */ __name2(function(p) {
4939
+ var isAbsolute2 = /* @__PURE__ */ __name(function(p) {
4810
4940
  return _IS_ABSOLUTE_RE2.test(p);
4811
4941
  }, "isAbsolute");
4812
4942
 
4813
- // ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-K6PUXRK3.js
4943
+ // ../../node_modules/.pnpm/@storm-software+config-tools@1.173.0/node_modules/@storm-software/config-tools/dist/chunk-VLWSWYG7.js
4814
4944
  var rootFiles = [
4815
4945
  "storm-workspace.json",
4816
4946
  "storm-workspace.json",
@@ -4860,35 +4990,21 @@ function findWorkspaceRootSafe(pathInsideMonorepo) {
4860
4990
  return correctPaths2(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles, rootDirectories));
4861
4991
  }
4862
4992
  __name(findWorkspaceRootSafe, "findWorkspaceRootSafe");
4863
- __name2(findWorkspaceRootSafe, "findWorkspaceRootSafe");
4864
- function findWorkspaceRoot(pathInsideMonorepo) {
4865
- const result = findWorkspaceRootSafe(pathInsideMonorepo);
4866
- if (!result) {
4867
- throw new Error(`Cannot find workspace root upwards from known path. Files search list includes:
4868
- ${rootFiles.join("\n")}
4869
- Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`);
4870
- }
4871
- return result;
4872
- }
4873
- __name(findWorkspaceRoot, "findWorkspaceRoot");
4874
- __name2(findWorkspaceRoot, "findWorkspaceRoot");
4875
4993
 
4876
4994
  // ../path/src/get-parent-path.ts
4877
4995
  init_esm_shims();
4878
4996
 
4879
- // ../path/src/file-path-fns.ts
4997
+ // ../path/src/is-file.ts
4880
4998
  init_esm_shims();
4999
+ import { lstatSync, statSync } from "node:fs";
4881
5000
 
4882
- // ../types/src/base.ts
5001
+ // ../path/src/regex.ts
4883
5002
  init_esm_shims();
4884
- var $NestedValue = Symbol("NestedValue");
4885
5003
 
4886
- // ../path/src/correct-path.ts
5004
+ // ../path/src/slash.ts
4887
5005
  init_esm_shims();
4888
5006
 
4889
5007
  // ../path/src/is-file.ts
4890
- init_esm_shims();
4891
- import { lstatSync, statSync } from "node:fs";
4892
5008
  function isFile(path2, additionalPath) {
4893
5009
  return Boolean(statSync(additionalPath ? joinPaths(additionalPath, path2) : path2, {
4894
5010
  throwIfNoEntry: false
@@ -4901,118 +5017,22 @@ function isDirectory(path2, additionalPath) {
4901
5017
  })?.isDirectory());
4902
5018
  }
4903
5019
  __name(isDirectory, "isDirectory");
4904
- function isAbsolutePath(path2) {
4905
- return !/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i.test(path2);
4906
- }
4907
- __name(isAbsolutePath, "isAbsolutePath");
4908
-
4909
- // ../path/src/correct-path.ts
4910
- var _DRIVE_LETTER_START_RE3 = /^[A-Z]:\//i;
4911
- function normalizeWindowsPath3(input = "") {
4912
- if (!input) {
4913
- return input;
4914
- }
4915
- return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE3, (r) => r.toUpperCase());
4916
- }
4917
- __name(normalizeWindowsPath3, "normalizeWindowsPath");
4918
- function normalizeString3(path2, allowAboveRoot) {
4919
- let res = "";
4920
- let lastSegmentLength = 0;
4921
- let lastSlash = -1;
4922
- let dots = 0;
4923
- let char = null;
4924
- for (let index = 0; index <= path2.length; ++index) {
4925
- if (index < path2.length) {
4926
- char = path2[index];
4927
- } else if (char === "/") {
4928
- break;
4929
- } else {
4930
- char = "/";
4931
- }
4932
- if (char === "/") {
4933
- if (lastSlash === index - 1 || dots === 1) {
4934
- } else if (dots === 2) {
4935
- if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
4936
- if (res.length > 2) {
4937
- const lastSlashIndex = res.lastIndexOf("/");
4938
- if (lastSlashIndex === -1) {
4939
- res = "";
4940
- lastSegmentLength = 0;
4941
- } else {
4942
- res = res.slice(0, lastSlashIndex);
4943
- lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
4944
- }
4945
- lastSlash = index;
4946
- dots = 0;
4947
- continue;
4948
- } else if (res.length > 0) {
4949
- res = "";
4950
- lastSegmentLength = 0;
4951
- lastSlash = index;
4952
- dots = 0;
4953
- continue;
4954
- }
4955
- }
4956
- if (allowAboveRoot) {
4957
- res += res.length > 0 ? "/.." : "..";
4958
- lastSegmentLength = 2;
4959
- }
4960
- } else {
4961
- if (res.length > 0) {
4962
- res += `/${path2.slice(lastSlash + 1, index)}`;
4963
- } else {
4964
- res = path2.slice(lastSlash + 1, index);
4965
- }
4966
- lastSegmentLength = index - lastSlash - 1;
4967
- }
4968
- lastSlash = index;
4969
- dots = 0;
4970
- } else if (char === "." && dots !== -1) {
4971
- ++dots;
4972
- } else {
4973
- dots = -1;
4974
- }
4975
- }
4976
- return res;
4977
- }
4978
- __name(normalizeString3, "normalizeString");
4979
-
4980
- // ../path/src/file-path-fns.ts
4981
- function resolvePath(path2, cwd2 = getWorkspaceRoot()) {
4982
- const paths = normalizeWindowsPath3(path2).split("/");
4983
- let resolvedPath = "";
4984
- let resolvedAbsolute = false;
4985
- for (let index = paths.length - 1; index >= -1 && !resolvedAbsolute; index--) {
4986
- const path3 = index >= 0 ? paths[index] : cwd2;
4987
- if (!path3 || path3.length === 0) {
4988
- continue;
4989
- }
4990
- resolvedPath = joinPaths(path3, resolvedPath);
4991
- resolvedAbsolute = isAbsolutePath(path3);
4992
- }
4993
- resolvedPath = normalizeString3(resolvedPath, !resolvedAbsolute);
4994
- if (resolvedAbsolute && !isAbsolutePath(resolvedPath)) {
4995
- return `/${resolvedPath}`;
4996
- }
4997
- return resolvedPath.length > 0 ? resolvedPath : ".";
4998
- }
4999
- __name(resolvePath, "resolvePath");
5000
- function resolvePaths(...paths) {
5001
- return resolvePath(joinPaths(...paths.map((path2) => normalizeWindowsPath3(path2))));
5002
- }
5003
- __name(resolvePaths, "resolvePaths");
5004
5020
 
5005
5021
  // ../path/src/get-parent-path.ts
5006
- var resolveParentPath = /* @__PURE__ */ __name((path2) => {
5007
- return resolvePaths(path2, "..");
5022
+ var resolveParentPath = /* @__PURE__ */ __name((path2, count = 1) => {
5023
+ let parentPath = path2.replaceAll(/\/+$/g, "");
5024
+ for (let i = 0; i < count; i++) {
5025
+ parentPath = joinPaths(parentPath, "..");
5026
+ }
5027
+ return parentPath;
5008
5028
  }, "resolveParentPath");
5009
- var getParentPath = /* @__PURE__ */ __name((name, cwd2, options) => {
5029
+ var getParentPath = /* @__PURE__ */ __name((name, cwd, options) => {
5010
5030
  const ignoreCase = options?.ignoreCase ?? true;
5011
5031
  const skipCwd = options?.skipCwd ?? false;
5012
5032
  const targetType = options?.targetType ?? "both";
5013
- let dir = cwd2;
5033
+ let dir = cwd;
5014
5034
  if (skipCwd) {
5015
- dir = resolveParentPath(cwd2);
5035
+ dir = resolveParentPath(cwd);
5016
5036
  }
5017
5037
  let names = Array.isArray(name) ? name : [
5018
5038
  name