@stryke/fs 0.33.9 → 0.33.16

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.
Files changed (310) hide show
  1. package/CHANGELOG.md +1280 -0
  2. package/README.md +18 -9
  3. package/dist/buffer-Ch164vki.cjs +1 -0
  4. package/dist/buffer-DDq-CW4J.mjs +2 -0
  5. package/dist/buffer-DDq-CW4J.mjs.map +1 -0
  6. package/dist/{buffer.d.ts → buffer-DgfUmhrc.d.mts} +8 -4
  7. package/dist/buffer-DgfUmhrc.d.mts.map +1 -0
  8. package/dist/buffer-DvCjrjQH.d.cts +32 -0
  9. package/dist/buffer-DvCjrjQH.d.cts.map +1 -0
  10. package/dist/buffer.cjs +1 -34
  11. package/dist/buffer.d.cts +2 -0
  12. package/dist/buffer.d.mts +2 -0
  13. package/dist/buffer.mjs +1 -1
  14. package/dist/{chmod-x.d.ts → chmod-x-BPr4tt2-.d.cts} +10 -6
  15. package/dist/chmod-x-BPr4tt2-.d.cts.map +1 -0
  16. package/dist/chmod-x-FOy3sak8.cjs +1 -0
  17. package/dist/chmod-x-QCk1GmQJ.d.mts +44 -0
  18. package/dist/chmod-x-QCk1GmQJ.d.mts.map +1 -0
  19. package/dist/chmod-x-q-TWdus7.mjs +2 -0
  20. package/dist/chmod-x-q-TWdus7.mjs.map +1 -0
  21. package/dist/chmod-x.cjs +1 -57
  22. package/dist/chmod-x.d.cts +2 -0
  23. package/dist/chmod-x.d.mts +2 -0
  24. package/dist/chmod-x.mjs +1 -1
  25. package/dist/chunk-Bmb41Sf3.cjs +1 -0
  26. package/dist/{command-exists.d.ts → command-exists-CuieR7rx.d.cts} +6 -2
  27. package/dist/command-exists-CuieR7rx.d.cts.map +1 -0
  28. package/dist/command-exists-D1bV-wSk.cjs +1 -0
  29. package/dist/command-exists-Dzb2kKT4.mjs +2 -0
  30. package/dist/command-exists-Dzb2kKT4.mjs.map +1 -0
  31. package/dist/command-exists-dBdtR0xj.d.mts +22 -0
  32. package/dist/command-exists-dBdtR0xj.d.mts.map +1 -0
  33. package/dist/command-exists.cjs +1 -71
  34. package/dist/command-exists.d.cts +2 -0
  35. package/dist/command-exists.d.mts +2 -0
  36. package/dist/command-exists.mjs +1 -1
  37. package/dist/compress-BiTxso15.mjs +2 -0
  38. package/dist/compress-BiTxso15.mjs.map +1 -0
  39. package/dist/compress-BjGbQqs_.cjs +1 -0
  40. package/dist/compress-CLAaOwH3.d.mts +16 -0
  41. package/dist/compress-CLAaOwH3.d.mts.map +1 -0
  42. package/dist/compress-CQve2a6h.d.cts +16 -0
  43. package/dist/compress-CQve2a6h.d.cts.map +1 -0
  44. package/dist/compress.cjs +1 -26
  45. package/dist/compress.d.cts +2 -0
  46. package/dist/compress.d.mts +2 -0
  47. package/dist/compress.mjs +1 -1
  48. package/dist/constants-D58o2CiO.d.cts +5 -0
  49. package/dist/constants-D58o2CiO.d.cts.map +1 -0
  50. package/dist/constants-DZz9LJgo.d.mts +5 -0
  51. package/dist/constants-DZz9LJgo.d.mts.map +1 -0
  52. package/dist/constants.cjs +0 -1
  53. package/dist/constants.d.cts +2 -0
  54. package/dist/constants.d.mts +2 -0
  55. package/dist/constants.mjs +1 -0
  56. package/dist/{copy-file.d.ts → copy-file-B5FJHiIK.d.mts} +11 -5
  57. package/dist/copy-file-B5FJHiIK.d.mts.map +1 -0
  58. package/dist/copy-file-Bot2YNtT.mjs +2 -0
  59. package/dist/copy-file-Bot2YNtT.mjs.map +1 -0
  60. package/dist/copy-file-DjH2Ho5e.d.cts +39 -0
  61. package/dist/copy-file-DjH2Ho5e.d.cts.map +1 -0
  62. package/dist/copy-file-Y1ilzocZ.cjs +1 -0
  63. package/dist/copy-file.cjs +1 -48
  64. package/dist/copy-file.d.cts +2 -0
  65. package/dist/copy-file.d.mts +2 -0
  66. package/dist/copy-file.mjs +1 -1
  67. package/dist/cwd-YTg9Cx6C.mjs +2 -0
  68. package/dist/cwd-YTg9Cx6C.mjs.map +1 -0
  69. package/dist/cwd-o2vq8Tk9.cjs +1 -0
  70. package/dist/{exists.d.ts → exists-175EN367.d.mts} +6 -2
  71. package/dist/exists-175EN367.d.mts.map +1 -0
  72. package/dist/exists-B31lSRFp.cjs +1 -0
  73. package/dist/exists-CVlDImzc.d.cts +18 -0
  74. package/dist/exists-CVlDImzc.d.cts.map +1 -0
  75. package/dist/exists-Ci-9lYmi.mjs +2 -0
  76. package/dist/exists-Ci-9lYmi.mjs.map +1 -0
  77. package/dist/exists.cjs +1 -15
  78. package/dist/exists.d.cts +2 -0
  79. package/dist/exists.d.mts +2 -0
  80. package/dist/exists.mjs +1 -1
  81. package/dist/file-D1uBqkpP.d.cts +32 -0
  82. package/dist/file-D1uBqkpP.d.cts.map +1 -0
  83. package/dist/file-DauFFmfh.d.mts +32 -0
  84. package/dist/file-DauFFmfh.d.mts.map +1 -0
  85. package/dist/file-path-fns-7aKacdLg.cjs +1 -0
  86. package/dist/file-path-fns-BDzC2SIV.mjs +2 -0
  87. package/dist/file-path-fns-BDzC2SIV.mjs.map +1 -0
  88. package/dist/get-parent-path-COkh6Pvl.d.mts +32 -0
  89. package/dist/get-parent-path-COkh6Pvl.d.mts.map +1 -0
  90. package/dist/get-parent-path-Cbqs2km7.d.cts +32 -0
  91. package/dist/get-parent-path-Cbqs2km7.d.cts.map +1 -0
  92. package/dist/get-parent-path-CfRkaB4R.cjs +1 -0
  93. package/dist/get-parent-path-DLFSyxSW.mjs +2 -0
  94. package/dist/get-parent-path-DLFSyxSW.mjs.map +1 -0
  95. package/dist/get-parent-path.cjs +1 -28
  96. package/dist/get-parent-path.d.cts +2 -0
  97. package/dist/get-parent-path.d.mts +2 -0
  98. package/dist/get-parent-path.mjs +1 -1
  99. package/dist/get-workspace-root-CCNjjZGY.cjs +1 -0
  100. package/dist/{get-workspace-root.d.ts → get-workspace-root-DQBvBd8X.d.mts} +12 -8
  101. package/dist/get-workspace-root-DQBvBd8X.d.mts.map +1 -0
  102. package/dist/get-workspace-root-eTfm1jII.d.cts +48 -0
  103. package/dist/get-workspace-root-eTfm1jII.d.cts.map +1 -0
  104. package/dist/get-workspace-root-k66w-wLW.mjs +2 -0
  105. package/dist/get-workspace-root-k66w-wLW.mjs.map +1 -0
  106. package/dist/get-workspace-root.cjs +1 -49
  107. package/dist/get-workspace-root.d.cts +2 -0
  108. package/dist/get-workspace-root.d.mts +2 -0
  109. package/dist/get-workspace-root.mjs +1 -1
  110. package/dist/helpers-BSEQb1fp.mjs +2 -0
  111. package/dist/helpers-BSEQb1fp.mjs.map +1 -0
  112. package/dist/{helpers.d.ts → helpers-CYWFZ-Uv.d.mts} +10 -6
  113. package/dist/helpers-CYWFZ-Uv.d.mts.map +1 -0
  114. package/dist/helpers-CgMOExPa.d.cts +50 -0
  115. package/dist/helpers-CgMOExPa.d.cts.map +1 -0
  116. package/dist/helpers-_MJ6PR-g.cjs +1 -0
  117. package/dist/helpers.cjs +1 -49
  118. package/dist/helpers.d.cts +2 -0
  119. package/dist/helpers.d.mts +2 -0
  120. package/dist/helpers.mjs +1 -1
  121. package/dist/index.cjs +1 -269
  122. package/dist/index.d.cts +25 -0
  123. package/dist/index.d.mts +25 -0
  124. package/dist/index.mjs +1 -1
  125. package/dist/install-B3bIjHoU.mjs +2 -0
  126. package/dist/install-B3bIjHoU.mjs.map +1 -0
  127. package/dist/install-CZ_S7NHm.cjs +1 -0
  128. package/dist/install-CxPsLO2t.d.cts +28 -0
  129. package/dist/install-CxPsLO2t.d.cts.map +1 -0
  130. package/dist/install-dYt7hlQn.d.mts +29 -0
  131. package/dist/install-dYt7hlQn.d.mts.map +1 -0
  132. package/dist/install.cjs +1 -25
  133. package/dist/install.d.cts +2 -0
  134. package/dist/install.d.mts +2 -0
  135. package/dist/install.mjs +1 -1
  136. package/dist/is-error-CjEyTRps.cjs +1 -0
  137. package/dist/is-error-CjVXmD_8.mjs +2 -0
  138. package/dist/is-error-CjVXmD_8.mjs.map +1 -0
  139. package/dist/is-file-BkFQev3M.cjs +1 -0
  140. package/dist/is-file-CNooe8Wz.mjs +2 -0
  141. package/dist/is-file-CNooe8Wz.mjs.map +1 -0
  142. package/dist/{is-file.d.ts → is-file-DjqOQrqY.d.mts} +8 -4
  143. package/dist/is-file-DjqOQrqY.d.mts.map +1 -0
  144. package/dist/is-file-DoBi2FN9.d.cts +36 -0
  145. package/dist/is-file-DoBi2FN9.d.cts.map +1 -0
  146. package/dist/is-file.cjs +1 -29
  147. package/dist/is-file.d.cts +2 -0
  148. package/dist/is-file.d.mts +2 -0
  149. package/dist/is-file.mjs +1 -1
  150. package/dist/is-object-FBXmvehR.cjs +1 -0
  151. package/dist/is-object-UsKYhyC5.mjs +2 -0
  152. package/dist/is-object-UsKYhyC5.mjs.map +1 -0
  153. package/dist/is-set-string-CLeu8BKX.cjs +1 -0
  154. package/dist/is-set-string-Cj0g4gsG.mjs +2 -0
  155. package/dist/is-set-string-Cj0g4gsG.mjs.map +1 -0
  156. package/dist/is-string-91Z3dOKQ.mjs +2 -0
  157. package/dist/is-string-91Z3dOKQ.mjs.map +1 -0
  158. package/dist/is-string-DKgNS0jA.cjs +1 -0
  159. package/dist/join-paths-BHepkhAj.mjs +2 -0
  160. package/dist/join-paths-BHepkhAj.mjs.map +1 -0
  161. package/dist/join-paths-DUdaieID.cjs +1 -0
  162. package/dist/json-CYenVxvr.d.cts +83 -0
  163. package/dist/json-CYenVxvr.d.cts.map +1 -0
  164. package/dist/json-DH7Q6Ftp.d.mts +83 -0
  165. package/dist/json-DH7Q6Ftp.d.mts.map +1 -0
  166. package/dist/json-DKhqPjHB.cjs +6 -0
  167. package/dist/json-Dp4PSH2i.mjs +7 -0
  168. package/dist/json-Dp4PSH2i.mjs.map +1 -0
  169. package/dist/json.cjs +1 -41
  170. package/dist/json.d.cts +2 -0
  171. package/dist/json.d.mts +2 -0
  172. package/dist/json.mjs +1 -3
  173. package/dist/list-files-Cn_UVruo.cjs +1 -0
  174. package/dist/list-files-D3dQOljX.d.cts +51 -0
  175. package/dist/list-files-D3dQOljX.d.cts.map +1 -0
  176. package/dist/list-files-D3iJzEQw.d.mts +51 -0
  177. package/dist/list-files-D3iJzEQw.d.mts.map +1 -0
  178. package/dist/list-files-D__uh3tQ.mjs +2 -0
  179. package/dist/list-files-D__uh3tQ.mjs.map +1 -0
  180. package/dist/list-files.cjs +1 -55
  181. package/dist/list-files.d.cts +2 -0
  182. package/dist/list-files.d.mts +2 -0
  183. package/dist/list-files.mjs +1 -1
  184. package/dist/package-fns-BNRi_Rpc.d.cts +354 -0
  185. package/dist/package-fns-BNRi_Rpc.d.cts.map +1 -0
  186. package/dist/package-fns-C7-MKgBR.mjs +2 -0
  187. package/dist/package-fns-C7-MKgBR.mjs.map +1 -0
  188. package/dist/package-fns-CxokaGDY.d.mts +354 -0
  189. package/dist/package-fns-CxokaGDY.d.mts.map +1 -0
  190. package/dist/package-fns-YTCdMAXr.cjs +1 -0
  191. package/dist/package-fns.cjs +1 -99
  192. package/dist/package-fns.d.cts +2 -0
  193. package/dist/package-fns.d.mts +2 -0
  194. package/dist/package-fns.mjs +1 -1
  195. package/dist/read-file-B091zB64.mjs +2 -0
  196. package/dist/read-file-B091zB64.mjs.map +1 -0
  197. package/dist/read-file-BB2WzW-N.cjs +1 -0
  198. package/dist/{read-file.d.ts → read-file-Bxn1VHKv.d.cts} +8 -4
  199. package/dist/read-file-Bxn1VHKv.d.cts.map +1 -0
  200. package/dist/read-file-CRVW-wcE.d.mts +30 -0
  201. package/dist/read-file-CRVW-wcE.d.mts.map +1 -0
  202. package/dist/read-file.cjs +1 -31
  203. package/dist/read-file.d.cts +2 -0
  204. package/dist/read-file.d.mts +2 -0
  205. package/dist/read-file.mjs +1 -1
  206. package/dist/registry-B1taIPKm.mjs +2 -0
  207. package/dist/registry-B1taIPKm.mjs.map +1 -0
  208. package/dist/{registry.d.ts → registry-BQ3JXRFA.d.mts} +17 -13
  209. package/dist/registry-BQ3JXRFA.d.mts.map +1 -0
  210. package/dist/registry-BYwvM92u.cjs +1 -0
  211. package/dist/registry-C2A0Kau7.d.cts +53 -0
  212. package/dist/registry-C2A0Kau7.d.cts.map +1 -0
  213. package/dist/registry.cjs +1 -95
  214. package/dist/registry.d.cts +2 -0
  215. package/dist/registry.d.mts +2 -0
  216. package/dist/registry.mjs +1 -1
  217. package/dist/remove-file-BM64Brdf.mjs +2 -0
  218. package/dist/remove-file-BM64Brdf.mjs.map +1 -0
  219. package/dist/remove-file-BqlkL_Df.d.mts +16 -0
  220. package/dist/remove-file-BqlkL_Df.d.mts.map +1 -0
  221. package/dist/remove-file-XHFKELQN.cjs +1 -0
  222. package/dist/remove-file-lQOlxDwr.d.cts +16 -0
  223. package/dist/remove-file-lQOlxDwr.d.cts.map +1 -0
  224. package/dist/remove-file.cjs +1 -16
  225. package/dist/remove-file.d.cts +2 -0
  226. package/dist/remove-file.d.mts +2 -0
  227. package/dist/remove-file.mjs +1 -1
  228. package/dist/resolve-C_YsCFne.mjs +4 -0
  229. package/dist/resolve-C_YsCFne.mjs.map +1 -0
  230. package/dist/{resolve.d.ts → resolve-D66oIwjf.d.mts} +33 -29
  231. package/dist/resolve-D66oIwjf.d.mts.map +1 -0
  232. package/dist/resolve-DTkLQekH.cjs +3 -0
  233. package/dist/resolve-DubH-8qd.d.cts +106 -0
  234. package/dist/resolve-DubH-8qd.d.cts.map +1 -0
  235. package/dist/resolve-parent-path-CR8av8WP.mjs +2 -0
  236. package/dist/resolve-parent-path-CR8av8WP.mjs.map +1 -0
  237. package/dist/resolve-parent-path-D0AaW2PB.cjs +1 -0
  238. package/dist/resolve.cjs +1 -115
  239. package/dist/resolve.d.cts +2 -0
  240. package/dist/resolve.d.mts +2 -0
  241. package/dist/resolve.mjs +1 -5
  242. package/dist/{semver-fns.d.ts → semver-fns-B0e5zB6C.d.mts} +17 -11
  243. package/dist/semver-fns-B0e5zB6C.d.mts.map +1 -0
  244. package/dist/semver-fns-Btrm1dIF.cjs +1 -0
  245. package/dist/semver-fns-DjhZXnUw.d.cts +92 -0
  246. package/dist/semver-fns-DjhZXnUw.d.cts.map +1 -0
  247. package/dist/semver-fns-F_rYnwDq.mjs +2 -0
  248. package/dist/semver-fns-F_rYnwDq.mjs.map +1 -0
  249. package/dist/semver-fns.cjs +1 -40
  250. package/dist/semver-fns.d.cts +2 -0
  251. package/dist/semver-fns.d.mts +2 -0
  252. package/dist/semver-fns.mjs +1 -1
  253. package/dist/toml-CIgLQmP3.mjs +4 -0
  254. package/dist/toml-CIgLQmP3.mjs.map +1 -0
  255. package/dist/toml-D3X2QoaL.d.cts +81 -0
  256. package/dist/toml-D3X2QoaL.d.cts.map +1 -0
  257. package/dist/toml-DgVyNp_y.cjs +3 -0
  258. package/dist/toml-Djau1M6n.d.mts +81 -0
  259. package/dist/toml-Djau1M6n.d.mts.map +1 -0
  260. package/dist/toml.cjs +1 -40
  261. package/dist/toml.d.cts +2 -0
  262. package/dist/toml.d.mts +2 -0
  263. package/dist/toml.mjs +1 -3
  264. package/dist/tsconfig-B13IMV_0.d.mts +812 -0
  265. package/dist/tsconfig-B13IMV_0.d.mts.map +1 -0
  266. package/dist/tsconfig-B6WtgD1c.cjs +1 -0
  267. package/dist/tsconfig-C8ecu1-0.d.cts +812 -0
  268. package/dist/tsconfig-C8ecu1-0.d.cts.map +1 -0
  269. package/dist/tsconfig-CqvvSVuX.mjs +2 -0
  270. package/dist/tsconfig-CqvvSVuX.mjs.map +1 -0
  271. package/dist/tsconfig.cjs +1 -28
  272. package/dist/tsconfig.d.cts +2 -0
  273. package/dist/tsconfig.d.mts +2 -0
  274. package/dist/tsconfig.mjs +1 -1
  275. package/dist/write-file-BmvbsmMj.d.cts +35 -0
  276. package/dist/write-file-BmvbsmMj.d.cts.map +1 -0
  277. package/dist/write-file-CFByoJkN.mjs +2 -0
  278. package/dist/write-file-CFByoJkN.mjs.map +1 -0
  279. package/dist/write-file-CWTzQpb2.d.mts +35 -0
  280. package/dist/write-file-CWTzQpb2.d.mts.map +1 -0
  281. package/dist/write-file-CqokudVp.cjs +1 -0
  282. package/dist/write-file.cjs +1 -26
  283. package/dist/write-file.d.cts +2 -0
  284. package/dist/write-file.d.mts +2 -0
  285. package/dist/write-file.mjs +1 -1
  286. package/dist/yaml-6uuLoSfT.d.cts +23 -0
  287. package/dist/yaml-6uuLoSfT.d.cts.map +1 -0
  288. package/dist/yaml-CLMo56UG.mjs +2 -0
  289. package/dist/yaml-CLMo56UG.mjs.map +1 -0
  290. package/dist/yaml-Ddslc5NK.d.mts +23 -0
  291. package/dist/yaml-Ddslc5NK.d.mts.map +1 -0
  292. package/dist/yaml-q2k-BjIM.cjs +1 -0
  293. package/dist/yaml.cjs +1 -15
  294. package/dist/yaml.d.cts +2 -0
  295. package/dist/yaml.d.mts +2 -0
  296. package/dist/yaml.mjs +1 -1
  297. package/package.json +98 -379
  298. package/dist/compress.d.ts +0 -11
  299. package/dist/constants.d.ts +0 -1
  300. package/dist/get-parent-path.d.ts +0 -28
  301. package/dist/index.d.ts +0 -32
  302. package/dist/install.d.ts +0 -24
  303. package/dist/json.d.ts +0 -49
  304. package/dist/list-files.d.ts +0 -46
  305. package/dist/package-fns.d.ts +0 -89
  306. package/dist/remove-file.d.ts +0 -12
  307. package/dist/toml.d.ts +0 -77
  308. package/dist/tsconfig.d.ts +0 -8
  309. package/dist/write-file.d.ts +0 -30
  310. package/dist/yaml.d.ts +0 -18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/fs",
