@stryke/fs 0.33.19 → 0.33.21
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/CHANGELOG.md +24 -0
- package/dist/{chunk-Bmb41Sf3.cjs → _virtual/rolldown_runtime.cjs} +1 -1
- package/dist/buffer.cjs +1 -1
- package/dist/buffer.d.cts +32 -2
- package/dist/buffer.d.cts.map +1 -0
- package/dist/buffer.d.mts +32 -2
- package/dist/buffer.d.mts.map +1 -0
- package/dist/buffer.mjs +2 -1
- package/dist/buffer.mjs.map +1 -0
- package/dist/chmod-x.cjs +1 -1
- package/dist/chmod-x.d.cts +44 -2
- package/dist/chmod-x.d.cts.map +1 -0
- package/dist/chmod-x.d.mts +44 -2
- package/dist/chmod-x.d.mts.map +1 -0
- package/dist/chmod-x.mjs +2 -1
- package/dist/chmod-x.mjs.map +1 -0
- package/dist/command-exists.cjs +1 -1
- package/dist/command-exists.d.cts +22 -2
- package/dist/command-exists.d.cts.map +1 -0
- package/dist/command-exists.d.mts +22 -2
- package/dist/command-exists.d.mts.map +1 -0
- package/dist/command-exists.mjs +2 -1
- package/dist/command-exists.mjs.map +1 -0
- package/dist/compress.cjs +1 -1
- package/dist/compress.d.cts +16 -2
- package/dist/compress.d.cts.map +1 -0
- package/dist/compress.d.mts +16 -2
- package/dist/compress.d.mts.map +1 -0
- package/dist/compress.mjs +2 -1
- package/dist/compress.mjs.map +1 -0
- package/dist/constants.d.cts +5 -2
- package/dist/constants.d.cts.map +1 -0
- package/dist/constants.d.mts +5 -2
- package/dist/constants.d.mts.map +1 -0
- package/dist/convert/src/array-buffer-to-string.cjs +1 -0
- package/dist/convert/src/array-buffer-to-string.mjs +2 -0
- package/dist/convert/src/array-buffer-to-string.mjs.map +1 -0
- package/dist/convert/src/to-array.cjs +1 -0
- package/dist/convert/src/to-array.mjs +2 -0
- package/dist/convert/src/to-array.mjs.map +1 -0
- package/dist/convert/src/uint8-array-to-string.cjs +1 -0
- package/dist/convert/src/uint8-array-to-string.mjs +2 -0
- package/dist/convert/src/uint8-array-to-string.mjs.map +1 -0
- package/dist/copy-file.cjs +1 -1
- package/dist/copy-file.d.cts +39 -2
- package/dist/copy-file.d.cts.map +1 -0
- package/dist/copy-file.d.mts +39 -2
- package/dist/copy-file.d.mts.map +1 -0
- package/dist/copy-file.mjs +2 -1
- package/dist/copy-file.mjs.map +1 -0
- package/dist/exists.cjs +1 -1
- package/dist/exists.d.cts +18 -2
- package/dist/exists.d.cts.map +1 -0
- package/dist/exists.d.mts +18 -2
- package/dist/exists.d.mts.map +1 -0
- package/dist/exists.mjs +2 -1
- package/dist/exists.mjs.map +1 -0
- package/dist/get-parent-path.cjs +1 -1
- package/dist/get-parent-path.d.cts +32 -2
- package/dist/get-parent-path.d.cts.map +1 -0
- package/dist/get-parent-path.d.mts +32 -2
- package/dist/get-parent-path.d.mts.map +1 -0
- package/dist/get-parent-path.mjs +2 -1
- package/dist/get-parent-path.mjs.map +1 -0
- package/dist/get-workspace-root.cjs +1 -1
- package/dist/get-workspace-root.d.cts +48 -2
- package/dist/get-workspace-root.d.cts.map +1 -0
- package/dist/get-workspace-root.d.mts +48 -2
- package/dist/get-workspace-root.d.mts.map +1 -0
- package/dist/get-workspace-root.mjs +2 -1
- package/dist/get-workspace-root.mjs.map +1 -0
- package/dist/helpers/src/get-unique.cjs +1 -0
- package/dist/helpers/src/get-unique.mjs +2 -0
- package/dist/helpers/src/get-unique.mjs.map +1 -0
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.d.cts +50 -2
- package/dist/helpers.d.cts.map +1 -0
- package/dist/helpers.d.mts +50 -2
- package/dist/helpers.d.mts.map +1 -0
- package/dist/helpers.mjs +2 -1
- package/dist/helpers.mjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +24 -24
- package/dist/index.d.mts +24 -24
- package/dist/index.mjs +1 -1
- package/dist/install.cjs +1 -1
- package/dist/install.d.cts +28 -2
- package/dist/install.d.cts.map +1 -0
- package/dist/install.d.mts +29 -2
- package/dist/install.d.mts.map +1 -0
- package/dist/install.mjs +2 -1
- package/dist/install.mjs.map +1 -0
- package/dist/is-file.cjs +1 -1
- package/dist/is-file.d.cts +36 -2
- package/dist/is-file.d.cts.map +1 -0
- package/dist/is-file.d.mts +36 -2
- package/dist/is-file.d.mts.map +1 -0
- package/dist/is-file.mjs +2 -1
- package/dist/is-file.mjs.map +1 -0
- package/dist/json/src/storm-json.cjs +1 -0
- package/dist/json/src/storm-json.mjs +2 -0
- package/dist/json/src/storm-json.mjs.map +1 -0
- package/dist/json/src/types.d.cts +33 -0
- package/dist/json/src/types.d.cts.map +1 -0
- package/dist/json/src/types.d.mts +33 -0
- package/dist/json/src/types.d.mts.map +1 -0
- package/dist/json/src/utils/code-frames.cjs +3 -0
- package/dist/json/src/utils/code-frames.mjs +4 -0
- package/dist/json/src/utils/code-frames.mjs.map +1 -0
- package/dist/json/src/utils/parse-error.cjs +1 -0
- package/dist/json/src/utils/parse-error.mjs +2 -0
- package/dist/json/src/utils/parse-error.mjs.map +1 -0
- package/dist/json/src/utils/parse.cjs +1 -0
- package/dist/json/src/utils/parse.mjs +2 -0
- package/dist/json/src/utils/parse.mjs.map +1 -0
- package/dist/json/src/utils/stringify.cjs +1 -0
- package/dist/json/src/utils/stringify.mjs +2 -0
- package/dist/json/src/utils/stringify.mjs.map +1 -0
- package/dist/json/src/utils/strip-comments.cjs +4 -0
- package/dist/json/src/utils/strip-comments.mjs +5 -0
- package/dist/json/src/utils/strip-comments.mjs.map +1 -0
- package/dist/json.cjs +1 -1
- package/dist/json.d.cts +54 -2
- package/dist/json.d.cts.map +1 -0
- package/dist/json.d.mts +54 -2
- package/dist/json.d.mts.map +1 -0
- package/dist/json.mjs +2 -1
- package/dist/json.mjs.map +1 -0
- package/dist/list-files.cjs +1 -1
- package/dist/list-files.d.cts +51 -2
- package/dist/list-files.d.cts.map +1 -0
- package/dist/list-files.d.mts +51 -2
- package/dist/list-files.d.mts.map +1 -0
- package/dist/list-files.mjs +2 -1
- package/dist/list-files.mjs.map +1 -0
- package/dist/package-fns.cjs +1 -1
- package/dist/package-fns.d.cts +95 -2
- package/dist/package-fns.d.cts.map +1 -0
- package/dist/package-fns.d.mts +95 -2
- package/dist/package-fns.d.mts.map +1 -0
- package/dist/package-fns.mjs +2 -1
- package/dist/package-fns.mjs.map +1 -0
- package/dist/path/src/append.cjs +1 -0
- package/dist/path/src/append.mjs +2 -0
- package/dist/path/src/append.mjs.map +1 -0
- package/dist/path/src/correct-path.cjs +1 -0
- package/dist/path/src/correct-path.mjs +2 -0
- package/dist/path/src/correct-path.mjs.map +1 -0
- package/dist/path/src/cwd.cjs +1 -0
- package/dist/path/src/cwd.mjs +2 -0
- package/dist/path/src/cwd.mjs.map +1 -0
- package/dist/path/src/file-path-fns.cjs +1 -0
- package/dist/path/src/file-path-fns.mjs +2 -0
- package/dist/path/src/file-path-fns.mjs.map +1 -0
- package/dist/path/src/is-parent-path.cjs +1 -0
- package/dist/path/src/is-parent-path.mjs +2 -0
- package/dist/path/src/is-parent-path.mjs.map +1 -0
- package/dist/path/src/is-root-dir.cjs +1 -0
- package/dist/path/src/is-root-dir.mjs +2 -0
- package/dist/path/src/is-root-dir.mjs.map +1 -0
- package/dist/path/src/is-type.cjs +1 -0
- package/dist/path/src/is-type.mjs +2 -0
- package/dist/path/src/is-type.mjs.map +1 -0
- package/dist/path/src/join-paths.cjs +1 -0
- package/dist/path/src/join-paths.mjs +2 -0
- package/dist/path/src/join-paths.mjs.map +1 -0
- package/dist/path/src/regex.cjs +1 -0
- package/dist/path/src/regex.mjs +2 -0
- package/dist/path/src/regex.mjs.map +1 -0
- package/dist/path/src/replace.cjs +1 -0
- package/dist/path/src/replace.mjs +2 -0
- package/dist/path/src/replace.mjs.map +1 -0
- package/dist/path/src/resolve-parent-path.cjs +1 -0
- package/dist/path/src/resolve-parent-path.mjs +2 -0
- package/dist/path/src/resolve-parent-path.mjs.map +1 -0
- package/dist/path/src/slash.cjs +1 -0
- package/dist/path/src/slash.mjs +2 -0
- package/dist/path/src/slash.mjs.map +1 -0
- package/dist/read-file.cjs +1 -1
- package/dist/read-file.d.cts +30 -2
- package/dist/read-file.d.cts.map +1 -0
- package/dist/read-file.d.mts +30 -2
- package/dist/read-file.d.mts.map +1 -0
- package/dist/read-file.mjs +2 -1
- package/dist/read-file.mjs.map +1 -0
- package/dist/registry.cjs +1 -1
- package/dist/registry.d.cts +53 -2
- package/dist/registry.d.cts.map +1 -0
- package/dist/registry.d.mts +53 -2
- package/dist/registry.d.mts.map +1 -0
- package/dist/registry.mjs +2 -1
- package/dist/registry.mjs.map +1 -0
- package/dist/remove-file.cjs +1 -1
- package/dist/remove-file.d.cts +16 -2
- package/dist/remove-file.d.cts.map +1 -0
- package/dist/remove-file.d.mts +16 -2
- package/dist/remove-file.d.mts.map +1 -0
- package/dist/remove-file.mjs +2 -1
- package/dist/remove-file.mjs.map +1 -0
- package/dist/resolve.cjs +3 -1
- package/dist/resolve.d.cts +106 -2
- package/dist/resolve.d.cts.map +1 -0
- package/dist/resolve.d.mts +106 -2
- package/dist/resolve.d.mts.map +1 -0
- package/dist/resolve.mjs +4 -1
- package/dist/resolve.mjs.map +1 -0
- package/dist/semver-fns.cjs +1 -1
- package/dist/semver-fns.d.cts +92 -2
- package/dist/semver-fns.d.cts.map +1 -0
- package/dist/semver-fns.d.mts +92 -2
- package/dist/semver-fns.d.mts.map +1 -0
- package/dist/semver-fns.mjs +2 -1
- package/dist/semver-fns.mjs.map +1 -0
- package/dist/string-format/src/package.cjs +1 -0
- package/dist/string-format/src/package.mjs +2 -0
- package/dist/string-format/src/package.mjs.map +1 -0
- package/dist/toml.cjs +3 -1
- package/dist/toml.d.cts +81 -2
- package/dist/toml.d.cts.map +1 -0
- package/dist/toml.d.mts +81 -2
- package/dist/toml.d.mts.map +1 -0
- package/dist/toml.mjs +4 -1
- package/dist/toml.mjs.map +1 -0
- package/dist/tsconfig.cjs +1 -1
- package/dist/tsconfig.d.cts +14 -2
- package/dist/tsconfig.d.cts.map +1 -0
- package/dist/tsconfig.d.mts +14 -2
- package/dist/tsconfig.d.mts.map +1 -0
- package/dist/tsconfig.mjs +2 -1
- package/dist/tsconfig.mjs.map +1 -0
- package/dist/type-checks/src/get-object-tag.cjs +1 -0
- package/dist/type-checks/src/get-object-tag.mjs +2 -0
- package/dist/type-checks/src/get-object-tag.mjs.map +1 -0
- package/dist/type-checks/src/index.cjs +1 -0
- package/dist/type-checks/src/index.mjs +1 -0
- package/dist/type-checks/src/is-buffer.cjs +1 -0
- package/dist/type-checks/src/is-buffer.mjs +2 -0
- package/dist/type-checks/src/is-buffer.mjs.map +1 -0
- package/dist/type-checks/src/is-collection.cjs +1 -0
- package/dist/type-checks/src/is-collection.mjs +1 -0
- package/dist/type-checks/src/is-empty.cjs +1 -0
- package/dist/type-checks/src/is-empty.mjs +2 -0
- package/dist/type-checks/src/is-empty.mjs.map +1 -0
- package/dist/type-checks/src/is-error.cjs +1 -0
- package/dist/type-checks/src/is-error.mjs +2 -0
- package/dist/type-checks/src/is-error.mjs.map +1 -0
- package/dist/type-checks/src/is-null.cjs +1 -0
- package/dist/type-checks/src/is-null.mjs +2 -0
- package/dist/type-checks/src/is-null.mjs.map +1 -0
- package/dist/type-checks/src/is-number.cjs +1 -0
- package/dist/type-checks/src/is-number.mjs +2 -0
- package/dist/type-checks/src/is-number.mjs.map +1 -0
- package/dist/type-checks/src/is-object.cjs +1 -0
- package/dist/type-checks/src/is-object.mjs +2 -0
- package/dist/type-checks/src/is-object.mjs.map +1 -0
- package/dist/type-checks/src/is-plain-object.cjs +1 -0
- package/dist/type-checks/src/is-plain-object.mjs +2 -0
- package/dist/type-checks/src/is-plain-object.mjs.map +1 -0
- package/dist/type-checks/src/is-set-string.cjs +1 -0
- package/dist/type-checks/src/is-set-string.mjs +2 -0
- package/dist/type-checks/src/is-set-string.mjs.map +1 -0
- package/dist/type-checks/src/is-set.cjs +1 -0
- package/dist/type-checks/src/is-set.mjs +2 -0
- package/dist/type-checks/src/is-set.mjs.map +1 -0
- package/dist/type-checks/src/is-string.cjs +1 -0
- package/dist/type-checks/src/is-string.mjs +2 -0
- package/dist/type-checks/src/is-string.mjs.map +1 -0
- package/dist/type-checks/src/is-undefined.cjs +1 -0
- package/dist/type-checks/src/is-undefined.mjs +2 -0
- package/dist/type-checks/src/is-undefined.mjs.map +1 -0
- package/dist/type-checks/src/type-detect.cjs +1 -0
- package/dist/type-checks/src/type-detect.mjs +2 -0
- package/dist/type-checks/src/type-detect.mjs.map +1 -0
- package/dist/types/src/base.cjs +1 -0
- package/dist/types/src/base.mjs +2 -0
- package/dist/types/src/base.mjs.map +1 -0
- package/dist/{file-D1uBqkpP.d.cts → types/src/file.d.cts} +2 -2
- package/dist/types/src/file.d.cts.map +1 -0
- package/dist/{file-DauFFmfh.d.mts → types/src/file.d.mts} +2 -2
- package/dist/types/src/file.d.mts.map +1 -0
- package/dist/{package-fns-CxokaGDY.d.mts → types/src/package-json.d.cts} +2 -95
- package/dist/types/src/package-json.d.cts.map +1 -0
- package/dist/{package-fns-BNRi_Rpc.d.cts → types/src/package-json.d.mts} +2 -95
- package/dist/types/src/package-json.d.mts.map +1 -0
- package/dist/types/src/package-manager.d.cts +5 -0
- package/dist/types/src/package-manager.d.cts.map +1 -0
- package/dist/types/src/package-manager.d.mts +5 -0
- package/dist/types/src/package-manager.d.mts.map +1 -0
- package/dist/{tsconfig-B13IMV_0.d.mts → types/src/tsconfig.d.cts} +3 -12
- package/dist/types/src/tsconfig.d.cts.map +1 -0
- package/dist/{tsconfig-C8ecu1-0.d.cts → types/src/tsconfig.d.mts} +3 -12
- package/dist/types/src/tsconfig.d.mts.map +1 -0
- package/dist/write-file.cjs +1 -1
- package/dist/write-file.d.cts +35 -2
- package/dist/write-file.d.cts.map +1 -0
- package/dist/write-file.d.mts +35 -2
- package/dist/write-file.d.mts.map +1 -0
- package/dist/write-file.mjs +2 -1
- package/dist/write-file.mjs.map +1 -0
- package/dist/yaml.cjs +1 -1
- package/dist/yaml.d.cts +23 -2
- package/dist/yaml.d.cts.map +1 -0
- package/dist/yaml.d.mts +23 -2
- package/dist/yaml.d.mts.map +1 -0
- package/dist/yaml.mjs +2 -1
- package/dist/yaml.mjs.map +1 -0
- package/package.json +11 -11
- package/dist/buffer-Ch164vki.cjs +0 -1
- package/dist/buffer-DDq-CW4J.mjs +0 -2
- package/dist/buffer-DDq-CW4J.mjs.map +0 -1
- package/dist/buffer-DgfUmhrc.d.mts +0 -32
- package/dist/buffer-DgfUmhrc.d.mts.map +0 -1
- package/dist/buffer-DvCjrjQH.d.cts +0 -32
- package/dist/buffer-DvCjrjQH.d.cts.map +0 -1
- package/dist/chmod-x-BPr4tt2-.d.cts +0 -44
- package/dist/chmod-x-BPr4tt2-.d.cts.map +0 -1
- package/dist/chmod-x-FOy3sak8.cjs +0 -1
- package/dist/chmod-x-QCk1GmQJ.d.mts +0 -44
- package/dist/chmod-x-QCk1GmQJ.d.mts.map +0 -1
- package/dist/chmod-x-q-TWdus7.mjs +0 -2
- package/dist/chmod-x-q-TWdus7.mjs.map +0 -1
- package/dist/command-exists-CuieR7rx.d.cts +0 -22
- package/dist/command-exists-CuieR7rx.d.cts.map +0 -1
- package/dist/command-exists-D1bV-wSk.cjs +0 -1
- package/dist/command-exists-Dzb2kKT4.mjs +0 -2
- package/dist/command-exists-Dzb2kKT4.mjs.map +0 -1
- package/dist/command-exists-dBdtR0xj.d.mts +0 -22
- package/dist/command-exists-dBdtR0xj.d.mts.map +0 -1
- package/dist/compress-BiTxso15.mjs +0 -2
- package/dist/compress-BiTxso15.mjs.map +0 -1
- package/dist/compress-BjGbQqs_.cjs +0 -1
- package/dist/compress-CLAaOwH3.d.mts +0 -16
- package/dist/compress-CLAaOwH3.d.mts.map +0 -1
- package/dist/compress-CQve2a6h.d.cts +0 -16
- package/dist/compress-CQve2a6h.d.cts.map +0 -1
- package/dist/constants-D58o2CiO.d.cts +0 -5
- package/dist/constants-D58o2CiO.d.cts.map +0 -1
- package/dist/constants-DZz9LJgo.d.mts +0 -5
- package/dist/constants-DZz9LJgo.d.mts.map +0 -1
- package/dist/copy-file-B5FJHiIK.d.mts +0 -39
- package/dist/copy-file-B5FJHiIK.d.mts.map +0 -1
- package/dist/copy-file-Bot2YNtT.mjs +0 -2
- package/dist/copy-file-Bot2YNtT.mjs.map +0 -1
- package/dist/copy-file-DjH2Ho5e.d.cts +0 -39
- package/dist/copy-file-DjH2Ho5e.d.cts.map +0 -1
- package/dist/copy-file-Y1ilzocZ.cjs +0 -1
- package/dist/cwd-YTg9Cx6C.mjs +0 -2
- package/dist/cwd-YTg9Cx6C.mjs.map +0 -1
- package/dist/cwd-o2vq8Tk9.cjs +0 -1
- package/dist/exists-175EN367.d.mts +0 -18
- package/dist/exists-175EN367.d.mts.map +0 -1
- package/dist/exists-B31lSRFp.cjs +0 -1
- package/dist/exists-CVlDImzc.d.cts +0 -18
- package/dist/exists-CVlDImzc.d.cts.map +0 -1
- package/dist/exists-Ci-9lYmi.mjs +0 -2
- package/dist/exists-Ci-9lYmi.mjs.map +0 -1
- package/dist/file-D1uBqkpP.d.cts.map +0 -1
- package/dist/file-DauFFmfh.d.mts.map +0 -1
- package/dist/file-path-fns-7aKacdLg.cjs +0 -1
- package/dist/file-path-fns-BDzC2SIV.mjs +0 -2
- package/dist/file-path-fns-BDzC2SIV.mjs.map +0 -1
- package/dist/get-parent-path-COkh6Pvl.d.mts +0 -32
- package/dist/get-parent-path-COkh6Pvl.d.mts.map +0 -1
- package/dist/get-parent-path-Cbqs2km7.d.cts +0 -32
- package/dist/get-parent-path-Cbqs2km7.d.cts.map +0 -1
- package/dist/get-parent-path-CfRkaB4R.cjs +0 -1
- package/dist/get-parent-path-DLFSyxSW.mjs +0 -2
- package/dist/get-parent-path-DLFSyxSW.mjs.map +0 -1
- package/dist/get-workspace-root-CCNjjZGY.cjs +0 -1
- package/dist/get-workspace-root-DQBvBd8X.d.mts +0 -48
- package/dist/get-workspace-root-DQBvBd8X.d.mts.map +0 -1
- package/dist/get-workspace-root-eTfm1jII.d.cts +0 -48
- package/dist/get-workspace-root-eTfm1jII.d.cts.map +0 -1
- package/dist/get-workspace-root-k66w-wLW.mjs +0 -2
- package/dist/get-workspace-root-k66w-wLW.mjs.map +0 -1
- package/dist/helpers-BSEQb1fp.mjs +0 -2
- package/dist/helpers-BSEQb1fp.mjs.map +0 -1
- package/dist/helpers-CYWFZ-Uv.d.mts +0 -50
- package/dist/helpers-CYWFZ-Uv.d.mts.map +0 -1
- package/dist/helpers-CgMOExPa.d.cts +0 -50
- package/dist/helpers-CgMOExPa.d.cts.map +0 -1
- package/dist/helpers-_MJ6PR-g.cjs +0 -1
- package/dist/install-B3bIjHoU.mjs +0 -2
- package/dist/install-B3bIjHoU.mjs.map +0 -1
- package/dist/install-CZ_S7NHm.cjs +0 -1
- package/dist/install-CxPsLO2t.d.cts +0 -28
- package/dist/install-CxPsLO2t.d.cts.map +0 -1
- package/dist/install-dYt7hlQn.d.mts +0 -29
- package/dist/install-dYt7hlQn.d.mts.map +0 -1
- package/dist/is-error-CjEyTRps.cjs +0 -1
- package/dist/is-error-CjVXmD_8.mjs +0 -2
- package/dist/is-error-CjVXmD_8.mjs.map +0 -1
- package/dist/is-file-BkFQev3M.cjs +0 -1
- package/dist/is-file-CNooe8Wz.mjs +0 -2
- package/dist/is-file-CNooe8Wz.mjs.map +0 -1
- package/dist/is-file-DjqOQrqY.d.mts +0 -36
- package/dist/is-file-DjqOQrqY.d.mts.map +0 -1
- package/dist/is-file-DoBi2FN9.d.cts +0 -36
- package/dist/is-file-DoBi2FN9.d.cts.map +0 -1
- package/dist/is-object-FBXmvehR.cjs +0 -1
- package/dist/is-object-UsKYhyC5.mjs +0 -2
- package/dist/is-object-UsKYhyC5.mjs.map +0 -1
- package/dist/is-set-string-CLeu8BKX.cjs +0 -1
- package/dist/is-set-string-Cj0g4gsG.mjs +0 -2
- package/dist/is-set-string-Cj0g4gsG.mjs.map +0 -1
- package/dist/is-string-91Z3dOKQ.mjs +0 -2
- package/dist/is-string-91Z3dOKQ.mjs.map +0 -1
- package/dist/is-string-DKgNS0jA.cjs +0 -1
- package/dist/join-paths-BHepkhAj.mjs +0 -2
- package/dist/join-paths-BHepkhAj.mjs.map +0 -1
- package/dist/join-paths-DUdaieID.cjs +0 -1
- package/dist/json-CYenVxvr.d.cts +0 -83
- package/dist/json-CYenVxvr.d.cts.map +0 -1
- package/dist/json-DH7Q6Ftp.d.mts +0 -83
- package/dist/json-DH7Q6Ftp.d.mts.map +0 -1
- package/dist/json-DKhqPjHB.cjs +0 -6
- package/dist/json-Dp4PSH2i.mjs +0 -7
- package/dist/json-Dp4PSH2i.mjs.map +0 -1
- package/dist/list-files-Cn_UVruo.cjs +0 -1
- package/dist/list-files-D3dQOljX.d.cts +0 -51
- package/dist/list-files-D3dQOljX.d.cts.map +0 -1
- package/dist/list-files-D3iJzEQw.d.mts +0 -51
- package/dist/list-files-D3iJzEQw.d.mts.map +0 -1
- package/dist/list-files-D__uh3tQ.mjs +0 -2
- package/dist/list-files-D__uh3tQ.mjs.map +0 -1
- package/dist/package-fns-BNRi_Rpc.d.cts.map +0 -1
- package/dist/package-fns-C7-MKgBR.mjs +0 -2
- package/dist/package-fns-C7-MKgBR.mjs.map +0 -1
- package/dist/package-fns-CxokaGDY.d.mts.map +0 -1
- package/dist/package-fns-YTCdMAXr.cjs +0 -1
- package/dist/read-file-B091zB64.mjs +0 -2
- package/dist/read-file-B091zB64.mjs.map +0 -1
- package/dist/read-file-BB2WzW-N.cjs +0 -1
- package/dist/read-file-Bxn1VHKv.d.cts +0 -30
- package/dist/read-file-Bxn1VHKv.d.cts.map +0 -1
- package/dist/read-file-CRVW-wcE.d.mts +0 -30
- package/dist/read-file-CRVW-wcE.d.mts.map +0 -1
- package/dist/registry-B1taIPKm.mjs +0 -2
- package/dist/registry-B1taIPKm.mjs.map +0 -1
- package/dist/registry-BQ3JXRFA.d.mts +0 -53
- package/dist/registry-BQ3JXRFA.d.mts.map +0 -1
- package/dist/registry-BYwvM92u.cjs +0 -1
- package/dist/registry-C2A0Kau7.d.cts +0 -53
- package/dist/registry-C2A0Kau7.d.cts.map +0 -1
- package/dist/remove-file-BM64Brdf.mjs +0 -2
- package/dist/remove-file-BM64Brdf.mjs.map +0 -1
- package/dist/remove-file-BqlkL_Df.d.mts +0 -16
- package/dist/remove-file-BqlkL_Df.d.mts.map +0 -1
- package/dist/remove-file-XHFKELQN.cjs +0 -1
- package/dist/remove-file-lQOlxDwr.d.cts +0 -16
- package/dist/remove-file-lQOlxDwr.d.cts.map +0 -1
- package/dist/resolve-C_YsCFne.mjs +0 -4
- package/dist/resolve-C_YsCFne.mjs.map +0 -1
- package/dist/resolve-D66oIwjf.d.mts +0 -106
- package/dist/resolve-D66oIwjf.d.mts.map +0 -1
- package/dist/resolve-DTkLQekH.cjs +0 -3
- package/dist/resolve-DubH-8qd.d.cts +0 -106
- package/dist/resolve-DubH-8qd.d.cts.map +0 -1
- package/dist/resolve-parent-path-CR8av8WP.mjs +0 -2
- package/dist/resolve-parent-path-CR8av8WP.mjs.map +0 -1
- package/dist/resolve-parent-path-D0AaW2PB.cjs +0 -1
- package/dist/semver-fns-B0e5zB6C.d.mts +0 -92
- package/dist/semver-fns-B0e5zB6C.d.mts.map +0 -1
- package/dist/semver-fns-Btrm1dIF.cjs +0 -1
- package/dist/semver-fns-DjhZXnUw.d.cts +0 -92
- package/dist/semver-fns-DjhZXnUw.d.cts.map +0 -1
- package/dist/semver-fns-F_rYnwDq.mjs +0 -2
- package/dist/semver-fns-F_rYnwDq.mjs.map +0 -1
- package/dist/toml-CIgLQmP3.mjs +0 -4
- package/dist/toml-CIgLQmP3.mjs.map +0 -1
- package/dist/toml-D3X2QoaL.d.cts +0 -81
- package/dist/toml-D3X2QoaL.d.cts.map +0 -1
- package/dist/toml-DgVyNp_y.cjs +0 -3
- package/dist/toml-Djau1M6n.d.mts +0 -81
- package/dist/toml-Djau1M6n.d.mts.map +0 -1
- package/dist/tsconfig-B13IMV_0.d.mts.map +0 -1
- package/dist/tsconfig-B6WtgD1c.cjs +0 -1
- package/dist/tsconfig-C8ecu1-0.d.cts.map +0 -1
- package/dist/tsconfig-CqvvSVuX.mjs +0 -2
- package/dist/tsconfig-CqvvSVuX.mjs.map +0 -1
- package/dist/write-file-BmvbsmMj.d.cts +0 -35
- package/dist/write-file-BmvbsmMj.d.cts.map +0 -1
- package/dist/write-file-CFByoJkN.mjs +0 -2
- package/dist/write-file-CFByoJkN.mjs.map +0 -1
- package/dist/write-file-CWTzQpb2.d.mts +0 -35
- package/dist/write-file-CWTzQpb2.d.mts.map +0 -1
- package/dist/write-file-CqokudVp.cjs +0 -1
- package/dist/yaml-6uuLoSfT.d.cts +0 -23
- package/dist/yaml-6uuLoSfT.d.cts.map +0 -1
- package/dist/yaml-CLMo56UG.mjs +0 -2
- package/dist/yaml-CLMo56UG.mjs.map +0 -1
- package/dist/yaml-Ddslc5NK.d.mts +0 -23
- package/dist/yaml-Ddslc5NK.d.mts.map +0 -1
- package/dist/yaml-q2k-BjIM.cjs +0 -1
package/dist/toml-Djau1M6n.d.mts
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
//#region src/toml.d.ts
|
|
2
|
-
type XOptions = null | {
|
|
3
|
-
readonly keys?: null | RegExp;
|
|
4
|
-
readonly order?: boolean;
|
|
5
|
-
readonly exact?: boolean;
|
|
6
|
-
readonly multi?: boolean;
|
|
7
|
-
readonly longer?: boolean;
|
|
8
|
-
readonly string?: boolean;
|
|
9
|
-
readonly comment?: boolean;
|
|
10
|
-
readonly literal?: boolean;
|
|
11
|
-
readonly null?: boolean;
|
|
12
|
-
readonly tag?: null | (<Table extends object & {
|
|
13
|
-
[key: string | symbol]: any;
|
|
14
|
-
}, Key extends string | symbol, Array extends any[], Index extends number, Tag extends string>(this: void, each: {
|
|
15
|
-
table: Table;
|
|
16
|
-
key: Key;
|
|
17
|
-
tag: Tag;
|
|
18
|
-
} | {
|
|
19
|
-
array: Array;
|
|
20
|
-
index: Index;
|
|
21
|
-
tag: Tag;
|
|
22
|
-
} | {
|
|
23
|
-
table: Table;
|
|
24
|
-
key: Key;
|
|
25
|
-
array: Array;
|
|
26
|
-
index: Index;
|
|
27
|
-
tag: Tag;
|
|
28
|
-
}) => void);
|
|
29
|
-
};
|
|
30
|
-
interface TomlReadOptions {
|
|
31
|
-
specificationVersion?: 1.0 | 0.5 | 0.4 | 0.3 | 0.2 | 0.1;
|
|
32
|
-
multilineStringJoiner?: string;
|
|
33
|
-
useBigInt?: boolean | number;
|
|
34
|
-
xOptions?: XOptions;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Reads a TOML file and returns the object the TOML content represents.
|
|
38
|
-
*
|
|
39
|
-
* @param path - A path to a file.
|
|
40
|
-
* @param options - TOML parse options
|
|
41
|
-
* @returns Object the TOML content of the file represents
|
|
42
|
-
*/
|
|
43
|
-
declare function readTomlFileSync<T extends object = any>(path: string, options?: TomlReadOptions): T;
|
|
44
|
-
/**
|
|
45
|
-
* Reads a TOML file and returns the object the TOML content represents.
|
|
46
|
-
*
|
|
47
|
-
* @param path - A path to a file.
|
|
48
|
-
* @param options - TOML parse options
|
|
49
|
-
* @returns Object the TOML content of the file represents
|
|
50
|
-
*/
|
|
51
|
-
declare function readTomlFile<T extends object = any>(path: string, options?: TomlReadOptions): Promise<T>;
|
|
52
|
-
interface TomlWriteOptions {
|
|
53
|
-
integer?: number;
|
|
54
|
-
newline?: "\n" | "\r\n";
|
|
55
|
-
newlineAround?: "document" | "section" | "header" | "pairs" | "pair";
|
|
56
|
-
indent?: string | number;
|
|
57
|
-
T?: "T" | "t" | " ";
|
|
58
|
-
Z?: "Z" | "z";
|
|
59
|
-
xNull?: boolean;
|
|
60
|
-
xBeforeNewlineInMultilineTable?: "," | "";
|
|
61
|
-
forceInlineArraySpacing?: 0 | 1 | 2 | 3;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Reads a TOML file and returns the object the TOML content represents.
|
|
65
|
-
*
|
|
66
|
-
* @param path - A path to a file.
|
|
67
|
-
* @param data - data which should be serialized/formatted to TOML and written to the file
|
|
68
|
-
* @param options - TOML parse options
|
|
69
|
-
*/
|
|
70
|
-
declare function writeTomlFileSync<T extends object = any>(path: string, data: T, options?: TomlWriteOptions): void;
|
|
71
|
-
/**
|
|
72
|
-
* Reads a TOML file and returns the object the TOML content represents.
|
|
73
|
-
*
|
|
74
|
-
* @param path - A path to a file.
|
|
75
|
-
* @param data - data which should be serialized/formatted to TOML and written to the file
|
|
76
|
-
* @param options - TOML parse options
|
|
77
|
-
*/
|
|
78
|
-
declare function writeTomlFile<T extends object = any>(path: string, data: T, options?: TomlWriteOptions): Promise<void>;
|
|
79
|
-
//#endregion
|
|
80
|
-
export { readTomlFileSync as a, readTomlFile as i, TomlWriteOptions as n, writeTomlFile as o, XOptions as r, writeTomlFileSync as s, TomlReadOptions as t };
|
|
81
|
-
//# sourceMappingURL=toml-Djau1M6n.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toml-Djau1M6n.d.mts","names":[],"sources":["../src/toml.ts"],"sourcesContent":[],"mappings":";KAuBY,QAAA;EAAA,SAAA,IAAQ,CAAA,EAAA,IAAA,GACK,MADL;EACK,SAAA,KAAA,CAAA,EAAA,OAAA;EAoBJ,SAAA,KAAA,CAAA,EAAA,OAAA;EAAY,SAAA,KAAA,CAAA,EAAA,OAAA;EAAU,SAAA,MAAA,CAAA,EAAA,OAAA;EACtB,SAAA,MAAA,CAAA,EAAA,OAAA;EAAc,SAAA,OAAA,CAAA,EAAA,OAAA;EAAY,SAAA,OAAA,CAAA,EAAA,OAAA;EAC1B,SAAA,IAAA,CAAA,EAAA,OAAA;EAAY,SAAA,GAAA,CAAA,EAAA,IAAA,GAAA,CAAA,CAAA,cAAA,MAAA,GAAA;IAAY,CAAA,GAAA,EAAA,MAAA,GAAA,MAAA,CAAA,EAAA,GAAA;EAAc,CAAA,EAAA,YAA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;;;;;;;;;;;;;;UAiBA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;UA4BA,YAAA;;;;oBAIG;;;;iBAKH;;;;oBAKG;;;;;;;;;;;;;;;;;;;;;;YA2BR;;;;;;YAOA;;;;eAKG;;;;;;AAjqCf;AAOA;AA6BA;AAOA;AA2BY,iBCvDU,YAAA,CDuDP,QAAA,CAAA,EAAA,MAAA,CAAA,ECrDZ,ODqDY,CCrDJ,YDqDI,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./cwd-o2vq8Tk9.cjs`),n=require(`./join-paths-DUdaieID.cjs`),r=require(`./file-path-fns-7aKacdLg.cjs`),i=require(`./exists-B31lSRFp.cjs`),a=require(`./get-parent-path-CfRkaB4R.cjs`),o=require(`./resolve-DTkLQekH.cjs`),s=require(`./json-DKhqPjHB.cjs`);let c=require(`defu`);c=e.t(c);async function l(e=t.t()){let u=r.t(e)===`json`?e:n.t(e,`tsconfig.json`);if(!i.n(u)&&(u=await o.o(e,{extensions:[`json`]}),!i.n(u)))throw Error(`tsconfig.json not found at ${u}. Please ensure the file exists.`);let d=await s.t(u);if(d?.compilerOptions?.baseUrl&&(d.compilerOptions.baseUrl=n.t(r.r(u),d.compilerOptions.baseUrl)),d?.extends)for(let e of a.n(d.extends)){let t=await l(n.a(e)?e:n.t(r.r(u),e));t&&(d=(0,c.default)(d,t??{}))}return d.extends=void 0,d}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return l}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tsconfig-C8ecu1-0.d.cts","names":[],"sources":["../../types/src/tsconfig.ts","../src/tsconfig.ts"],"sourcesContent":[],"mappings":";;;KAoBY,GAAA;KAOA,MAAA;AAPA,KAoCA,OAAA,GApCG,MAAA,GAAA,IAAA,GAAA,MAAA,GAAA,IAAA;AAOH,KAoCA,MAAA,GApCM,KAAA,GAAA,KAAA,GAAA,KA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;;;;;oBA0JP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA6CG;;KAGX,aAAA;KAQA,kBAAA;KAMA,gBAAA;UAMK,YAAA;;;;;;cAMH,gBAAgB,UAAU;;;;;;mBAOrB,qBAAqB,UAAU;;;;oBAK9B,mBAAmB,UAAU;;;;;;;;;;;;;;;;;UAqBhC,eAAA;;;;;;;;;;;;;;UAiBA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;UA4BA,YAAA;;;;oBAIG;;;;iBAKH;;;;oBAKG;;;;;;;;;;;;;;;;;;;;;;YA2BR;;;;;;YAOA;;;;eAKG;;;;;;AAjqCf;AAOA;AA6BA;AAOA;AA2BY,iBCvDU,YAAA,CDuDP,QAAA,CAAA,EAAA,MAAA,CAAA,ECrDZ,ODqDY,CCrDJ,YDqDI,CAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./cwd-YTg9Cx6C.mjs";import{a as t,t as n}from"./join-paths-BHepkhAj.mjs";import{r,t as i}from"./file-path-fns-BDzC2SIV.mjs";import{n as a}from"./exists-Ci-9lYmi.mjs";import{n as o}from"./get-parent-path-DLFSyxSW.mjs";import{o as s}from"./resolve-C_YsCFne.mjs";import{t as c}from"./json-Dp4PSH2i.mjs";import l from"defu";async function u(d=e()){let f=i(d)===`json`?d:n(d,`tsconfig.json`);if(!a(f)&&(f=await s(d,{extensions:[`json`]}),!a(f)))throw Error(`tsconfig.json not found at ${f}. Please ensure the file exists.`);let p=await c(f);if(p?.compilerOptions?.baseUrl&&(p.compilerOptions.baseUrl=n(r(f),p.compilerOptions.baseUrl)),p?.extends)for(let e of o(p.extends)){let i=await u(t(e)?e:n(r(f),e));i&&(p=l(p,i??{}))}return p.extends=void 0,p}export{u as t};
|
|
2
|
-
//# sourceMappingURL=tsconfig-CqvvSVuX.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tsconfig-CqvvSVuX.mjs","names":[],"sources":["../src/tsconfig.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { cwd } from \"@stryke/path/cwd\";\nimport { findFileExtension, findFilePath } from \"@stryke/path/file-path-fns\";\nimport { isNpmScopedPackage } from \"@stryke/path/is-type\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport type { TsConfigJson } from \"@stryke/types/tsconfig\";\nimport defu from \"defu\";\nimport { existsSync } from \"./exists\";\nimport { readJsonFile } from \"./json\";\nimport { resolve } from \"./resolve\";\n\n/**\n * Loads a tsconfig.json file and returns the parsed JSON object.\n *\n * @param filePath - The directory to start searching for the tsconfig.json file.\n * @returns The parsed tsconfig.json object or null if not found.\n */\nexport async function loadTsConfig(\n filePath: string = cwd()\n): Promise<TsConfigJson> {\n let tsconfigFilePath =\n findFileExtension(filePath) === \"json\"\n ? filePath\n : joinPaths(filePath, \"tsconfig.json\");\n if (!existsSync(tsconfigFilePath)) {\n tsconfigFilePath = await resolve(filePath, { extensions: [\"json\"] });\n if (!existsSync(tsconfigFilePath)) {\n throw new Error(\n `tsconfig.json not found at ${tsconfigFilePath}. Please ensure the file exists.`\n );\n }\n }\n\n let config = await readJsonFile<TsConfigJson>(tsconfigFilePath);\n if (config?.compilerOptions?.baseUrl) {\n config.compilerOptions.baseUrl = joinPaths(\n findFilePath(tsconfigFilePath),\n config.compilerOptions.baseUrl\n );\n }\n\n if (config?.extends) {\n for (const extendsName of toArray(config.extends)) {\n const parentConfig = await loadTsConfig(\n isNpmScopedPackage(extendsName)\n ? extendsName\n : joinPaths(findFilePath(tsconfigFilePath), extendsName)\n );\n if (parentConfig) {\n config = defu(config, parentConfig ?? {});\n }\n }\n }\n\n config.extends = undefined;\n return config;\n}\n"],"mappings":"mVAmCA,eAAsB,EACpB,EAAmB,GAAK,CACD,CACvB,IAAI,EACF,EAAkB,EAAS,GAAK,OAC5B,EACA,EAAU,EAAU,gBAAgB,CAC1C,GAAI,CAAC,EAAW,EAAiB,GAC/B,EAAmB,MAAM,EAAQ,EAAU,CAAE,WAAY,CAAC,OAAO,CAAE,CAAC,CAChE,CAAC,EAAW,EAAiB,EAC/B,MAAU,MACR,8BAA8B,EAAiB,kCAChD,CAIL,IAAI,EAAS,MAAM,EAA2B,EAAiB,CAQ/D,GAPI,GAAQ,iBAAiB,UAC3B,EAAO,gBAAgB,QAAU,EAC/B,EAAa,EAAiB,CAC9B,EAAO,gBAAgB,QACxB,EAGC,GAAQ,QACV,IAAK,IAAM,KAAe,EAAQ,EAAO,QAAQ,CAAE,CACjD,IAAM,EAAe,MAAM,EACzB,EAAmB,EAAY,CAC3B,EACA,EAAU,EAAa,EAAiB,CAAE,EAAY,CAC3D,CACG,IACF,EAAS,EAAK,EAAQ,GAAgB,EAAE,CAAC,EAM/C,MADA,GAAO,QAAU,IAAA,GACV"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { t as Encoding } from "./constants-D58o2CiO.cjs";
|
|
2
|
-
import { Abortable } from "node:events";
|
|
3
|
-
import { Mode, ObjectEncodingOptions, OpenMode, WriteFileOptions } from "node:fs";
|
|
4
|
-
|
|
5
|
-
//#region src/write-file.d.ts
|
|
6
|
-
interface WriteFileOptions$1 {
|
|
7
|
-
/**
|
|
8
|
-
* Whether to create the directory if it does not exist
|
|
9
|
-
*
|
|
10
|
-
* @defaultValue true
|
|
11
|
-
*/
|
|
12
|
-
createDirectory?: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Write the given content to the given file path
|
|
16
|
-
*
|
|
17
|
-
* @param filePath - The file path to write to
|
|
18
|
-
* @param content - The content to write to the file
|
|
19
|
-
*/
|
|
20
|
-
declare const writeFileSync: (filePath: string, content?: string, options?: WriteFileOptions$1 & WriteFileOptions) => void;
|
|
21
|
-
/**
|
|
22
|
-
* Read the given content to the given file path
|
|
23
|
-
*
|
|
24
|
-
* @param filePath - The file path to read to
|
|
25
|
-
* @param content - The content to write to the file
|
|
26
|
-
* @returns The content of the file
|
|
27
|
-
*/
|
|
28
|
-
declare const writeFile: (filePath: string, content?: string, options?: WriteFileOptions$1 & ((ObjectEncodingOptions & {
|
|
29
|
-
mode?: Mode | undefined;
|
|
30
|
-
flag?: OpenMode | undefined;
|
|
31
|
-
flush?: boolean | undefined;
|
|
32
|
-
} & Abortable) | Encoding)) => Promise<void>;
|
|
33
|
-
//#endregion
|
|
34
|
-
export { writeFile as n, writeFileSync as r, WriteFileOptions$1 as t };
|
|
35
|
-
//# sourceMappingURL=write-file-BmvbsmMj.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"write-file-BmvbsmMj.d.cts","names":[],"sources":["../src/write-file.ts"],"sourcesContent":[],"mappings":";;;;;UAiCiB,kBAAA;;AAAjB;AAeA;AA4BA;;EAKS,eAAA,CAAA,EAAA,OAAA;;;;;;;;cAjCI,8DAGF,qBAAmB;;;;;;;;cAyBjB,0DAGF,uBAEF;SACQ;SACA;;IAEL,aACJ,cAEL"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as e,r as t}from"./file-path-fns-BDzC2SIV.mjs";import{n}from"./exists-Ci-9lYmi.mjs";import{n as r,t as i}from"./helpers-BSEQb1fp.mjs";import{writeFileSync as a}from"node:fs";import{writeFile as o}from"node:fs/promises";const s=(i,o=``,s={})=>{if(!i)throw Error(`No file path provided to write data`);let c=t(e(i));if(!n(c))if(s.createDirectory!==!1)r(c);else throw Error(`Directory ${c} does not exist`);a(i,o||``,s)},c=async(r,a=``,s={})=>{if(!r)throw Error(`No file path provided to read data`);let c=t(e(r));if(!n(c))if(s.createDirectory!==!1)await i(c);else throw Error(`Directory ${c} does not exist`);return o(r,a||``,s)};export{s as n,c as t};
|
|
2
|
-
//# sourceMappingURL=write-file-CFByoJkN.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"write-file-CFByoJkN.mjs","names":["writeFileSync","existsSync","writeFile","writeFileFs"],"sources":["../src/write-file.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { correctPath } from \"@stryke/path/correct-path\";\nimport { findFilePath } from \"@stryke/path/file-path-fns\";\nimport type { Abortable } from \"node:events\";\nimport type {\n WriteFileOptions as FSWriteFileOptions,\n Mode,\n ObjectEncodingOptions,\n OpenMode\n} from \"node:fs\";\nimport { writeFileSync as writeFileSyncFs } from \"node:fs\";\nimport { writeFile as writeFileFs } from \"node:fs/promises\";\nimport type { Encoding } from \"./constants\";\nimport { existsSync } from \"./exists\";\nimport { createDirectory, createDirectorySync } from \"./helpers\";\n\nexport interface WriteFileOptions {\n /**\n * Whether to create the directory if it does not exist\n *\n * @defaultValue true\n */\n createDirectory?: boolean;\n}\n\n/**\n * Write the given content to the given file path\n *\n * @param filePath - The file path to write to\n * @param content - The content to write to the file\n */\nexport const writeFileSync = (\n filePath: string,\n content = \"\",\n options: WriteFileOptions & FSWriteFileOptions = {}\n): void => {\n if (!filePath) {\n throw new Error(\"No file path provided to write data\");\n }\n\n const directory = findFilePath(correctPath(filePath));\n if (!existsSync(directory)) {\n if (options.createDirectory !== false) {\n createDirectorySync(directory);\n } else {\n throw new Error(`Directory ${directory} does not exist`);\n }\n }\n\n writeFileSyncFs(filePath, content || \"\", options);\n};\n\n/**\n * Read the given content to the given file path\n *\n * @param filePath - The file path to read to\n * @param content - The content to write to the file\n * @returns The content of the file\n */\nexport const writeFile = async (\n filePath: string,\n content = \"\",\n options: WriteFileOptions &\n (\n | (ObjectEncodingOptions & {\n mode?: Mode | undefined;\n flag?: OpenMode | undefined;\n flush?: boolean | undefined;\n } & Abortable)\n | Encoding\n ) = {}\n): Promise<void> => {\n if (!filePath) {\n throw new Error(\"No file path provided to read data\");\n }\n\n const directory = findFilePath(correctPath(filePath));\n if (!existsSync(directory)) {\n if (options.createDirectory !== false) {\n await createDirectory(directory);\n } else {\n throw new Error(`Directory ${directory} does not exist`);\n }\n }\n\n return writeFileFs(filePath, content || \"\", options);\n};\n"],"mappings":"oOAgDA,MAAaA,GACX,EACA,EAAU,GACV,EAAiD,EAAE,GAC1C,CACT,GAAI,CAAC,EACH,MAAU,MAAM,sCAAsC,CAGxD,IAAM,EAAY,EAAa,EAAY,EAAS,CAAC,CACrD,GAAI,CAACC,EAAW,EAAU,CACxB,GAAI,EAAQ,kBAAoB,GAC9B,EAAoB,EAAU,MAE9B,MAAU,MAAM,aAAa,EAAU,iBAAiB,CAI5D,EAAgB,EAAU,GAAW,GAAI,EAAQ,EAUtCC,EAAY,MACvB,EACA,EAAU,GACV,EAQM,EAAE,GACU,CAClB,GAAI,CAAC,EACH,MAAU,MAAM,qCAAqC,CAGvD,IAAM,EAAY,EAAa,EAAY,EAAS,CAAC,CACrD,GAAI,CAACD,EAAW,EAAU,CACxB,GAAI,EAAQ,kBAAoB,GAC9B,MAAM,EAAgB,EAAU,MAEhC,MAAU,MAAM,aAAa,EAAU,iBAAiB,CAI5D,OAAOE,EAAY,EAAU,GAAW,GAAI,EAAQ"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { t as Encoding } from "./constants-DZz9LJgo.mjs";
|
|
2
|
-
import { Mode, ObjectEncodingOptions, OpenMode, WriteFileOptions } from "node:fs";
|
|
3
|
-
import { Abortable } from "node:events";
|
|
4
|
-
|
|
5
|
-
//#region src/write-file.d.ts
|
|
6
|
-
interface WriteFileOptions$1 {
|
|
7
|
-
/**
|
|
8
|
-
* Whether to create the directory if it does not exist
|
|
9
|
-
*
|
|
10
|
-
* @defaultValue true
|
|
11
|
-
*/
|
|
12
|
-
createDirectory?: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Write the given content to the given file path
|
|
16
|
-
*
|
|
17
|
-
* @param filePath - The file path to write to
|
|
18
|
-
* @param content - The content to write to the file
|
|
19
|
-
*/
|
|
20
|
-
declare const writeFileSync$1: (filePath: string, content?: string, options?: WriteFileOptions$1 & WriteFileOptions) => void;
|
|
21
|
-
/**
|
|
22
|
-
* Read the given content to the given file path
|
|
23
|
-
*
|
|
24
|
-
* @param filePath - The file path to read to
|
|
25
|
-
* @param content - The content to write to the file
|
|
26
|
-
* @returns The content of the file
|
|
27
|
-
*/
|
|
28
|
-
declare const writeFile: (filePath: string, content?: string, options?: WriteFileOptions$1 & ((ObjectEncodingOptions & {
|
|
29
|
-
mode?: Mode | undefined;
|
|
30
|
-
flag?: OpenMode | undefined;
|
|
31
|
-
flush?: boolean | undefined;
|
|
32
|
-
} & Abortable) | Encoding)) => Promise<void>;
|
|
33
|
-
//#endregion
|
|
34
|
-
export { writeFile as n, writeFileSync$1 as r, WriteFileOptions$1 as t };
|
|
35
|
-
//# sourceMappingURL=write-file-CWTzQpb2.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"write-file-CWTzQpb2.d.mts","names":[],"sources":["../src/write-file.ts"],"sourcesContent":[],"mappings":";;;;;UAiCiB,kBAAA;;AAAjB;AAeA;AA4BA;;EAKS,eAAA,CAAA,EAAA,OAAA;;;;;;;;cAjCI,gEAGF,qBAAmB;;;;;;;;cAyBjB,0DAGF,uBAEF;SACQ;SACA;;IAEL,aACJ,cAEL"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./file-path-fns-7aKacdLg.cjs`),n=require(`./exists-B31lSRFp.cjs`),r=require(`./helpers-_MJ6PR-g.cjs`);let i=require(`node:fs`),a=require(`node:fs/promises`);const o=(e,a=``,o={})=>{if(!e)throw Error(`No file path provided to write data`);let s=t.r(t.c(e));if(!n.n(s))if(o.createDirectory!==!1)r.n(s);else throw Error(`Directory ${s} does not exist`);(0,i.writeFileSync)(e,a||``,o)},s=async(e,i=``,o={})=>{if(!e)throw Error(`No file path provided to read data`);let s=t.r(t.c(e));if(!n.n(s))if(o.createDirectory!==!1)await r.t(s);else throw Error(`Directory ${s} does not exist`);return(0,a.writeFile)(e,i||``,o)};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
package/dist/yaml-6uuLoSfT.d.cts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DocumentOptions, ParseOptions, SchemaOptions, ToJSOptions } from "yaml";
|
|
2
|
-
|
|
3
|
-
//#region src/yaml.d.ts
|
|
4
|
-
type YamlReadOptions = ParseOptions & DocumentOptions & SchemaOptions & ToJSOptions;
|
|
5
|
-
/**
|
|
6
|
-
* Reads a YAML file and returns the object the YAML content represents.
|
|
7
|
-
*
|
|
8
|
-
* @param path - A path to a file.
|
|
9
|
-
* @param options - YAML parse options
|
|
10
|
-
* @returns Object the YAML content of the file represents
|
|
11
|
-
*/
|
|
12
|
-
declare function readYamlFileSync<T extends object = any>(path: string, options?: YamlReadOptions): T;
|
|
13
|
-
/**
|
|
14
|
-
* Reads a YAML file and returns the object the YAML content represents.
|
|
15
|
-
*
|
|
16
|
-
* @param path - A path to a file.
|
|
17
|
-
* @param options - YAML parse options
|
|
18
|
-
* @returns Object the YAML content of the file represents
|
|
19
|
-
*/
|
|
20
|
-
declare function readYamlFile<T extends object = any>(path: string, options?: YamlReadOptions): Promise<T>;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { readYamlFile as n, readYamlFileSync as r, YamlReadOptions as t };
|
|
23
|
-
//# sourceMappingURL=yaml-6uuLoSfT.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"yaml-6uuLoSfT.d.cts","names":[],"sources":["../src/yaml.ts"],"sourcesContent":[],"mappings":";;;KA2BY,eAAA,GAAkB,eAC5B,kBACA,gBACA;;AAHF;;;;;;AAYgB,iBAAA,gBAEJ,CAAA,UAAA,MACR,GAAA,GAAA,CAAA,CAAA,IAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EADQ,eACR,CAAA,EAAD,CAAC;AAWJ;;;;;;;iBAAsB,6DAEX,kBACR,QAAQ"}
|
package/dist/yaml-CLMo56UG.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"yaml-CLMo56UG.mjs","names":[],"sources":["../src/yaml.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type {\n DocumentOptions,\n ParseOptions,\n SchemaOptions,\n ToJSOptions\n} from \"yaml\";\nimport { parse } from \"yaml\";\nimport { readFile, readFileSync } from \"./read-file\";\n\nexport type YamlReadOptions = ParseOptions &\n DocumentOptions &\n SchemaOptions &\n ToJSOptions;\n\n/**\n * Reads a YAML file and returns the object the YAML content represents.\n *\n * @param path - A path to a file.\n * @param options - YAML parse options\n * @returns Object the YAML content of the file represents\n */\nexport function readYamlFileSync<T extends object = any>(\n path: string,\n options?: YamlReadOptions\n): T {\n return parse(readFileSync(path), options) as T;\n}\n\n/**\n * Reads a YAML file and returns the object the YAML content represents.\n *\n * @param path - A path to a file.\n * @param options - YAML parse options\n * @returns Object the YAML content of the file represents\n */\nexport async function readYamlFile<T extends object = any>(\n path: string,\n options: YamlReadOptions = {}\n): Promise<T> {\n return parse(await readFile(path), options) as T;\n}\n"],"mappings":"4EAuCA,SAAgB,EACd,EACA,EACG,CACH,OAAO,EAAM,EAAa,EAAK,CAAE,EAAQ,CAU3C,eAAsB,EACpB,EACA,EAA2B,EAAE,CACjB,CACZ,OAAO,EAAM,MAAM,EAAS,EAAK,CAAE,EAAQ"}
|
package/dist/yaml-Ddslc5NK.d.mts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DocumentOptions, ParseOptions, SchemaOptions, ToJSOptions } from "yaml";
|
|
2
|
-
|
|
3
|
-
//#region src/yaml.d.ts
|
|
4
|
-
type YamlReadOptions = ParseOptions & DocumentOptions & SchemaOptions & ToJSOptions;
|
|
5
|
-
/**
|
|
6
|
-
* Reads a YAML file and returns the object the YAML content represents.
|
|
7
|
-
*
|
|
8
|
-
* @param path - A path to a file.
|
|
9
|
-
* @param options - YAML parse options
|
|
10
|
-
* @returns Object the YAML content of the file represents
|
|
11
|
-
*/
|
|
12
|
-
declare function readYamlFileSync<T extends object = any>(path: string, options?: YamlReadOptions): T;
|
|
13
|
-
/**
|
|
14
|
-
* Reads a YAML file and returns the object the YAML content represents.
|
|
15
|
-
*
|
|
16
|
-
* @param path - A path to a file.
|
|
17
|
-
* @param options - YAML parse options
|
|
18
|
-
* @returns Object the YAML content of the file represents
|
|
19
|
-
*/
|
|
20
|
-
declare function readYamlFile<T extends object = any>(path: string, options?: YamlReadOptions): Promise<T>;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { readYamlFile as n, readYamlFileSync as r, YamlReadOptions as t };
|
|
23
|
-
//# sourceMappingURL=yaml-Ddslc5NK.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"yaml-Ddslc5NK.d.mts","names":[],"sources":["../src/yaml.ts"],"sourcesContent":[],"mappings":";;;KA2BY,eAAA,GAAkB,eAC5B,kBACA,gBACA;;AAHF;;;;;;AAYgB,iBAAA,gBAEJ,CAAA,UAAA,MACR,GAAA,GAAA,CAAA,CAAA,IAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EADQ,eACR,CAAA,EAAD,CAAC;AAWJ;;;;;;;iBAAsB,6DAEX,kBACR,QAAQ"}
|
package/dist/yaml-q2k-BjIM.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./read-file-BB2WzW-N.cjs`);let n=require(`yaml`);function r(e,r){return(0,n.parse)(t.i(e),r)}async function i(e,r={}){return(0,n.parse)(await t.t(e),r)}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
|