3
- "version": "0.33.9",
3
+ "version": "0.33.16",
4
4
  "type": "module",
5
5
  "description": "A package containing various file system utilities that expand the functionality of NodeJs's built-in `fs` module.",
6
6
  "repository": {
@@ -9,406 +9,125 @@
9
9
  "directory": "packages/fs"
10
10
  },
11
11
  "private": false,
12
- "peerDependencies": { "nx": "22.1.0" },
13
- "peerDependenciesMeta": { "nx": { "optional": true } },
14
- "dependencies": {
15
- "@antfu/install-pkg": "^1.1.0",
16
- "@ltd/j-toml": "^1.38.0",
17
- "@storm-software/config-tools": "^1.188.50",
18
- "@stryke/convert": "^0.6.13",
19
- "@stryke/helpers": "^0.9.15",
20
- "@stryke/path": "^0.22.0",
21
- "@stryke/string-format": "^0.12.13",
22
- "chalk": "^5.6.2",
23
- "defu": "^6.1.4",
24
- "glob": "^11.1.0",
25
- "mlly": "1.7.4",
26
- "nanotar": "^0.2.0",
27
- "semver": "7.7.1",
28
- "yaml": "^2.8.2",
29
- "@stryke/json": "^0.9.16",
30
- "@stryke/type-checks": "^0.4.4",
31
- "@stryke/types": "^0.10.13"
32
- },
33
- "devDependencies": {
34
- "@types/node": "^24.10.1",
35
- "@types/semver": "^7.7.1",
36
- "nx": "22.1.0",
37
- "tinyexec": "^0.3.2"
38
- },
39
- "publishConfig": { "access": "public" },
40
- "sideEffects": false,
41
- "files": ["dist/**/*"],
42
- "homepage": "https://stormsoftware.com",
43
- "bugs": {
44
- "url": "https://stormsoftware.com/support",
45
- "email": "support@stormsoftware.com"
46
- },
47
- "license": "Apache-2.0",
48
- "keywords": [
49
- "stryke",
50
- "typescript",
51
- "utilities",
52
- "storm-software",
53
- "storm",
54
- "storm-ops",
55
- "cyclone-ui",
56
- "sullivanpj",
57
- "monorepo"
58
- ],
59
- "funding": {
60
- "type": "github",
61
- "url": "https://github.com/sponsors/storm-software"
62
- },
63
- "author": {
64
- "name": "Storm Software",
65
- "email": "contact@stormsoftware.com",
66
- "url": "https://stormsoftware.com"
67
- },
68
- "maintainers": [
69
- {
70
- "name": "Storm Software",
71
- "email": "contact@stormsoftware.com",
72
- "url": "https://stormsoftware.com"
73
- }
74
- ],
75
- "contributors": [
76
- {
77
- "name": "Storm Software",
78
- "email": "contact@stormsoftware.com",
79
- "url": "https://stormsoftware.com"
80
- }
81
- ],
12
+ "main": "./dist/index.cjs",
13
+ "module": "./dist/index.mjs",
82
14
  "exports": {
83
- "./yaml": {
84
- "import": { "types": "./dist/yaml.d.ts", "default": "./dist/yaml.mjs" },
85
- "require": { "types": "./dist/yaml.d.ts", "default": "./dist/yaml.cjs" },
86
- "default": { "types": "./dist/yaml.d.ts", "default": "./dist/yaml.mjs" }
87
- },
88
- "./write-file": {
89
- "import": {
90
- "types": "./dist/write-file.d.ts",
91
- "default": "./dist/write-file.mjs"
92
- },
93
- "require": {
94
- "types": "./dist/write-file.d.ts",
95
- "default": "./dist/write-file.cjs"
96
- },
97
- "default": {
98
- "types": "./dist/write-file.d.ts",
99
- "default": "./dist/write-file.mjs"
100
- }
101
- },
102
- "./tsconfig": {
103
- "import": {
104
- "types": "./dist/tsconfig.d.ts",
105
- "default": "./dist/tsconfig.mjs"
106
- },
107
- "require": {
108
- "types": "./dist/tsconfig.d.ts",
109
- "default": "./dist/tsconfig.cjs"
110
- },
111
- "default": {
112
- "types": "./dist/tsconfig.d.ts",
113
- "default": "./dist/tsconfig.mjs"
114
- }
115
- },
116
- "./toml": {
117
- "import": { "types": "./dist/toml.d.ts", "default": "./dist/toml.mjs" },
118
- "require": { "types": "./dist/toml.d.ts", "default": "./dist/toml.cjs" },
119
- "default": { "types": "./dist/toml.d.ts", "default": "./dist/toml.mjs" }
15
+ ".": { "require": "./dist/index.cjs", "import": "./dist/index.mjs" },
16
+ "./buffer": {
17
+ "require": "./dist/buffer.cjs",
18
+ "import": "./dist/buffer.mjs"
120
19
  },
121
- "./semver-fns": {
122
- "import": {
123
- "types": "./dist/semver-fns.d.ts",
124
- "default": "./dist/semver-fns.mjs"
125
- },
126
- "require": {
127
- "types": "./dist/semver-fns.d.ts",
128
- "default": "./dist/semver-fns.cjs"
129
- },
130
- "default": {
131
- "types": "./dist/semver-fns.d.ts",
132
- "default": "./dist/semver-fns.mjs"
133
- }
20
+ "./chmod-x": {
21
+ "require": "./dist/chmod-x.cjs",
22
+ "import": "./dist/chmod-x.mjs"
134
23
  },
135
- "./resolve": {
136
- "import": {
137
- "types": "./dist/resolve.d.ts",
138
- "default": "./dist/resolve.mjs"
139
- },
140
- "require": {
141
- "types": "./dist/resolve.d.ts",
142
- "default": "./dist/resolve.cjs"
143
- },
144
- "default": {
145
- "types": "./dist/resolve.d.ts",
146
- "default": "./dist/resolve.mjs"
147
- }
24
+ "./command-exists": {
25
+ "require": "./dist/command-exists.cjs",
26
+ "import": "./dist/command-exists.mjs"
148
27
  },
149
- "./remove-file": {
150
- "import": {
151
- "types": "./dist/remove-file.d.ts",
152
- "default": "./dist/remove-file.mjs"
153
- },
154
- "require": {
155
- "types": "./dist/remove-file.d.ts",
156
- "default": "./dist/remove-file.cjs"
157
- },
158
- "default": {
159
- "types": "./dist/remove-file.d.ts",
160
- "default": "./dist/remove-file.mjs"
161
- }
28
+ "./compress": {
29
+ "require": "./dist/compress.cjs",
30
+ "import": "./dist/compress.mjs"
162
31
  },
163
- "./registry": {
164
- "import": {
165
- "types": "./dist/registry.d.ts",
166
- "default": "./dist/registry.mjs"
167
- },
168
- "require": {
169
- "types": "./dist/registry.d.ts",
170
- "default": "./dist/registry.cjs"
171
- },
172
- "default": {
173
- "types": "./dist/registry.d.ts",
174
- "default": "./dist/registry.mjs"
175
- }
32
+ "./constants": {
33
+ "require": "./dist/constants.cjs",
34
+ "import": "./dist/constants.mjs"
176
35
  },
177
- "./read-file": {
178
- "import": {
179
- "types": "./dist/read-file.d.ts",
180
- "default": "./dist/read-file.mjs"
181
- },
182
- "require": {
183
- "types": "./dist/read-file.d.ts",
184
- "default": "./dist/read-file.cjs"
185
- },
186
- "default": {
187
- "types": "./dist/read-file.d.ts",
188
- "default": "./dist/read-file.mjs"
189
- }
36
+ "./copy-file": {
37
+ "require": "./dist/copy-file.cjs",
38
+ "import": "./dist/copy-file.mjs"
190
39
  },
191
- "./package-fns": {
192
- "import": {
193
- "types": "./dist/package-fns.d.ts",
194
- "default": "./dist/package-fns.mjs"
195
- },
196
- "require": {
197
- "types": "./dist/package-fns.d.ts",
198
- "default": "./dist/package-fns.cjs"
199
- },
200
- "default": {
201
- "types": "./dist/package-fns.d.ts",
202
- "default": "./dist/package-fns.mjs"
203
- }
40
+ "./exists": {
41
+ "require": "./dist/exists.cjs",
42
+ "import": "./dist/exists.mjs"
204
43
  },
205
- "./list-files": {
206
- "import": {
207
- "types": "./dist/list-files.d.ts",
208
- "default": "./dist/list-files.mjs"
209
- },
210
- "require": {
211
- "types": "./dist/list-files.d.ts",
212
- "default": "./dist/list-files.cjs"
213
- },
214
- "default": {
215
- "types": "./dist/list-files.d.ts",
216
- "default": "./dist/list-files.mjs"
217
- }
44
+ "./get-parent-path": {
45
+ "require": "./dist/get-parent-path.cjs",
46
+ "import": "./dist/get-parent-path.mjs"
218
47
  },
219
- "./json": {
220
- "import": { "types": "./dist/json.d.ts", "default": "./dist/json.mjs" },
221
- "require": { "types": "./dist/json.d.ts", "default": "./dist/json.cjs" },
222
- "default": { "types": "./dist/json.d.ts", "default": "./dist/json.mjs" }
48
+ "./get-workspace-root": {
49
+ "require": "./dist/get-workspace-root.cjs",
50
+ "import": "./dist/get-workspace-root.mjs"
223
51
  },
224
- "./is-file": {
225
- "import": {
226
- "types": "./dist/is-file.d.ts",
227
- "default": "./dist/is-file.mjs"
228
- },
229
- "require": {
230
- "types": "./dist/is-file.d.ts",
231
- "default": "./dist/is-file.cjs"
232
- },
233
- "default": {
234
- "types": "./dist/is-file.d.ts",
235
- "default": "./dist/is-file.mjs"
236
- }
52
+ "./helpers": {
53
+ "require": "./dist/helpers.cjs",
54
+ "import": "./dist/helpers.mjs"
237
55
  },
238
56
  "./install": {
239
- "import": {
240
- "types": "./dist/install.d.ts",
241
- "default": "./dist/install.mjs"
242
- },
243
- "require": {
244
- "types": "./dist/install.d.ts",
245
- "default": "./dist/install.cjs"
246
- },
247
- "default": {
248
- "types": "./dist/install.d.ts",
249
- "default": "./dist/install.mjs"
250
- }
251
- },
252
- "./index": {
253
- "import": { "types": "./dist/index.d.ts", "default": "./dist/index.mjs" },
254
- "require": {
255
- "types": "./dist/index.d.ts",
256
- "default": "./dist/index.cjs"
257
- },
258
- "default": { "types": "./dist/index.d.ts", "default": "./dist/index.mjs" }
57
+ "require": "./dist/install.cjs",
58
+ "import": "./dist/install.mjs"
259
59
  },
260
- "./helpers": {
261
- "import": {
262
- "types": "./dist/helpers.d.ts",
263
- "default": "./dist/helpers.mjs"
264
- },
265
- "require": {
266
- "types": "./dist/helpers.d.ts",
267
- "default": "./dist/helpers.cjs"
268
- },
269
- "default": {
270
- "types": "./dist/helpers.d.ts",
271
- "default": "./dist/helpers.mjs"
272
- }
273
- },
274
- "./get-workspace-root": {
275
- "import": {
276
- "types": "./dist/get-workspace-root.d.ts",
277
- "default": "./dist/get-workspace-root.mjs"
278
- },
279
- "require": {
280
- "types": "./dist/get-workspace-root.d.ts",
281
- "default": "./dist/get-workspace-root.cjs"
282
- },
283
- "default": {
284
- "types": "./dist/get-workspace-root.d.ts",
285
- "default": "./dist/get-workspace-root.mjs"
286
- }
60
+ "./is-file": {
61
+ "require": "./dist/is-file.cjs",
62
+ "import": "./dist/is-file.mjs"
287
63
  },
288
- "./get-parent-path": {
289
- "import": {
290
- "types": "./dist/get-parent-path.d.ts",
291
- "default": "./dist/get-parent-path.mjs"
292
- },
293
- "require": {
294
- "types": "./dist/get-parent-path.d.ts",
295
- "default": "./dist/get-parent-path.cjs"
296
- },
297
- "default": {
298
- "types": "./dist/get-parent-path.d.ts",
299
- "default": "./dist/get-parent-path.mjs"
300
- }
64
+ "./json": { "require": "./dist/json.cjs", "import": "./dist/json.mjs" },
65
+ "./list-files": {
66
+ "require": "./dist/list-files.cjs",
67
+ "import": "./dist/list-files.mjs"
301
68
  },
302
- "./exists": {
303
- "import": {
304
- "types": "./dist/exists.d.ts",
305
- "default": "./dist/exists.mjs"
306
- },
307
- "require": {
308
- "types": "./dist/exists.d.ts",
309
- "default": "./dist/exists.cjs"
310
- },
311
- "default": {
312
- "types": "./dist/exists.d.ts",
313
- "default": "./dist/exists.mjs"
314
- }
69
+ "./package-fns": {
70
+ "require": "./dist/package-fns.cjs",
71
+ "import": "./dist/package-fns.mjs"
315
72
  },
316
- "./copy-file": {
317
- "import": {
318
- "types": "./dist/copy-file.d.ts",
319
- "default": "./dist/copy-file.mjs"
320
- },
321
- "require": {
322
- "types": "./dist/copy-file.d.ts",
323
- "default": "./dist/copy-file.cjs"
324
- },
325
- "default": {
326
- "types": "./dist/copy-file.d.ts",
327
- "default": "./dist/copy-file.mjs"
328
- }
73
+ "./read-file": {
74
+ "require": "./dist/read-file.cjs",
75
+ "import": "./dist/read-file.mjs"
329
76
  },
330
- "./constants": {
331
- "import": {
332
- "types": "./dist/constants.d.ts",
333
- "default": "./dist/constants.mjs"
334
- },
335
- "require": {
336
- "types": "./dist/constants.d.ts",
337
- "default": "./dist/constants.cjs"
338
- },
339
- "default": {
340
- "types": "./dist/constants.d.ts",
341
- "default": "./dist/constants.mjs"
342
- }
77
+ "./registry": {
78
+ "require": "./dist/registry.cjs",
79
+ "import": "./dist/registry.mjs"
343
80
  },
344
- "./compress": {
345
- "import": {
346
- "types": "./dist/compress.d.ts",
347
- "default": "./dist/compress.mjs"
348
- },
349
- "require": {
350
- "types": "./dist/compress.d.ts",
351
- "default": "./dist/compress.cjs"
352
- },
353
- "default": {
354
- "types": "./dist/compress.d.ts",
355
- "default": "./dist/compress.mjs"
356
- }
81
+ "./remove-file": {
82
+ "require": "./dist/remove-file.cjs",
83
+ "import": "./dist/remove-file.mjs"
357
84
  },
358
- "./command-exists": {
359
- "import": {
360
- "types": "./dist/command-exists.d.ts",
361
- "default": "./dist/command-exists.mjs"
362
- },
363
- "require": {
364
- "types": "./dist/command-exists.d.ts",
365
- "default": "./dist/command-exists.cjs"
366
- },
367
- "default": {
368
- "types": "./dist/command-exists.d.ts",
369
- "default": "./dist/command-exists.mjs"
370
- }
85
+ "./resolve": {
86
+ "require": "./dist/resolve.cjs",
87
+ "import": "./dist/resolve.mjs"
371
88
  },
372
- "./chmod-x": {
373
- "import": {
374
- "types": "./dist/chmod-x.d.ts",
375
- "default": "./dist/chmod-x.mjs"
376
- },
377
- "require": {
378
- "types": "./dist/chmod-x.d.ts",
379
- "default": "./dist/chmod-x.cjs"
380
- },
381
- "default": {
382
- "types": "./dist/chmod-x.d.ts",
383
- "default": "./dist/chmod-x.mjs"
384
- }
89
+ "./semver-fns": {
90
+ "require": "./dist/semver-fns.cjs",
91
+ "import": "./dist/semver-fns.mjs"
385
92
  },
386
- "./buffer": {
387
- "import": {
388
- "types": "./dist/buffer.d.ts",
389
- "default": "./dist/buffer.mjs"
390
- },
391
- "require": {
392
- "types": "./dist/buffer.d.ts",
393
- "default": "./dist/buffer.cjs"
394
- },
395
- "default": {
396
- "types": "./dist/buffer.d.ts",
397
- "default": "./dist/buffer.mjs"
398
- }
93
+ "./toml": { "require": "./dist/toml.cjs", "import": "./dist/toml.mjs" },
94
+ "./tsconfig": {
95
+ "require": "./dist/tsconfig.cjs",
96
+ "import": "./dist/tsconfig.mjs"
399
97
  },
400
- ".": {
401
- "import": { "types": "./dist/index.d.ts", "default": "./dist/index.mjs" },
402
- "require": {
403
- "types": "./dist/index.d.ts",
404
- "default": "./dist/index.cjs"
405
- },
406
- "default": { "types": "./dist/index.d.ts", "default": "./dist/index.mjs" }
98
+ "./write-file": {
99
+ "require": "./dist/write-file.cjs",
100
+ "import": "./dist/write-file.mjs"
407
101
  },
408
- "./package.json": "./package.json"
102
+ "./yaml": { "require": "./dist/yaml.cjs", "import": "./dist/yaml.mjs" },
103
+ "./*": "./*"
409
104
  },
410
- "main": "./dist/index.cjs",
411
- "module": "./dist/index.mjs",
412
- "types": "./dist/index.d.ts",
413
- "gitHead": "eb28313b3230b7ea654c87586ca07773e2e57f52"
105
+ "types": "./dist/index.d.cts",
106
+ "peerDependencies": { "nx": "^22.1.3" },
107
+ "peerDependenciesMeta": { "nx": { "optional": true } },
108
+ "dependencies": {
109
+ "@antfu/install-pkg": "^1.1.0",
110
+ "@ltd/j-toml": "^1.38.0",
111
+ "@storm-software/config-tools": "^1.188.59",
112
+ "@stryke/convert": "^0.6.20",
113
+ "@stryke/helpers": "^0.9.22",
114
+ "@stryke/path": "^0.22.7",
115
+ "@stryke/string-format": "^0.12.20",
116
+ "chalk": "^5.6.2",
117
+ "defu": "^6.1.4",
118
+ "glob": "^11.1.0",
119
+ "mlly": "1.7.4",
120
+ "nanotar": "^0.2.0",
121
+ "semver": "7.7.1",
122
+ "yaml": "^2.8.2"
123
+ },
124
+ "devDependencies": {
125
+ "@types/node": "^24.10.1",
126
+ "@types/semver": "^7.7.1",
127
+ "nx": "^22.1.3",
128
+ "tinyexec": "^0.3.2",
129
+ "tsdown": "^0.17.1"
130
+ },
131
+ "publishConfig": { "access": "public" },
132
+ "gitHead": "5c645896466d1f6a26fb9cf9748ba226dd4d1f07"
414
133
  }
@@ -1,11 +0,0 @@
1
- import type { GlobOptions } from "glob";
2
- export interface CompressDirectoryOptions extends GlobOptions {
3
- destination?: string;
4
- }
5
- /**
6
- * Compress a directory or file into a tar.gz archive.
7
- *
8
- * @param directory - The source directory or file/glob to compress.
9
- * @param options - Options for the compression.
10
- */
11
- export declare function compressDirectory(directory: string, options?: CompressDirectoryOptions): Promise<void>;
@@ -1 +0,0 @@
1
- export type Encoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex";
@@ -1,28 +0,0 @@
1
- export interface GetParentPathOptions {
2
- /**
3
- * Whether to ignore the case of the file names when checking for existence.
4
- *
5
- * @defaultValue true
6
- */
7
- ignoreCase: boolean;
8
- /**
9
- * Whether to skip the current working directory when checking for the file.
10
- *
11
- * @defaultValue false
12
- */
13
- skipCwd: boolean;
14
- /**
15
- * Should we include the found file/directory name in the results.
16
- *
17
- * @defaultValue false
18
- */
19
- includeNameInResults?: boolean;
20
- }
21
- /**
22
- * Get the first parent path that has a file or directory with the provided name.
23
- *
24
- * @param name - The name (or names) of the file to look for in the parent paths.
25
- * @param cwd - The current working directory.
26
- * @returns The first parent path that exists.
27
- */
28
- export declare const getParentPath: (name: string | string[], cwd?: any, options?: Partial<GetParentPathOptions>) => string | undefined;
package/dist/index.d.ts DELETED
@@ -1,32 +0,0 @@
1
- /**
2
- * The fs library used by Storm Software for building NodeJS applications.
3
- *
4
- * @remarks
5
- * A package containing various file system utilities that expand the functionality of NodeJs's `fs` module
6
- *
7
- * @packageDocumentation
8
- */
9
- export * from "./buffer";
10
- export * from "./chmod-x";
11
- export * from "./command-exists";
12
- export * from "./compress";
13
- export * from "./constants";
14
- export * from "./copy-file";
15
- export * from "./exists";
16
- export * from "./get-parent-path";
17
- export * from "./get-workspace-root";
18
- export * from "./helpers";
19
- export * from "./install";
20
- export * from "./is-file";
21
- export * from "./json";
22
- export * from "./list-files";
23
- export * from "./package-fns";
24
- export * from "./read-file";
25
- export * from "./registry";
26
- export * from "./remove-file";
27
- export * from "./resolve";
28
- export * from "./semver-fns";
29
- export * from "./toml";
30
- export * from "./tsconfig";
31
- export * from "./write-file";
32
- export * from "./yaml";
package/dist/install.d.ts DELETED
@@ -1,24 +0,0 @@
1
- import type { InstallPackageOptions } from "@antfu/install-pkg";
2
- import { installPackage } from "@antfu/install-pkg";
3
- import "tinyexec";
4
- /**
5
- * Install a specific package
6
- *
7
- * @param name - The name of the package to install
8
- * @param options - The options to use when installing the package
9
- */
10
- export declare function install(name: string, options?: InstallPackageOptions): Promise<ReturnType<typeof installPackage>>;
11
- /**
12
- * Install a list of packages
13
- *
14
- * @param names - The list of package names to install
15
- * @param options - The options to use when installing the package
16
- */
17
- export declare function install(names: string[], options?: InstallPackageOptions): Promise<ReturnType<typeof installPackage>>;
18
- /**
19
- * Check if a package exists and install it if it does not
20
- *
21
- * @param name - The name of the package to check
22
- * @param options - The options to use when installing the package
23
- */
24
- export declare const packageExists: (name: string, options?: InstallPackageOptions) => Promise<void>;
package/dist/json.d.ts DELETED
@@ -1,49 +0,0 @@
1
- import type { JsonParseOptions, JsonSerializeOptions } from "@stryke/json/types";
2
- export interface JsonReadOptions extends JsonParseOptions {
3
- /**
4
- * mutable field recording whether JSON ends with new line
5
- *
6
- * @defaultValue false
7
- */
8
- endsWithNewline?: boolean;
9
- }
10
- /**
11
- * Reads a JSON file and returns the object the JSON content represents.
12
- *
13
- * @param path - A path to a file.
14
- * @param options - JSON parse options
15
- * @returns Object the JSON content of the file represents
16
- */
17
- export declare function readJsonFileSync<T extends object = any>(path: string, options?: JsonReadOptions): T;
18
- /**
19
- * Reads a JSON file and returns the object the JSON content represents.
20
- *
21
- * @param path - A path to a file.
22
- * @param options - JSON parse options
23
- * @returns Object the JSON content of the file represents
24
- */
25
- export declare function readJsonFile<T extends object = any>(path: string, options?: JsonReadOptions): Promise<T>;
26
- export interface JsonWriteOptions extends JsonSerializeOptions {
27
- /**
28
- * whether to append new line at the end of JSON file
29
- *
30
- * @defaultValue false
31
- */
32
- appendNewLine?: boolean;
33
- }
34
- /**
35
- * Serializes the given data to JSON and writes it to a file.
36
- *
37
- * @param path - A path to a file.
38
- * @param data - data which should be serialized to JSON and written to the file
39
- * @param options - JSON serialize options
40
- */
41
- export declare function writeJsonFileSync<T extends object = object>(path: string, data: T, options?: JsonWriteOptions): void;
42
- /**
43
- * Serializes the given data to JSON and writes it to a file asynchronously.
44
- *
45
- * @param path - A path to a file.
46
- * @param data - data which should be serialized to JSON and written to the file
47
- * @param options - JSON serialize options
48
- */
49
- export declare function writeJsonFile<T extends object = object>(path: string, data: T, options?: JsonWriteOptions): Promise<void>;