@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-path-fns-BDzC2SIV.mjs","names":["char: string | null","currentDir","cwd","currentDir"],"sources":["../../path/src/is-parent-path.ts","../../path/src/append.ts","../../path/src/correct-path.ts","../../types/src/base.ts","../../path/src/file-path-fns.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 { slash } from \"./slash\";\n\n/**\n * Check if a given path is a parent of another path.\n *\n * @example\n * ```ts\n * isParentPath(\"/home/user/project/src/index.ts\", \"/home/user/project/src\");\n * // returns true\n * isParentPath(\"/home/user/project/src/index.ts\", \"/home/user/project\");\n * // returns true\n * isParentPath(\"/home/user/project/src/index.ts\", \"/home/user/project/src/other\");\n * // returns false\n * isParentPath(\"/home/user/project/src/index.ts\", \"/home/user/other\");\n * // returns false\n * isParentPath(\"/home/user/project/src/index.ts\", \"/home/user/project/src/index.ts\");\n * // returns false\n * ```\n *\n * @param childPath - The path to check if it is a child of the parent path.\n * @param parentPath - The path to check if it is a parent of the child path.\n * @returns `true` if `childPath` is a child of `parentPath`, otherwise `false`.\n */\nexport function isParentPath(childPath: string, parentPath: string): boolean {\n const normalizedChild = slash(\n childPath.replace(/\\\\/g, \"/\").replace(/\\/$/, \"\")\n );\n const normalizedParent = slash(\n parentPath.replace(/\\\\/g, \"/\").replace(/\\/$/, \"\")\n );\n\n return (\n normalizedChild !== normalizedParent &&\n normalizedChild.startsWith(`${normalizedParent}/`)\n );\n}\n","/* -------------------------------------------------------------------\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 { cwd } from \"./cwd\";\nimport { isParentPath } from \"./is-parent-path\";\nimport { joinPaths } from \"./join-paths\";\nimport { slash } from \"./slash\";\n\n/**\n * If not already a parent path, append the base path from the beginning of the given child path.\n *\n * @example\n * ```ts\n * appendPath(\"src/index.ts\", \"/home/user/project\");\n * // returns \"/home/user/project/src/index.ts\"\n *\n * appendPath(\"/user/dev/app.ts\", \"/user/dev\");\n * // returns \"/user/dev/app.ts\"\n * ```\n *\n * @param childPath - The child path to append to the {@link parentPath}\n * @param parentPath - The parent path to add the {@link childPath} to\n * @returns The {@link parentPath} with the {@link childPath} appended\n */\nexport function appendPath(\n childPath: string,\n parentPath: string = cwd()\n): string {\n return slash(\n !isParentPath(childPath, parentPath)\n ? joinPaths(parentPath, childPath)\n : childPath\n );\n}\n\nexport const append = appendPath;\n\n/**\n * Append the extension to the given path.\n *\n * @example\n * ```ts\n * appendExtension(\"/home/user/project/src/index\", \".ts\");\n * // returns \"/home/user/project/src/index.ts\"\n * appendExtension(\"/home/user/project/src/index.ts\", \".js\");\n * // returns \"/home/user/project/src/index.ts.js\"\n * ```\n *\n * @param path - The path to append the extension to.\n * @param extension - The extension to append.\n * @returns The path with the appended extension.\n */\nexport function appendExtension(path: string, extension: string): string {\n return `${path}.${extension.replace(/^\\./, \"\")}`;\n}\n","/* -------------------------------------------------------------------\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 { appendPath } from \"./append\";\nimport { cwd as currentDir } from \"./cwd\";\nimport { isAbsolutePath } from \"./is-type\";\nimport { joinPaths } from \"./join-paths\";\nimport {\n DRIVE_LETTER_REGEX,\n DRIVE_LETTER_START_REGEX,\n UNC_REGEX\n} from \"./regex\";\nimport { slash } from \"./slash\";\n\n// Util to normalize windows paths to posix\nexport function normalizeWindowsPath(input = \"\") {\n if (!input) {\n return input;\n }\n\n return slash(input).replace(DRIVE_LETTER_START_REGEX, r => r.toUpperCase());\n}\n\n/**\n * Corrects/normalized a file path.\n *\n * @param path - The path to correct.\n * @returns The corrected path.\n */\nexport function correctPath(path?: string) {\n if (!path || path.length === 0) {\n return \".\";\n }\n\n // Normalize windows argument\n path = normalizeWindowsPath(path);\n\n const isUNCPath = path.match(UNC_REGEX);\n const isPathAbsolute = isAbsolutePath(path);\n const trailingSeparator = path.endsWith(\"/\");\n\n // Normalize the path\n path = normalizeString(path, !isPathAbsolute);\n\n if (path.length === 0) {\n if (isPathAbsolute) {\n return \"/\";\n }\n return trailingSeparator ? \"./\" : \".\";\n }\n\n if (trailingSeparator) {\n path += \"/\";\n }\n if (DRIVE_LETTER_REGEX.test(path)) {\n path += \"/\";\n }\n\n if (isUNCPath) {\n if (!isPathAbsolute) {\n return `//./${path}`;\n }\n return `//${path}`;\n }\n\n return !path.startsWith(\"/\") &&\n isPathAbsolute &&\n !DRIVE_LETTER_REGEX.test(path)\n ? `/${path}`\n : path;\n}\n\n/**\n * Remove any star tokens (*) from the end of the file path\n *\n * @example\n * stripStars(\"src/**\") // returns \"src\"\n * stripStars(\"src/*\") // returns \"src\"\n * stripStars(\"src/**\\/*\") // returns \"src\"\n * stripStars(\"src/**\\/*.txt\") // returns \"src\"\n * stripStars(\"src/**\\/file.txt\") // returns \"src\"\n * stripStars(\"src/file.txt\") // returns \"src/file.txt\"\n * stripStars(\"\") // returns \".\"\n *\n * @param path - The path to correct.\n * @returns The corrected path.\n */\nexport function stripStars(path?: string) {\n if (!path || path.length === 0) {\n return \".\";\n }\n\n path = correctPath(path);\n\n let found = false;\n\n return path.split(\"/\").reduce((ret, segment) => {\n if (!segment?.trim()) {\n return ret;\n }\n\n if (found || segment.includes(\"*\")) {\n found = true;\n return ret;\n }\n\n return ret + (ret ? `/${segment}` : segment);\n }, \"\");\n}\n\n/**\n * Resolves a string path, resolving '.' and '.' segments and allowing paths above the root.\n *\n * @param path - The path to normalize.\n * @param allowAboveRoot - Whether to allow the resulting path to be above the root directory.\n * @returns the normalize path string.\n */\nexport function normalizeString(path: string, allowAboveRoot: boolean) {\n let res = \"\";\n let lastSegmentLength = 0;\n let lastSlash = -1;\n let dots = 0;\n let char: string | null = null;\n for (let index = 0; index <= path.length; ++index) {\n if (index < path.length) {\n // casted because we know it exists thanks to the length check\n char = path[index] as string;\n } else if (char === \"/\") {\n break;\n } else {\n char = \"/\";\n }\n if (char === \"/\") {\n if (lastSlash === index - 1 || dots === 1) {\n // NOOP\n } else if (dots === 2) {\n if (\n res.length < 2 ||\n lastSegmentLength !== 2 ||\n res[res.length - 1] !== \".\" ||\n res[res.length - 2] !== \".\"\n ) {\n if (res.length > 2) {\n const lastSlashIndex = res.lastIndexOf(\"/\");\n if (lastSlashIndex === -1) {\n res = \"\";\n lastSegmentLength = 0;\n } else {\n res = res.slice(0, lastSlashIndex);\n lastSegmentLength = res.length - 1 - res.lastIndexOf(\"/\");\n }\n lastSlash = index;\n dots = 0;\n continue;\n } else if (res.length > 0) {\n res = \"\";\n lastSegmentLength = 0;\n lastSlash = index;\n dots = 0;\n continue;\n }\n }\n if (allowAboveRoot) {\n res += res.length > 0 ? \"/..\" : \"..\";\n lastSegmentLength = 2;\n }\n } else {\n if (res.length > 0) {\n res += `/${path.slice(lastSlash + 1, index)}`;\n } else {\n res = path.slice(lastSlash + 1, index);\n }\n lastSegmentLength = index - lastSlash - 1;\n }\n lastSlash = index;\n dots = 0;\n } else if (char === \".\" && dots !== -1) {\n ++dots;\n } else {\n dots = -1;\n }\n }\n return res;\n}\n\n/**\n * Converts a given path to an absolute path based on the current working directory.\n *\n * @param path - The path to convert to an absolute path.\n * @param cwd - The current working directory to use as the base path if the path is not absolute.\n * @returns The absolute path.\n */\nexport function toAbsolutePath(path: string, cwd = currentDir()): string {\n if (isAbsolutePath(path)) {\n return path;\n }\n\n return slash(normalizeString(appendPath(path, cwd), true));\n}\n\n/**\n * Converts a given path to a relative path based on the current working directory.\n *\n * @param path - The path to convert to a relative path.\n * @param cwd - The current working directory to use as the base path if the path is not absolute.\n * @returns The relative path.\n */\nexport function toRelativePath(path: string, cwd = currentDir()): string {\n if (!path || path.length === 0) {\n return \".\";\n }\n\n if (isAbsolutePath(path)) {\n path = slash(normalizeString(path, true));\n } else {\n path = slash(normalizeString(joinPaths(cwd, path), true));\n }\n\n if (path.startsWith(\"./\")) {\n return path.slice(2);\n }\n\n return path;\n}\n\n/**\n * Adds a trailing slash to a path if it doesn't already have one.\n *\n * @param path - The path to modify.\n * @returns The modified path with a trailing slash.\n */\nexport function withTrailingSlash(path: string): string {\n const result = correctPath(path);\n\n return result.endsWith(\"/\") ? result : `${result}/`;\n}\n","/* -------------------------------------------------------------------\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 { TypedArray } from \"./array\";\n\nexport type SerializablePrimitive =\n | null\n | undefined\n | string\n | number\n | boolean\n | bigint;\nexport type Primitive = SerializablePrimitive | symbol;\n\n/**\n * Matches any primitive, `void`, `Date`, or `RegExp` value.\n */\nexport type BuiltIns = Primitive | void | Date | RegExp;\n\n/**\n * Matches any non-primitive object\n */\n// eslint-disable-next-line ts/no-unsafe-function-type\nexport type AtomicObject = Function | Promise<any> | Date | RegExp;\n\n/** Determines if the passed value is of a specific type */\nexport type TypeTester = (value: any) => boolean;\n\n/**\n * The interface for a type mapping (key =\\> function) to use for {@link getType}.\n * export * The key represents the name of the type. The function represents the {@link TypeTester | test method}.\n * The map should be ordered by testing preference, with more specific tests first.\n * If a test returns true, it is selected, and the key is returned as the type.\n */\nexport type TypeMap = Record<string, TypeTester>;\n\ndeclare const emptyObjectSymbol: unique symbol;\n\nexport type FunctionOrValue<Value> = Value extends () => infer X ? X : Value;\n\n/**\n * A [[List]]\n *\n * @example\n * ```ts\n * type list0 = [1, 2, 3]\n * type list1 = number[]\n * ```\n *\n * @param A - its type\n * @returns [[List]]\n */\nexport type List<A = any> = ReadonlyArray<A>;\n\n/**\n * Alias to create a [[Function]]\n *\n * @example\n * ```ts\n * import { FunctionLike } from '@stryke/types'\n *\n * type test0 = FunctionLike<[string, number], boolean>\n * /// (args_0: string, args_1: number) => boolean\n * ```\n *\n * @param P - parameters\n * @param R - return type\n * @returns [[Function]]\n */\nexport type FunctionLike<P extends List = any, R = any> = (...args: P) => R;\n\nexport type AnyFunction = FunctionLike<any, any>;\nexport type Nullish = undefined | null;\nexport type Nullishable<T> = T | Nullish;\nexport type NonNullishObject = object; // not null/undefined which are Object\nexport type NativeClass = abstract new (...args: any) => any;\nexport type AnyNumber = number | number;\nexport type AnyString = string | string;\nexport type AnyBoolean = boolean | boolean;\nexport type AnyArray = any[];\nexport type PlainObject = Record<any, object>; // https://stackoverflow.com/a/75052315/130638\nexport type AnyMap = Map<any, any>;\nexport type AnyWeakMap = WeakMap<WeakKey, any>;\nexport type EmptyArray = [];\nexport interface EmptyObject {\n [emptyObjectSymbol]?: never;\n}\n\nexport type Any =\n | boolean\n | number\n | bigint\n | string\n | null\n | undefined\n | void\n | symbol\n | object\n | PlainObject\n | AnyArray\n | AnyMap\n | AnyWeakMap;\n\n/**\n * The valid types of the index for an `Indexable` type object\n */\nexport type IndexType = string | number | symbol;\n\n/**\n * The declaration of a ***dictionary-type*** object with a specific type\n *\n * @see {@link Indexable}\n * @see {@link IndexType}\n * @see {@link Dictionary}\n */\nexport type TypedIndexable<T> = Record<IndexType, T>;\n\n/**\n * The declaration of a ***dictionary-type*** object\n *\n * @see {@link TypedIndexable}\n * @see {@link IndexType}\n * @see {@link Dictionary}\n */\nexport type Indexable = TypedIndexable<any>;\n\n/**\n * The declaration of a ***dictionary-type*** object with a specific type\n *\n * @see {@link Indexable}\n * @see {@link IndexType}\n * @see {@link TypedIndexable}\n */\nexport type Dictionary<T> = Record<string, T>;\n\nexport const EMPTY_STRING = \"\";\nexport const NEWLINE_STRING = \"\\r\\n\";\nexport const EMPTY_OBJECT = {};\n\nexport type AnyCase<T extends IndexType> = string extends T\n ? string\n : T extends `${infer F1}${infer F2}${infer R}`\n ? `${Uppercase<F1> | Lowercase<F1>}${Uppercase<F2> | Lowercase<F2>}${AnyCase<R>}`\n : T extends `${infer F}${infer R}`\n ? `${Uppercase<F> | Lowercase<F>}${AnyCase<R>}`\n : typeof EMPTY_STRING;\n\nexport type Newable<T> = new (..._args: never[]) => T;\n\nexport interface Abstract<T> {\n prototype: T;\n}\n\nexport interface Clonable<T> {\n clone: () => T;\n}\n\nexport type MaybePromise<T> = T | Promise<T>;\n\nexport type ReducerFunction<TState, TAction> = (\n state: TState,\n action: TAction\n) => TState;\n\n// NOTE: for the file size optimization\nexport const TYPE_ARGUMENTS = \"Arguments\";\nexport const TYPE_ARRAY = \"Array\";\nexport const TYPE_OBJECT = \"Object\";\nexport const TYPE_MAP = \"Map\";\nexport const TYPE_SET = \"Set\";\n\nexport type Collection =\n | IArguments\n | unknown[]\n | Map<unknown, unknown>\n | Record<string | number | symbol, unknown>\n | Set<unknown>;\n\nexport type NonUndefined<T> = T extends undefined ? never : T;\n\nexport type BrowserNativeObject = Date | File;\n\nexport type DeepPartial<T> = T extends BrowserNativeObject | NestedValue\n ? T\n : {\n [K in keyof T]?: DeepPartial<T[K]>;\n };\n\nexport type Rollback = Record<\n string,\n (initialValue: any, currentValue: any) => any\n>;\n\n/**\n * Extract all required keys from the given type.\n *\n * @remarks\n * This is useful when you want to create a new type that contains different type values for the required keys only or use the list of keys for validation purposes, etc...\n */\nexport type RequiredKeysOf<BaseType extends object> = Exclude<\n {\n [Key in keyof BaseType]: BaseType extends Record<Key, BaseType[Key]>\n ? Key\n : never;\n }[keyof BaseType],\n undefined\n>;\n\n/**\n * Returns a boolean for whether the two given types are equal.\n *\n * @remarks\n * Use-cases: If you want to make a conditional branch based on the result of a comparison of two types.\n *\n * @see https://github.com/microsoft/TypeScript/issues/27024#issuecomment-421529650\n * @see https://stackoverflow.com/questions/68961864/how-does-the-equals-work-in-typescript/68963796#68963796\n */\nexport type IsEqual<A, B> =\n (<G>() => G extends A ? 1 : 2) extends <G>() => G extends B ? 1 : 2\n ? true\n : false;\n\nexport type Filter<KeyType, ExcludeType> =\n IsEqual<KeyType, ExcludeType> extends true\n ? never\n : KeyType extends ExcludeType\n ? never\n : KeyType;\n\ninterface ExceptOptions {\n /**\n Disallow assigning non-specified properties.\n\n Note that any omitted properties in the resulting type will be present in autocomplete as `undefined`.\n\n @defaultValue false\n */\n requireExactProps?: boolean;\n}\n\n/**\n * Create a type from an object type without certain keys.\n *\n * @remarks\n * We recommend setting the `requireExactProps` option to `true`.\n *\n * This type is a stricter version of [`Omit`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-5.html#the-omit-helper-type). The `Omit` type does not restrict the omitted keys to be keys present on the given type, while `Except` does. The benefits of a stricter type are avoiding typos and allowing the compiler to pick up on rename refactors automatically.\n *\n * This type was proposed to the TypeScript team, which declined it, saying they prefer that libraries implement stricter versions of the built-in types ([microsoft/TypeScript#30825](https://github.com/microsoft/TypeScript/issues/30825#issuecomment-523668235)).\n */\nexport type Except<\n ObjectType,\n KeysType extends keyof ObjectType,\n Options extends ExceptOptions = { requireExactProps: false }\n> = {\n [KeyType in keyof ObjectType as Filter<\n KeyType,\n KeysType\n >]: ObjectType[KeyType];\n} & (Options[\"requireExactProps\"] extends true\n ? Partial<Record<KeysType, never>>\n : Record<string, never>);\n\n/**\n * Useful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability.\n *\n * @remarks\n * Sometimes it is desired to pass a value as a function argument that has a different type. At first inspection it may seem assignable, and then you discover it is not because the `value`'s type definition was defined as an interface. In the following example, `fn` requires an argument of type `Record<string, unknown>`. If the value is defined as a literal, then it is assignable. And if the `value` is defined as type using the `Simplify` utility the value is assignable. But if the `value` is defined as an interface, it is not assignable because the interface is not sealed and elsewhere a non-string property could be added to the interface.\n *\n * If the type definition must be an interface (perhaps it was defined in a third-party npm package), then the `value` can be defined as `const value: Simplify<SomeInterface> = ...`. Then `value` will be assignable to the `fn` argument. Or the `value` can be cast as `Simplify<SomeInterface>` if you can't re-declare the `value`.\n *\n * @see https://github.com/microsoft/TypeScript/issues/15300\n */\nexport type Simplify<T> = { [KeyType in keyof T]: T[KeyType] } & {};\n\n/**\n * Create a type that makes the given keys required. The remaining keys are kept as is. The sister of the `SetOptional` type.\n *\n * @remarks\n * Use-case: You want to define a single model where the only thing that changes is whether or not some of the keys are required.\n */\nexport type SetRequired<\n BaseType,\n Keys extends keyof BaseType\n> = BaseType extends unknown // type](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types). // union into a [distributive conditional // `extends unknown` is always going to be the case and is used to convert any\n ? Simplify<\n // Pick just the keys that are optional from the base type.\n Except<BaseType, Keys> &\n // Pick the keys that should be required from the base type and make them required.\n Required<Pick<BaseType, Keys>>\n >\n : never;\n\nexport const $NestedValue: unique symbol = Symbol(\"NestedValue\");\n\nexport type NestedValue<TValue extends object = object> = {\n [$NestedValue]: never;\n} & TValue;\n\nexport interface RefObject<T> {\n current: T;\n}\n\nexport interface Identity<T = string> {\n id: T;\n}\n\nexport interface Versioned {\n version: number;\n}\n\nexport interface Sequenced {\n /**\n * The sequence number (version, or event counter, etc.) of the record\n */\n sequence: number;\n}\n\nexport interface Typed {\n /**\n * The type of the record\n */\n __type: string;\n}\n\nexport interface ClassTypeCheckable<T> extends Typed {\n /**\n * Run type check on the given value\n * @param value - The value to check\n * @returns True if the value is of the type of the class\n */\n isTypeOf: (value: unknown) => value is T;\n}\n\n/**\n * Matches non-recursive types.\n */\nexport type NonRecursiveType =\n | BuiltIns\n // eslint-disable-next-line ts/no-unsafe-function-type\n | Function\n | (new (...arguments_: any[]) => unknown);\n\nexport type IsPrimitive<T> = [T] extends [Primitive] ? true : false;\nexport type IsNever<T> = [T] extends [never] ? true : false;\nexport type IsAny<T> = 0 extends 1 & T ? true : false;\nexport type IsNull<T> = [T] extends [null] ? true : false;\nexport type IsUndefined<T> = T extends undefined ? true : false;\nexport type IsUnknown<T> = unknown extends T // `T` can be `unknown` or `any`\n ? IsNull<T> extends false // `any` can be `null`, but `unknown` can't be\n ? true\n : false\n : false;\nexport type IsNullish<T> = IsNull<T> & IsUndefined<T>;\nexport type IsFunction<T> = T extends AnyFunction ? true : false;\n\n/**\n * Declare locally scoped properties on `globalThis`.\n *\n * When defining a global variable in a declaration file is inappropriate, it can be helpful to define a `type` or `interface` (say `ExtraGlobals`) with the global variable and then cast `globalThis` via code like `globalThis as unknown as ExtraGlobals`.\n *\n * Instead of casting through `unknown`, you can update your `type` or `interface` to extend `GlobalThis` and then directly cast `globalThis`.\n *\n * @example\n * ```\n * import type { GlobalThis } from '@stryke/types';\n *\n * type ExtraGlobals = GlobalThis & {\n * readonly GLOBAL_TOKEN: string;\n * };\n *\n * (globalThis as ExtraGlobals).GLOBAL_TOKEN;\n * ```\n */\nexport type GlobalThis = typeof globalThis;\n\n/**\n * Matches a [`class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes).\n */\nexport interface Class<T, Arguments extends unknown[] = any[]> {\n prototype: Pick<T, keyof T>;\n new (...arguments_: Arguments): T;\n}\n\n/**\n * Matches a [`class` constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes).\n */\nexport type Constructor<T, Arguments extends unknown[] = any[]> = new (\n ...arguments_: Arguments\n) => T;\n\n/**\n * Matches an [`abstract class`](https://www.typescriptlang.org/docs/handbook/classes.html#abstract-classes).\n *\n * @privateRemarks\n * We cannot use a `type` here because TypeScript throws: 'abstract' modifier cannot appear on a type member. (1070)\n */\n\nexport interface AbstractClass<\n T,\n Arguments extends unknown[] = any[]\n> extends AbstractConstructor<T, Arguments> {\n prototype: Pick<T, keyof T>;\n}\n\n/**\n * Matches an [`abstract class`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-2.html#abstract-construct-signatures) constructor.\n */\nexport type AbstractConstructor<\n T,\n Arguments extends unknown[] = any[]\n> = abstract new (...arguments_: Arguments) => T;\n\n/**\n * Create a tuple type of the given length `<L>` and fill it with the given type `<Fill>`.\n *\n * If `<Fill>` is not provided, it will default to `unknown`.\n *\n * @see https://itnext.io/implementing-arithmetic-within-typescripts-type-system-a1ef140a6f6f\n */\nexport type BuildTuple<\n L extends number,\n Fill = unknown,\n T extends readonly unknown[] = []\n> = T[\"length\"] extends L ? T : BuildTuple<L, Fill, [...T, Fill]>;\n\n/**\n * Test if the given function has multiple call signatures.\n *\n * Needed to handle the case of a single call signature with properties.\n *\n * Multiple call signatures cannot currently be supported due to a TypeScript limitation.\n * @see https://github.com/microsoft/TypeScript/issues/29732\n */\nexport type HasMultipleCallSignatures<\n T extends (...arguments_: any[]) => unknown\n> = T extends {\n (...arguments_: infer A): unknown;\n (...arguments_: infer B): unknown;\n}\n ? B extends A\n ? A extends B\n ? false\n : true\n : true\n : false;\n\ntype StructuredCloneablePrimitive =\n | string\n | number\n | bigint\n | boolean\n | null\n | undefined\n | boolean\n | number\n | string;\n\ntype StructuredCloneableData =\n | ArrayBuffer\n | DataView\n | Date\n | Error\n | RegExp\n | TypedArray\n | Blob\n | File;\n\n// DOM exclusive types\n// | AudioData\n// | CropTarget\n// | CryptoKey\n// | DOMException\n// | DOMMatrix\n// | DOMMatrixReadOnly\n// | DOMPoint\n// | DOMPointReadOnly\n// | DOMQuad\n// | DOMRect\n// | DOMRectReadOnly\n// | FileList\n// | FileSystemDirectoryHandle\n// | FileSystemFileHandle\n// | FileSystemHandle\n// | GPUCompilationInfo\n// | GPUCompilationMessage\n// | ImageBitmap\n// | ImageData\n// | RTCCertificate\n// | VideoFrame\n\ntype StructuredCloneableCollection =\n | readonly StructuredCloneable[]\n | {\n readonly [key: string]: StructuredCloneable;\n readonly [key: number]: StructuredCloneable;\n }\n | ReadonlyMap<StructuredCloneable, StructuredCloneable>\n | ReadonlySet<StructuredCloneable>;\n\n/**\n * Matches a value that can be losslessly cloned using `structuredClone`.\n *\n * Note:\n * - Custom error types will be cloned as the base `Error` type\n * - This type doesn't include types exclusive to the TypeScript DOM library (e.g. `DOMRect` and `VideoFrame`)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm\n *\n * @example\n * ```\n * import type { StructuredCloneable } from '@stryke/types';\n *\n * class CustomClass {}\n *\n * // @ts-expect-error\n * const error: StructuredCloneable = {\n * custom: new CustomClass(),\n * };\n *\n * structuredClone(error);\n * //=> {custom: {}}\n *\n * const good: StructuredCloneable = {\n * number: 3,\n * date: new Date(),\n * map: new Map<string, number>(),\n * }\n *\n * good.map.set('key', 1);\n *\n * structuredClone(good);\n * //=> {number: 3, date: Date(2022-10-17 22:22:35.920), map: Map {'key' -> 1}}\n * ```\n */\nexport type StructuredCloneable =\n | StructuredCloneablePrimitive\n | StructuredCloneableData\n | StructuredCloneableCollection;\n","/* -------------------------------------------------------------------\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 { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { EMPTY_STRING } from \"@stryke/types/base\";\nimport { normalizeString, normalizeWindowsPath } from \"./correct-path\";\nimport { cwd as currentDir } from \"./cwd\";\nimport { isAbsolute, isAbsolutePath } from \"./is-type\";\nimport { joinPaths } from \"./join-paths\";\nimport { FILE_EXTENSION_REGEX, ROOT_FOLDER_REGEX } from \"./regex\";\n\nexport interface FindFileNameOptions {\n /**\n * Require the file extension to be present in the file name.\n *\n * @defaultValue false\n */\n requireExtension?: boolean;\n\n /**\n * Return the file extension as part of the full file name result.\n *\n * @defaultValue true\n */\n withExtension?: boolean;\n}\n\n/**\n * Find the file name from a file path.\n *\n * @example\n * ```ts\n * const fileName = findFileName(\"C:\\\\Users\\\\user\\\\Documents\\\\file.txt\");\n * // fileName = \"file.txt\"\n * ```\n *\n * @param filePath - The file path to process\n * @param options - Options to control the file name extraction\n * @returns The file name\n */\nexport function findFileName(\n filePath: string,\n options: FindFileNameOptions = {}\n): string {\n const { requireExtension = false, withExtension = true } = options;\n const result =\n normalizeWindowsPath(filePath)\n ?.split(filePath?.includes(\"\\\\\") ? \"\\\\\" : \"/\")\n ?.pop() ?? \"\";\n\n if (requireExtension === true && !result.includes(\".\")) {\n return EMPTY_STRING;\n }\n\n if (withExtension === false && result.includes(\".\")) {\n return (\n result.replace(`.${findFileExtension(result) ?? \"\"}`, \"\") || EMPTY_STRING\n );\n }\n\n return result;\n}\n\n/**\n * Find the full file path's directories from a file path.\n *\n * @remarks\n * The functionality of this method is similar to the {@link path.dirname} function in Node's path module.\n *\n * @example\n * ```ts\n * const folderPath = findFilePath(\"C:\\\\Users\\\\user\\\\Documents\\\\file.txt\");\n * // folderPath = \"C:\\\\Users\\\\user\\\\Documents\"\n * ```\n *\n * @param filePath - The file path to process\n * @param options - Options to control the file name extraction\n * @returns The full file path's directories\n */\nexport function findFilePath(\n filePath: string,\n options: FindFileNameOptions = {}\n): string {\n const normalizedPath = normalizeWindowsPath(filePath);\n\n const result = normalizedPath.replace(\n findFileName(normalizedPath, { requireExtension: false, ...options }),\n \"\"\n );\n\n return result === \"/\" ? result : result.replace(/\\/$/, \"\");\n}\n\nexport const dirname = findFilePath;\n\n/**\n * Find the top most folder containing the file from a file path.\n *\n * @remarks\n * The functionality of this method is similar to the {@link path.basename} function in Node's path module.\n * If you're looking for the full path of the folder (for example: `C:\\\\Users\\\\user\\\\Documents` instead of just `Documents`) containing the file, use {@link findFilePath} instead.\n *\n * @example\n * const folderPath = findFolderName(\"C:\\\\Users\\\\user\\\\Documents\\\\file.txt\");\n * // folderPath = \"Documents\"\n *\n * @param filePath - The file path to process\n * @param options - Options to control the file name extraction\n * @returns The folder containing the file\n */\nexport function findFolderName(\n filePath: string,\n options?: FindFileNameOptions\n): string {\n const segments = findFilePath(filePath, options).split(\"/\");\n\n let lastSegment = \"\";\n for (let i = segments.length - 1; i >= 0; i--) {\n const val = segments[i];\n if (val) {\n lastSegment = val;\n break;\n }\n }\n\n // if (\n // folderPath.lastIndexOf(\"\\\\\") === folderPath.length - 1 ||\n // folderPath.lastIndexOf(\"/\") === folderPath.length - 1\n // ) {\n // folderPath = folderPath.slice(0, Math.max(0, folderPath.length - 1));\n // }\n\n return lastSegment ?? EMPTY_STRING;\n}\n\nexport const basename = findFolderName;\n\n/**\n * Find the file extension from a file path.\n *\n * @remarks\n * The functionality of this method is similar to the {@link path.extname} function in Node's path module.\n * The file extension is the part of the file name that comes after the last dot (`.`) in the file name. If the file name does not contain a dot, or if it ends with a dot, this function will return `undefined`.\n *\n * The returned extension **will not** include the dot, for example `txt` or `js` instead of `.txt` or `.js`.\n *\n * @example\n * ```ts\n * findFileExtension(\"C:\\\\Users\\\\user\\\\Documents\\\\file.config.ts\");\n * // Returns \"ts\"\n * ```\n *\n * @param filePath - The file path to process\n * @returns The file extension or undefined if no extension is found\n */\nexport function findFileExtension(filePath: string): string | undefined {\n if (filePath.endsWith(\".\") || filePath.endsWith(\"/\")) {\n return undefined;\n }\n\n const match = FILE_EXTENSION_REGEX.exec(normalizeWindowsPath(filePath));\n\n return match && match.length > 0 && isSetString(match[0])\n ? match[0].replace(\".\", \"\")\n : undefined;\n}\n\nexport const extname = findFileExtension;\n\n/**\n * Find the file extension including the `\".\"` character prefix from a file path.\n *\n * @remarks\n * The file extension is the part of the file name that comes after (and including) the last dot (`.`) in the file name. If the file name does not contain a dot, or if it ends with a dot, this function will return `undefined`.\n *\n * The returned extension **will** include the dot, for example `.txt` or `.js` instead of `txt` or `js`.\n *\n * @param filePath - The file path to process\n * @returns The file extension (including the `\".\"` prefix) or undefined if no extension is found\n */\nexport function findFileDotExtension(filePath: string): string | undefined {\n const ext = findFileExtension(filePath);\n\n return ext ? `.${ext}` : undefined;\n}\n\n/**\n * Find the file extension from a file path or an empty string.\n *\n * @remarks\n * The file extension is the part of the file name that comes after the last dot (`.`) in the file name. If the file name does not contain a dot, or if it ends with a dot, this function will return `undefined`.\n *\n * The returned extension **will not** include the dot, for example `txt` or `js` instead of `.txt` or `.js`.\n *\n * @param filePath - The file path to process\n * @returns The file extension or an empty string if no extension is found\n */\nexport function findFileExtensionSafe(filePath: string): string {\n return findFileExtension(filePath) ?? EMPTY_STRING;\n}\n\n/**\n * Find the file extension including the `\".\"` character prefix from a file path or an empty string.\n *\n * @remarks\n * The file extension is the part of the file name that comes after (and including) the last dot (`.`) in the file name. If the file name does not contain a dot, or if it ends with a dot, this function will return `undefined`.\n *\n * The returned extension **will** include the dot, for example `.txt` or `.js` instead of `txt` or `js`.\n *\n * @param filePath - The file path to process\n * @returns The file extension (including the `\".\"` prefix) or an empty string if no extension is found\n */\nexport function findFileDotExtensionSafe(filePath: string): string {\n const ext = findFileExtension(filePath);\n\n return ext ? `.${ext}` : \"\";\n}\n\n/**\n * Check if a file path has a file name.\n *\n * @param filePath - The file path to process\n * @returns An indicator specifying if the file path has a file name\n */\nexport function hasFileName(filePath: string): boolean {\n return Boolean(findFileName(filePath));\n}\n\n/**\n * Check if a file path has a file path.\n *\n * @param filePath - The file path to process\n * @returns An indicator specifying if the file path has a file path\n */\nexport function hasFilePath(filePath: string): boolean {\n return Boolean(findFilePath(filePath));\n}\n\n/**\n * Check if a file path has a folder name.\n *\n * @param filePath - The file path to process\n * @returns An indicator specifying if the file path has a folder name\n */\nexport function hasFolderName(filePath: string): boolean {\n return Boolean(findFolderName(filePath));\n}\n\n/**\n * Check if a file path has a file extension.\n *\n * @param filePath - The file path to process\n * @returns An indicator specifying if the file path has a file extension\n */\nexport function hasFileExtension(filePath: string): boolean {\n return Boolean(findFileExtension(filePath));\n}\n\n/**\n * Resolve the file path to an absolute path.\n *\n * @param path - The path to resolve\n * @param cwd - The current working directory\n * @returns The resolved path\n */\nexport function resolvePath(path: string, cwd = currentDir()) {\n // Normalize windows arguments\n const paths = normalizeWindowsPath(path).split(\"/\");\n\n let resolvedPath = \"\";\n let resolvedAbsolute = false;\n\n for (\n let index = paths.length - 1;\n index >= -1 && !resolvedAbsolute;\n index--\n ) {\n const path = index >= 0 ? paths[index] : cwd;\n\n // Skip empty entries\n if (!path || path.length === 0) {\n continue;\n }\n\n resolvedPath = joinPaths(path, resolvedPath);\n resolvedAbsolute = isAbsolutePath(path);\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);\n\n if (resolvedAbsolute && !isAbsolutePath(resolvedPath)) {\n return `/${resolvedPath}`;\n }\n\n return resolvedPath.length > 0 ? resolvedPath : \".\";\n}\n\nexport function resolve(...paths: string[]) {\n // Normalize windows arguments\n paths = paths.map(argument => normalizeWindowsPath(argument));\n\n let resolvedPath = \"\";\n let resolvedAbsolute = false;\n\n for (\n let index = paths.length - 1;\n index >= -1 && !resolvedAbsolute;\n index--\n ) {\n const path = index >= 0 ? paths[index] : currentDir();\n\n // Skip empty entries\n if (!path || path.length === 0) {\n continue;\n }\n\n resolvedPath = `${path}/${resolvedPath}`;\n resolvedAbsolute = isAbsolute(path);\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);\n\n if (resolvedAbsolute && !isAbsolute(resolvedPath)) {\n return `/${resolvedPath}`;\n }\n\n return resolvedPath.length > 0 ? resolvedPath : \".\";\n}\n\n/**\n * Resolve the file path to an absolute path.\n *\n * @param paths - The paths to resolve\n * @returns The resolved path\n */\nexport function resolvePaths(...paths: string[]) {\n return resolvePath(\n joinPaths(...paths.map(path => normalizeWindowsPath(path)))\n );\n}\n\n/**\n * Get the relative path from one file to another.\n *\n * @remarks\n * This function is similar to the `path.relative` function in Node's path module.\n *\n * @param from - The base path to start from\n * @param to - The target path to resolve relative to the base path\n * @returns The relative path from the base path to the target path\n */\nexport function relative(from: string, to: string) {\n // we cast these because `split` will always be at least one string\n const _from = resolve(from).replace(ROOT_FOLDER_REGEX, \"$1\").split(\"/\") as [\n string,\n ...string[]\n ];\n const _to = resolve(to).replace(ROOT_FOLDER_REGEX, \"$1\").split(\"/\") as [\n string,\n ...string[]\n ];\n\n // Different windows drive letters\n if (_to[0][1] === \":\" && _from[0][1] === \":\" && _from[0] !== _to[0]) {\n return _to.join(\"/\");\n }\n\n const _fromCopy = [..._from];\n for (const segment of _fromCopy) {\n if (_to[0] !== segment) {\n break;\n }\n _from.shift();\n _to.shift();\n }\n return [..._from.map(() => \"..\"), ..._to].join(\"/\");\n}\n\n/**\n * Get the relative path from one file to another.\n *\n * @remarks\n * This function wraps the `path.relative` function in Node's path module.\n *\n * @param from - The base path to start from\n * @param to - The target path to resolve relative to the base path\n * @param withEndSlash - Whether to include a trailing slash at the end of the path\n * @returns The relative path from the base path to the target path\n */\nexport function relativePath(from: string, to: string, withEndSlash = false) {\n return relative(\n withEndSlash !== true ? from.replace(/\\/$/, \"\") : from,\n withEndSlash !== true ? to.replace(/\\/$/, \"\") : to\n );\n}\n\n/**\n * Find the file path relative to the workspace root path.\n *\n * @param filePath - The file path to process\n * @returns The resolved file path\n */\nexport function relativeToCurrentDir(filePath: string) {\n return relativePath(filePath, currentDir());\n}\n\n/**\n * Check if the path is a relative path.\n *\n * @param path - The path to check\n * @returns An indicator specifying if the path is a relative path\n */\nexport function parsePath(path: string) {\n // The root of the path such as '/' or 'c:\\'\n const root =\n /^[/\\\\]|^[a-z]:[/\\\\]/i.exec(path)?.[0]?.replace(/\\\\/g, \"/\") || \"\";\n\n const normalizedPath = normalizeWindowsPath(path);\n\n const segments = normalizedPath.replace(/\\/$/, \"\").split(\"/\").slice(0, -1);\n if (segments.length === 1 && /^[A-Z]:$/i.test(segments[0] as string)) {\n segments[0] += \"/\";\n }\n\n const base = findFolderName(normalizedPath);\n const dir = segments.join(\"/\") || (isAbsolutePath(path) ? \"/\" : \".\");\n const ext = findFileExtensionSafe(path);\n\n return {\n root,\n dir,\n base,\n ext,\n name: base.slice(0, base.length - ext.length)\n };\n}\n\n/**\n * Rename the file name with a new name.\n *\n * @param filePath - The current file path being processed\n * @param newFileName - The updated file name being processed\n * @returns The modified or unmodified file path.\n */\nexport function renameFile(filePath: string, newFileName: string): string {\n const file = parsePath(filePath);\n\n return joinPaths(\n file.dir,\n newFileName.includes(\".\") ? newFileName : newFileName + file.ext\n );\n}\n"],"mappings":"yLAyCA,SAAgB,EAAa,EAAmB,EAA6B,CAC3E,IAAM,EAAkB,EACtB,EAAU,QAAQ,MAAO,IAAI,CAAC,QAAQ,MAAO,GAAG,CACjD,CACK,EAAmB,EACvB,EAAW,QAAQ,MAAO,IAAI,CAAC,QAAQ,MAAO,GAAG,CAClD,CAED,OACE,IAAoB,GACpB,EAAgB,WAAW,GAAG,EAAiB,GAAG,CCZtD,SAAgB,EACd,EACA,EAAqB,GAAK,CAClB,CACR,OAAO,EACJ,EAAa,EAAW,EAAW,CAEhC,EADA,EAAU,EAAY,EAAU,CAErC,CAoBH,SAAgB,EAAgB,EAAc,EAA2B,CACvE,MAAO,GAAG,EAAK,GAAG,EAAU,QAAQ,MAAO,GAAG,GCtChD,SAAgB,EAAqB,EAAQ,GAAI,CAK/C,OAJK,GAIE,EAAM,EAAM,CAAC,QAAQ,EAA0B,GAAK,EAAE,aAAa,CAAC,CAS7E,SAAgB,EAAY,EAAe,CACzC,GAAI,CAAC,GAAQ,EAAK,SAAW,EAC3B,MAAO,IAIT,EAAO,EAAqB,EAAK,CAEjC,IAAM,EAAY,EAAK,MAAM,EAAU,CACjC,EAAiB,EAAe,EAAK,CACrC,EAAoB,EAAK,SAAS,IAAI,CA0B5C,MAvBA,GAAO,EAAgB,EAAM,CAAC,EAAe,CAEzC,EAAK,SAAW,EACd,EACK,IAEF,EAAoB,KAAO,KAGhC,IACF,GAAQ,KAEN,EAAmB,KAAK,EAAK,GAC/B,GAAQ,KAGN,EACG,EAGE,KAAK,IAFH,OAAO,IAKX,CAAC,EAAK,WAAW,IAAI,EAC1B,GACA,CAAC,EAAmB,KAAK,EAAK,CAC5B,IAAI,IACJ,GAkBN,SAAgB,EAAW,EAAe,CACxC,GAAI,CAAC,GAAQ,EAAK,SAAW,EAC3B,MAAO,IAGT,EAAO,EAAY,EAAK,CAExB,IAAI,EAAQ,GAEZ,OAAO,EAAK,MAAM,IAAI,CAAC,QAAQ,EAAK,IAC7B,GAAS,MAAM,CAIhB,GAAS,EAAQ,SAAS,IAAI,EAChC,EAAQ,GACD,GAGF,GAAO,EAAM,IAAI,IAAY,GAR3B,EASR,GAAG,CAUR,SAAgB,EAAgB,EAAc,EAAyB,CACrE,IAAI,EAAM,GACN,EAAoB,EACpB,EAAY,GACZ,EAAO,EACPA,EAAsB,KAC1B,IAAK,IAAI,EAAQ,EAAG,GAAS,EAAK,OAAQ,EAAE,EAAO,CACjD,GAAI,EAAQ,EAAK,OAEf,EAAO,EAAK,WACH,IAAS,IAClB,WAEA,EAAO,IAET,GAAI,IAAS,IAAK,CAChB,GAAI,MAAc,EAAQ,GAAK,IAAS,GAAG,GAEhC,IAAS,EAAG,CACrB,GACE,EAAI,OAAS,GACb,IAAsB,GACtB,EAAI,EAAI,OAAS,KAAO,KACxB,EAAI,EAAI,OAAS,KAAO,QAEpB,EAAI,OAAS,EAAG,CAClB,IAAM,EAAiB,EAAI,YAAY,IAAI,CACvC,IAAmB,IACrB,EAAM,GACN,EAAoB,IAEpB,EAAM,EAAI,MAAM,EAAG,EAAe,CAClC,EAAoB,EAAI,OAAS,EAAI,EAAI,YAAY,IAAI,EAE3D,EAAY,EACZ,EAAO,EACP,iBACS,EAAI,OAAS,EAAG,CACzB,EAAM,GACN,EAAoB,EACpB,EAAY,EACZ,EAAO,EACP,UAGA,IACF,GAAO,EAAI,OAAS,EAAI,MAAQ,KAChC,EAAoB,QAGlB,EAAI,OAAS,EACf,GAAO,IAAI,EAAK,MAAM,EAAY,EAAG,EAAM,GAE3C,EAAM,EAAK,MAAM,EAAY,EAAG,EAAM,CAExC,EAAoB,EAAQ,EAAY,EAE1C,EAAY,EACZ,EAAO,OACE,IAAS,KAAO,IAAS,GAClC,EAAE,EAEF,EAAO,GAGX,OAAO,EAUT,SAAgB,EAAe,EAAc,EAAMC,GAAY,CAAU,CAKvE,OAJI,EAAe,EAAK,CACf,EAGF,EAAM,EAAgB,EAAW,EAAMC,EAAI,CAAE,GAAK,CAAC,CC9D5D,MAAa,EAAe,GC/F5B,SAAgB,EACd,EACA,EAA+B,EAAE,CACzB,CACR,GAAM,CAAE,mBAAmB,GAAO,gBAAgB,IAAS,EACrD,EACJ,EAAqB,EAAS,EAC1B,MAAM,GAAU,SAAS,KAAK,CAAG,KAAO,IAAI,EAC5C,KAAK,EAAI,GAYf,OAVI,IAAqB,IAAQ,CAAC,EAAO,SAAS,IAAI,CAC7C,GAGL,IAAkB,IAAS,EAAO,SAAS,IAAI,CAE/C,EAAO,QAAQ,IAAI,EAAkB,EAAO,EAAI,KAAM,GAAG,EAAI,GAI1D,EAmBT,SAAgB,EACd,EACA,EAA+B,EAAE,CACzB,CACR,IAAM,EAAiB,EAAqB,EAAS,CAE/C,EAAS,EAAe,QAC5B,EAAa,EAAgB,CAAE,iBAAkB,GAAO,GAAG,EAAS,CAAC,CACrE,GACD,CAED,OAAO,IAAW,IAAM,EAAS,EAAO,QAAQ,MAAO,GAAG,CAoB5D,SAAgB,EACd,EACA,EACQ,CACR,IAAM,EAAW,EAAa,EAAU,EAAQ,CAAC,MAAM,IAAI,CAEvD,EAAc,GAClB,IAAK,IAAI,EAAI,EAAS,OAAS,EAAG,GAAK,EAAG,IAAK,CAC7C,IAAM,EAAM,EAAS,GACrB,GAAI,EAAK,CACP,EAAc,EACd,OAWJ,OAAO,GAAe,GAuBxB,SAAgB,EAAkB,EAAsC,CACtE,GAAI,EAAS,SAAS,IAAI,EAAI,EAAS,SAAS,IAAI,CAClD,OAGF,IAAM,EAAQ,EAAqB,KAAK,EAAqB,EAAS,CAAC,CAEvE,OAAO,GAAS,EAAM,OAAS,GAAK,EAAY,EAAM,GAAG,CACrD,EAAM,GAAG,QAAQ,IAAK,GAAG,CACzB,IAAA,GA0FN,SAAgB,EAAiB,EAA2B,CAC1D,MAAO,EAAQ,EAAkB,EAAS,CA8C5C,SAAgB,EAAQ,GAAG,EAAiB,CAE1C,EAAQ,EAAM,IAAI,GAAY,EAAqB,EAAS,CAAC,CAE7D,IAAI,EAAe,GACf,EAAmB,GAEvB,IACE,IAAI,EAAQ,EAAM,OAAS,EAC3B,GAAS,IAAM,CAAC,EAChB,IACA,CACA,IAAM,EAAO,GAAS,EAAI,EAAM,GAASC,GAAY,CAGjD,CAAC,GAAQ,EAAK,SAAW,IAI7B,EAAe,GAAG,EAAK,GAAG,IAC1B,EAAmB,EAAW,EAAK,EAarC,MANA,GAAe,EAAgB,EAAc,CAAC,EAAiB,CAE3D,GAAoB,CAAC,EAAW,EAAa,CACxC,IAAI,IAGN,EAAa,OAAS,EAAI,EAAe,IAyBlD,SAAgB,EAAS,EAAc,EAAY,CAEjD,IAAM,EAAQ,EAAQ,EAAK,CAAC,QAAQ,EAAmB,KAAK,CAAC,MAAM,IAAI,CAIjE,EAAM,EAAQ,EAAG,CAAC,QAAQ,EAAmB,KAAK,CAAC,MAAM,IAAI,CAMnE,GAAI,EAAI,GAAG,KAAO,KAAO,EAAM,GAAG,KAAO,KAAO,EAAM,KAAO,EAAI,GAC/D,OAAO,EAAI,KAAK,IAAI,CAGtB,IAAM,EAAY,CAAC,GAAG,EAAM,CAC5B,IAAK,IAAM,KAAW,EAAW,CAC/B,GAAI,EAAI,KAAO,EACb,MAEF,EAAM,OAAO,CACb,EAAI,OAAO,CAEb,MAAO,CAAC,GAAG,EAAM,QAAU,KAAK,CAAE,GAAG,EAAI,CAAC,KAAK,IAAI,CAcrD,SAAgB,EAAa,EAAc,EAAY,EAAe,GAAO,CAC3E,OAAO,EACL,IAAiB,GAAiC,EAA1B,EAAK,QAAQ,MAAO,GAAG,CAC/C,IAAiB,GAA+B,EAAxB,EAAG,QAAQ,MAAO,GAAG,CAC9C"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
//#region src/get-parent-path.d.ts
|
|
2
|
-
interface GetParentPathOptions {
|
|
3
|
-
/**
|
|
4
|
-
* Whether to ignore the case of the file names when checking for existence.
|
|
5
|
-
*
|
|
6
|
-
* @defaultValue true
|
|
7
|
-
*/
|
|
8
|
-
ignoreCase: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Whether to skip the current working directory when checking for the file.
|
|
11
|
-
*
|
|
12
|
-
* @defaultValue false
|
|
13
|
-
*/
|
|
14
|
-
skipCwd: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Should we include the found file/directory name in the results.
|
|
17
|
-
*
|
|
18
|
-
* @defaultValue false
|
|
19
|
-
*/
|
|
20
|
-
includeNameInResults?: boolean;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Get the first parent path that has a file or directory with the provided name.
|
|
24
|
-
*
|
|
25
|
-
* @param name - The name (or names) of the file to look for in the parent paths.
|
|
26
|
-
* @param cwd - The current working directory.
|
|
27
|
-
* @returns The first parent path that exists.
|
|
28
|
-
*/
|
|
29
|
-
declare const getParentPath: (name: string | string[], cwd?: string, options?: Partial<GetParentPathOptions>) => string | undefined;
|
|
30
|
-
//#endregion
|
|
31
|
-
export { getParentPath as n, GetParentPathOptions as t };
|
|
32
|
-
//# sourceMappingURL=get-parent-path-COkh6Pvl.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-parent-path-COkh6Pvl.d.mts","names":[],"sources":["../src/get-parent-path.ts"],"sourcesContent":[],"mappings":";UAyBiB,oBAAA;EAAA;AA8BjB;;;;;;;;;;;;;;;;;;;;;;;;;cAAa,iEAGF,QAAQ"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
//#region src/get-parent-path.d.ts
|
|
2
|
-
interface GetParentPathOptions {
|
|
3
|
-
/**
|
|
4
|
-
* Whether to ignore the case of the file names when checking for existence.
|
|
5
|
-
*
|
|
6
|
-
* @defaultValue true
|
|
7
|
-
*/
|
|
8
|
-
ignoreCase: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Whether to skip the current working directory when checking for the file.
|
|
11
|
-
*
|
|
12
|
-
* @defaultValue false
|
|
13
|
-
*/
|
|
14
|
-
skipCwd: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Should we include the found file/directory name in the results.
|
|
17
|
-
*
|
|
18
|
-
* @defaultValue false
|
|
19
|
-
*/
|
|
20
|
-
includeNameInResults?: boolean;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Get the first parent path that has a file or directory with the provided name.
|
|
24
|
-
*
|
|
25
|
-
* @param name - The name (or names) of the file to look for in the parent paths.
|
|
26
|
-
* @param cwd - The current working directory.
|
|
27
|
-
* @returns The first parent path that exists.
|
|
28
|
-
*/
|
|
29
|
-
declare const getParentPath: (name: string | string[], cwd?: string, options?: Partial<GetParentPathOptions>) => string | undefined;
|
|
30
|
-
//#endregion
|
|
31
|
-
export { getParentPath as n, GetParentPathOptions as t };
|
|
32
|
-
//# sourceMappingURL=get-parent-path-Cbqs2km7.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-parent-path-Cbqs2km7.d.cts","names":[],"sources":["../src/get-parent-path.ts"],"sourcesContent":[],"mappings":";UAyBiB,oBAAA;EAAA;AA8BjB;;;;;;;;;;;;;;;;;;;;;;;;;cAAa,iEAGF,QAAQ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./cwd-o2vq8Tk9.cjs`),n=require(`./join-paths-DUdaieID.cjs`),r=require(`./resolve-parent-path-D0AaW2PB.cjs`),i=require(`./is-file-BkFQev3M.cjs`);let a=require(`node:fs`);function o(e){return e??=[],Array.isArray(e)?e:[e]}const s=(e,s=t.t(),c={})=>{let l=c?.ignoreCase??!0,u=c?.skipCwd??!1,d=c?.includeNameInResults??!1,f=s;u&&(f=r.t(s));let p=o(e);for(l&&(p=p.map(e=>e.toLowerCase()));;){let e=p.find(e=>(0,a.existsSync)(n.t(f,e)));if(e)return d||i.t(n.t(f,e))?n.t(f,e):f;let t=r.t(f);if(t===f)return;f=t}};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./cwd-YTg9Cx6C.mjs";import{t}from"./join-paths-BHepkhAj.mjs";import{t as n}from"./resolve-parent-path-CR8av8WP.mjs";import{t as r}from"./is-file-CNooe8Wz.mjs";import{existsSync as i}from"node:fs";function a(e){return e??=[],Array.isArray(e)?e:[e]}const o=(o,s=e(),c={})=>{let l=c?.ignoreCase??!0,u=c?.skipCwd??!1,d=c?.includeNameInResults??!1,f=s;u&&(f=n(s));let p=a(o);for(l&&(p=p.map(e=>e.toLowerCase()));;){let e=p.find(e=>i(t(f,e)));if(e)return d||r(t(f,e))?t(f,e):f;let a=n(f);if(a===f)return;f=a}};export{a as n,o as t};
|
|
2
|
-
//# sourceMappingURL=get-parent-path-DLFSyxSW.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-parent-path-DLFSyxSW.mjs","names":["currentDir","cwd","name"],"sources":["../../convert/src/to-array.ts","../src/get-parent-path.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 { Arrayable } from \"@stryke/types/array\";\nimport type { Nullable } from \"@stryke/types/utilities\";\n\n/**\n * Convert `Arrayable<T>` to `Array<T>`\n *\n * @param array - The `Arrayable<T>` to convert\n * @returns An `Array<T>` containing the elements of the input\n */\nexport function toArray<T>(array?: Nullable<Arrayable<T>>): Array<T> {\n array = array ?? [];\n return Array.isArray(array) ? array : [array];\n}\n","/* -------------------------------------------------------------------\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 as currentDir } from \"@stryke/path/cwd\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { resolveParentPath } from \"@stryke/path/resolve-parent-path\";\nimport { existsSync } from \"node:fs\";\nimport { isDirectory } from \"./is-file\";\n\nexport interface GetParentPathOptions {\n /**\n * Whether to ignore the case of the file names when checking for existence.\n *\n * @defaultValue true\n */\n ignoreCase: boolean;\n\n /**\n * Whether to skip the current working directory when checking for the file.\n *\n * @defaultValue false\n */\n skipCwd: boolean;\n\n /**\n * Should we include the found file/directory name in the results.\n *\n * @defaultValue false\n */\n includeNameInResults?: boolean;\n}\n\n/**\n * Get the first parent path that has a file or directory with the provided name.\n *\n * @param name - The name (or names) of the file to look for in the parent paths.\n * @param cwd - The current working directory.\n * @returns The first parent path that exists.\n */\nexport const getParentPath = (\n name: string | string[],\n cwd = currentDir(),\n options: Partial<GetParentPathOptions> = {}\n): string | undefined => {\n const ignoreCase = options?.ignoreCase ?? true;\n const skipCwd = options?.skipCwd ?? false;\n const includeNameInResults = options?.includeNameInResults ?? false;\n\n let dir = cwd;\n if (skipCwd) {\n dir = resolveParentPath(cwd);\n }\n\n let names = toArray(name);\n if (ignoreCase) {\n names = names.map(name => name.toLowerCase());\n }\n\n while (true) {\n const target = names.find(name => existsSync(joinPaths(dir, name)));\n if (target) {\n return includeNameInResults || isDirectory(joinPaths(dir, target))\n ? joinPaths(dir, target)\n : dir;\n }\n\n const parentDir = resolveParentPath(dir);\n if (parentDir === dir) {\n // It'll fail anyway\n return undefined;\n }\n\n dir = parentDir;\n }\n};\n"],"mappings":"uNA2BA,SAAgB,EAAW,EAA0C,CAEnE,MADA,KAAiB,EAAE,CACZ,MAAM,QAAQ,EAAM,CAAG,EAAQ,CAAC,EAAM,CC0B/C,MAAa,GACX,EACA,EAAMA,GAAY,CAClB,EAAyC,EAAE,GACpB,CACvB,IAAM,EAAa,GAAS,YAAc,GACpC,EAAU,GAAS,SAAW,GAC9B,EAAuB,GAAS,sBAAwB,GAE1D,EAAMC,EACN,IACF,EAAM,EAAkBA,EAAI,EAG9B,IAAI,EAAQ,EAAQ,EAAK,CAKzB,IAJI,IACF,EAAQ,EAAM,IAAI,GAAQC,EAAK,aAAa,CAAC,IAGlC,CACX,IAAM,EAAS,EAAM,KAAK,GAAQ,EAAW,EAAU,EAAKA,EAAK,CAAC,CAAC,CACnE,GAAI,EACF,OAAO,GAAwB,EAAY,EAAU,EAAK,EAAO,CAAC,CAC9D,EAAU,EAAK,EAAO,CACtB,EAGN,IAAM,EAAY,EAAkB,EAAI,CACxC,GAAI,IAAc,EAEhB,OAGF,EAAM"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./cwd-o2vq8Tk9.cjs`),n=require(`./file-path-fns-7aKacdLg.cjs`),r=require(`./get-parent-path-CfRkaB4R.cjs`);let i=require(`@storm-software/config-tools`);function a(e){return e===`/`||e===`c:\\`||e===`C:\\`}const o=`.all-contributorsrc,.commitlintrc,.github,.git,.husky,.huskyrc,.lintstagedrc,.log4brains.yml,.npmrc,.nx,.storm-workspace.js,.storm-workspace.json,.storm-workspace.ts,.storm-workspace.yaml,.storm-workspace.yml,.vscode,.whitesource,bun.lock,bun.lockb,lefthook.yaml,lefthook.yml,lerna.json,npm-lock.json,npm-lock.yaml,npm-lock.yml,npm-workspace.json,npm-workspace.yaml,npm-workspace.yml,nx.json,package-lock.json,patches,pnpm-lock.json,pnpm-lock.yaml,pnpm-lock.yml,pnpm-workspace.json,pnpm-workspace.yaml,pnpm-workspace.yml,socket.yaml,storm-workspace.js,storm-workspace.json,storm-workspace.ts,storm-workspace.yaml,storm-workspace.yml,syncpack.config.js,syncpack.json,turbo.json,yarn-lock.json,yarn-lock.yaml,yarn-lock.yml,yarn-workspace.json,yarn-workspace.yaml,yarn-workspace.yml,yarn.lock`.split(`,`),s=[`.powerlines`,`.storm`,`package.json`,`powerlines.json`,`powerlines.yaml`,`powerlines.yml`,`powerlines.toml`,`powerlines.config.js`,`powerlines.config.ts`,`project.json`];function c(e=t.t()){if(process.env.STORM_WORKSPACE_ROOT||process.env.NX_WORKSPACE_ROOT_PATH)return process.env.STORM_WORKSPACE_ROOT||process.env.NX_WORKSPACE_ROOT_PATH;let n=(0,i.findWorkspaceRootSafe)(e);if(n)return n;let s=r.t(o,e);if(s)return s;for(s=e;s&&!a(s);)if(s=r.t(`storm-workspace.json`,s,{skipCwd:!0,includeNameInResults:!1}),s)return s;return e}function l(e=t.t()){let n=c(e);return n?n===e:!1}function u(e=t.t()){return r.t(s,e)||e}function d(e=t.t()){let n=u(e);return n?n===e:!1}function f(e){return n.o(e,c())}function p(e){return n.o(e,u())}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
//#region src/get-workspace-root.d.ts
|
|
2
|
-
declare const WORKSPACE_ROOT_CONTENT: string[];
|
|
3
|
-
declare const PROJECT_ROOT_CONTENT: string[];
|
|
4
|
-
/**
|
|
5
|
-
* Get the workspace root path
|
|
6
|
-
*
|
|
7
|
-
* @param dir - A directory to start the search from
|
|
8
|
-
* @returns The workspace root path
|
|
9
|
-
*/
|
|
10
|
-
declare function getWorkspaceRoot(dir?: string): string;
|
|
11
|
-
/**
|
|
12
|
-
* Check if the given directory is the workspace root
|
|
13
|
-
*
|
|
14
|
-
* @param dir - A directory to check
|
|
15
|
-
* @returns True if the directory is the workspace root, false otherwise
|
|
16
|
-
*/
|
|
17
|
-
declare function isWorkspaceRoot(dir?: string): boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Get the project root path
|
|
20
|
-
*
|
|
21
|
-
* @param dir - A directory to start the search from
|
|
22
|
-
* @returns The project root path
|
|
23
|
-
*/
|
|
24
|
-
declare function getProjectRoot(dir?: string): string;
|
|
25
|
-
/**
|
|
26
|
-
* Check if the given directory is the project root
|
|
27
|
-
*
|
|
28
|
-
* @param dir - A directory to check
|
|
29
|
-
* @returns True if the directory is the project root, false otherwise
|
|
30
|
-
*/
|
|
31
|
-
declare function isProjectRoot(dir?: string): boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Find the file path relative to the workspace root path.
|
|
34
|
-
*
|
|
35
|
-
* @param filePath - The file path to process
|
|
36
|
-
* @returns The file path relative to the workspace root
|
|
37
|
-
*/
|
|
38
|
-
declare function relativeToWorkspaceRoot(filePath: string): string;
|
|
39
|
-
/**
|
|
40
|
-
* Find the file path relative to the project root path.
|
|
41
|
-
*
|
|
42
|
-
* @param filePath - The file path to process
|
|
43
|
-
* @returns The file path relative to the project root
|
|
44
|
-
*/
|
|
45
|
-
declare function relativeToProjectRoot(filePath: string): string;
|
|
46
|
-
//#endregion
|
|
47
|
-
export { isProjectRoot as a, relativeToWorkspaceRoot as c, getWorkspaceRoot as i, WORKSPACE_ROOT_CONTENT as n, isWorkspaceRoot as o, getProjectRoot as r, relativeToProjectRoot as s, PROJECT_ROOT_CONTENT as t };
|
|
48
|
-
//# sourceMappingURL=get-workspace-root-DQBvBd8X.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-workspace-root-DQBvBd8X.d.mts","names":[],"sources":["../src/get-workspace-root.ts"],"sourcesContent":[],"mappings":";cAwBa;AAAA,cAwDA,oBAFH,EAAA,MAAA,EAAA;AAEV;AAmBA;AAoCA;AAeA;AAgBA;AAeA;AAUgB,iBA5FA,gBAAA,CA4FqB,GAAA,CAAA,EAAA,MAAA,CAAA,EAAA,MAAA;;;;;;;iBAxDrB,eAAA;;;;;;;iBAeA,cAAA;;;;;;;iBAgBA,aAAA;;;;;;;iBAeA,uBAAA;;;;;;;iBAUA,qBAAA"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
//#region src/get-workspace-root.d.ts
|
|
2
|
-
declare const WORKSPACE_ROOT_CONTENT: string[];
|
|
3
|
-
declare const PROJECT_ROOT_CONTENT: string[];
|
|
4
|
-
/**
|
|
5
|
-
* Get the workspace root path
|
|
6
|
-
*
|
|
7
|
-
* @param dir - A directory to start the search from
|
|
8
|
-
* @returns The workspace root path
|
|
9
|
-
*/
|
|
10
|
-
declare function getWorkspaceRoot(dir?: string): string;
|
|
11
|
-
/**
|
|
12
|
-
* Check if the given directory is the workspace root
|
|
13
|
-
*
|
|
14
|
-
* @param dir - A directory to check
|
|
15
|
-
* @returns True if the directory is the workspace root, false otherwise
|
|
16
|
-
*/
|
|
17
|
-
declare function isWorkspaceRoot(dir?: string): boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Get the project root path
|
|
20
|
-
*
|
|
21
|
-
* @param dir - A directory to start the search from
|
|
22
|
-
* @returns The project root path
|
|
23
|
-
*/
|
|
24
|
-
declare function getProjectRoot(dir?: string): string;
|
|
25
|
-
/**
|
|
26
|
-
* Check if the given directory is the project root
|
|
27
|
-
*
|
|
28
|
-
* @param dir - A directory to check
|
|
29
|
-
* @returns True if the directory is the project root, false otherwise
|
|
30
|
-
*/
|
|
31
|
-
declare function isProjectRoot(dir?: string): boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Find the file path relative to the workspace root path.
|
|
34
|
-
*
|
|
35
|
-
* @param filePath - The file path to process
|
|
36
|
-
* @returns The file path relative to the workspace root
|
|
37
|
-
*/
|
|
38
|
-
declare function relativeToWorkspaceRoot(filePath: string): string;
|
|
39
|
-
/**
|
|
40
|
-
* Find the file path relative to the project root path.
|
|
41
|
-
*
|
|
42
|
-
* @param filePath - The file path to process
|
|
43
|
-
* @returns The file path relative to the project root
|
|
44
|
-
*/
|
|
45
|
-
declare function relativeToProjectRoot(filePath: string): string;
|
|
46
|
-
//#endregion
|
|
47
|
-
export { isProjectRoot as a, relativeToWorkspaceRoot as c, getWorkspaceRoot as i, WORKSPACE_ROOT_CONTENT as n, isWorkspaceRoot as o, getProjectRoot as r, relativeToProjectRoot as s, PROJECT_ROOT_CONTENT as t };
|
|
48
|
-
//# sourceMappingURL=get-workspace-root-eTfm1jII.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-workspace-root-eTfm1jII.d.cts","names":[],"sources":["../src/get-workspace-root.ts"],"sourcesContent":[],"mappings":";cAwBa;AAAA,cAwDA,oBAFH,EAAA,MAAA,EAAA;AAEV;AAmBA;AAoCA;AAeA;AAgBA;AAeA;AAUgB,iBA5FA,gBAAA,CA4FqB,GAAA,CAAA,EAAA,MAAA,CAAA,EAAA,MAAA;;;;;;;iBAxDrB,eAAA;;;;;;;iBAeA,cAAA;;;;;;;iBAgBA,aAAA;;;;;;;iBAeA,uBAAA;;;;;;;iBAUA,qBAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./cwd-YTg9Cx6C.mjs";import{o as t}from"./file-path-fns-BDzC2SIV.mjs";import{t as n}from"./get-parent-path-DLFSyxSW.mjs";import{findWorkspaceRootSafe as r}from"@storm-software/config-tools";function i(e){return e===`/`||e===`c:\\`||e===`C:\\`}const a=`.all-contributorsrc,.commitlintrc,.github,.git,.husky,.huskyrc,.lintstagedrc,.log4brains.yml,.npmrc,.nx,.storm-workspace.js,.storm-workspace.json,.storm-workspace.ts,.storm-workspace.yaml,.storm-workspace.yml,.vscode,.whitesource,bun.lock,bun.lockb,lefthook.yaml,lefthook.yml,lerna.json,npm-lock.json,npm-lock.yaml,npm-lock.yml,npm-workspace.json,npm-workspace.yaml,npm-workspace.yml,nx.json,package-lock.json,patches,pnpm-lock.json,pnpm-lock.yaml,pnpm-lock.yml,pnpm-workspace.json,pnpm-workspace.yaml,pnpm-workspace.yml,socket.yaml,storm-workspace.js,storm-workspace.json,storm-workspace.ts,storm-workspace.yaml,storm-workspace.yml,syncpack.config.js,syncpack.json,turbo.json,yarn-lock.json,yarn-lock.yaml,yarn-lock.yml,yarn-workspace.json,yarn-workspace.yaml,yarn-workspace.yml,yarn.lock`.split(`,`),o=[`.powerlines`,`.storm`,`package.json`,`powerlines.json`,`powerlines.yaml`,`powerlines.yml`,`powerlines.toml`,`powerlines.config.js`,`powerlines.config.ts`,`project.json`];function s(t=e()){if(process.env.STORM_WORKSPACE_ROOT||process.env.NX_WORKSPACE_ROOT_PATH)return process.env.STORM_WORKSPACE_ROOT||process.env.NX_WORKSPACE_ROOT_PATH;let o=r(t);if(o)return o;let s=n(a,t);if(s)return s;for(s=t;s&&!i(s);)if(s=n(`storm-workspace.json`,s,{skipCwd:!0,includeNameInResults:!1}),s)return s;return t}function c(t=e()){let n=s(t);return n?n===t:!1}function l(t=e()){return n(o,t)||t}function u(t=e()){let n=l(t);return n?n===t:!1}function d(e){return t(e,s())}function f(e){return t(e,l())}export{u as a,d as c,s as i,a as n,c as o,l as r,f as s,o as t};
|
|
2
|
-
//# sourceMappingURL=get-workspace-root-k66w-wLW.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-workspace-root-k66w-wLW.mjs","names":["WORKSPACE_ROOT_CONTENT: string[]","PROJECT_ROOT_CONTENT: string[]"],"sources":["../../path/src/is-root-dir.ts","../src/get-workspace-root.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\n/**\n * Check if the directory is the current system's root directory.\n *\n * @param dir - The directory to check.\n * @returns Returns true if the directory is the root directory.\n */\nexport function isSystemRoot(dir: string): boolean {\n return Boolean(dir === \"/\" || dir === \"c:\\\\\" || dir === \"C:\\\\\");\n}\n","/* -------------------------------------------------------------------\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 { findWorkspaceRootSafe } from \"@storm-software/config-tools\";\nimport { cwd } from \"@stryke/path/cwd\";\nimport { relativePath } from \"@stryke/path/file-path-fns\";\nimport { isSystemRoot } from \"@stryke/path/is-root-dir\";\nimport { getParentPath } from \"./get-parent-path\";\n\nexport const WORKSPACE_ROOT_CONTENT: string[] = [\n \".all-contributorsrc\",\n \".commitlintrc\",\n \".github\",\n \".git\",\n \".husky\",\n \".huskyrc\",\n \".lintstagedrc\",\n \".log4brains.yml\",\n \".npmrc\",\n \".nx\",\n \".storm-workspace.js\",\n \".storm-workspace.json\",\n \".storm-workspace.ts\",\n \".storm-workspace.yaml\",\n \".storm-workspace.yml\",\n \".vscode\",\n \".whitesource\",\n \"bun.lock\",\n \"bun.lockb\",\n \"lefthook.yaml\",\n \"lefthook.yml\",\n \"lerna.json\",\n \"npm-lock.json\",\n \"npm-lock.yaml\",\n \"npm-lock.yml\",\n \"npm-workspace.json\",\n \"npm-workspace.yaml\",\n \"npm-workspace.yml\",\n \"nx.json\",\n \"package-lock.json\",\n \"patches\",\n \"pnpm-lock.json\",\n \"pnpm-lock.yaml\",\n \"pnpm-lock.yml\",\n \"pnpm-workspace.json\",\n \"pnpm-workspace.yaml\",\n \"pnpm-workspace.yml\",\n \"socket.yaml\",\n \"storm-workspace.js\",\n \"storm-workspace.json\",\n \"storm-workspace.ts\",\n \"storm-workspace.yaml\",\n \"storm-workspace.yml\",\n \"syncpack.config.js\",\n \"syncpack.json\",\n \"turbo.json\",\n \"yarn-lock.json\",\n \"yarn-lock.yaml\",\n \"yarn-lock.yml\",\n \"yarn-workspace.json\",\n \"yarn-workspace.yaml\",\n \"yarn-workspace.yml\",\n \"yarn.lock\"\n] as const;\n\nexport const PROJECT_ROOT_CONTENT: string[] = [\n \".powerlines\",\n \".storm\",\n \"package.json\",\n \"powerlines.json\",\n \"powerlines.yaml\",\n \"powerlines.yml\",\n \"powerlines.toml\",\n \"powerlines.config.js\",\n \"powerlines.config.ts\",\n \"project.json\"\n] as const;\n\n/**\n * Get the workspace root path\n *\n * @param dir - A directory to start the search from\n * @returns The workspace root path\n */\nexport function getWorkspaceRoot(dir = cwd()) {\n if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {\n return (process.env.STORM_WORKSPACE_ROOT ||\n process.env.NX_WORKSPACE_ROOT_PATH)!;\n }\n\n const root = findWorkspaceRootSafe(dir);\n if (root) {\n return root;\n }\n\n let result = getParentPath(WORKSPACE_ROOT_CONTENT, dir);\n if (result) {\n return result;\n }\n\n result = dir;\n while (result && !isSystemRoot(result)) {\n result = getParentPath(\"storm-workspace.json\", result, {\n skipCwd: true,\n includeNameInResults: false\n });\n if (result) {\n return result;\n }\n }\n\n return dir;\n}\n\n/**\n * Check if the given directory is the workspace root\n *\n * @param dir - A directory to check\n * @returns True if the directory is the workspace root, false otherwise\n */\nexport function isWorkspaceRoot(dir = cwd()): boolean {\n const workspaceRoot = getWorkspaceRoot(dir);\n if (workspaceRoot) {\n return workspaceRoot === dir;\n }\n\n return false;\n}\n\n/**\n * Get the project root path\n *\n * @param dir - A directory to start the search from\n * @returns The project root path\n */\nexport function getProjectRoot(dir = cwd()) {\n const result = getParentPath(PROJECT_ROOT_CONTENT, dir);\n\n if (result) {\n return result;\n }\n\n return dir;\n}\n\n/**\n * Check if the given directory is the project root\n *\n * @param dir - A directory to check\n * @returns True if the directory is the project root, false otherwise\n */\nexport function isProjectRoot(dir = cwd()): boolean {\n const projectRoot = getProjectRoot(dir);\n if (projectRoot) {\n return projectRoot === dir;\n }\n\n return false;\n}\n\n/**\n * Find the file path relative to the workspace root path.\n *\n * @param filePath - The file path to process\n * @returns The file path relative to the workspace root\n */\nexport function relativeToWorkspaceRoot(filePath: string) {\n return relativePath(filePath, getWorkspaceRoot());\n}\n\n/**\n * Find the file path relative to the project root path.\n *\n * @param filePath - The file path to process\n * @returns The file path relative to the project root\n */\nexport function relativeToProjectRoot(filePath: string) {\n return relativePath(filePath, getProjectRoot());\n}\n"],"mappings":"gNAwBA,SAAgB,EAAa,EAAsB,CACjD,OAAe,IAAQ,KAAO,IAAQ,QAAU,IAAQ,OCD1D,MAAaA,EAAmC,kyBAsD/C,CAEYC,EAAiC,CAC5C,cACA,SACA,eACA,kBACA,kBACA,iBACA,kBACA,uBACA,uBACA,eACD,CAQD,SAAgB,EAAiB,EAAM,GAAK,CAAE,CAC5C,GAAI,QAAQ,IAAI,sBAAwB,QAAQ,IAAI,uBAClD,OAAQ,QAAQ,IAAI,sBAClB,QAAQ,IAAI,uBAGhB,IAAM,EAAO,EAAsB,EAAI,CACvC,GAAI,EACF,OAAO,EAGT,IAAI,EAAS,EAAc,EAAwB,EAAI,CACvD,GAAI,EACF,OAAO,EAIT,IADA,EAAS,EACF,GAAU,CAAC,EAAa,EAAO,EAKpC,GAJA,EAAS,EAAc,uBAAwB,EAAQ,CACrD,QAAS,GACT,qBAAsB,GACvB,CAAC,CACE,EACF,OAAO,EAIX,OAAO,EAST,SAAgB,EAAgB,EAAM,GAAK,CAAW,CACpD,IAAM,EAAgB,EAAiB,EAAI,CAK3C,OAJI,EACK,IAAkB,EAGpB,GAST,SAAgB,EAAe,EAAM,GAAK,CAAE,CAO1C,OANe,EAAc,EAAsB,EAAI,EAMhD,EAST,SAAgB,EAAc,EAAM,GAAK,CAAW,CAClD,IAAM,EAAc,EAAe,EAAI,CAKvC,OAJI,EACK,IAAgB,EAGlB,GAST,SAAgB,EAAwB,EAAkB,CACxD,OAAO,EAAa,EAAU,GAAkB,CAAC,CASnD,SAAgB,EAAsB,EAAkB,CACtD,OAAO,EAAa,EAAU,GAAgB,CAAC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./exists-Ci-9lYmi.mjs";import{createWriteStream as n,mkdirSync as r,rmSync as i}from"node:fs";import{mkdir as a,readFile as o,rm as s}from"node:fs/promises";import{parseTar as c,parseTarGzip as l}from"nanotar";function u(t){if(!e(t))return r(t,{recursive:!0})}async function d(e){if(!await t(e))return a(e,{recursive:!0})}function f(t){if(e(t))return i(t,{recursive:!0})}async function p(t){if(e(t))return s(t,{recursive:!0})}async function m(e,r,i){let s=c(await o(e)).find(e=>e.name===r);s?.data&&(await t(i)||await a(i,{recursive:!0}),n(i).write(s.data))}async function h(e,r,i){let s=(await l(await o(e))).find(e=>e.name===r);s?.data&&(await t(i)||await a(i,{recursive:!0}),n(i).write(s.data))}export{p as a,h as i,u as n,f as o,m as r,d as t};
|
|
2
|
-
//# sourceMappingURL=helpers-BSEQb1fp.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers-BSEQb1fp.mjs","names":["existsSync"],"sources":["../src/helpers.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 { parseTar, parseTarGzip } from \"nanotar\";\nimport { createWriteStream, mkdirSync, rmSync } from \"node:fs\";\nimport { mkdir, readFile, rm } from \"node:fs/promises\";\nimport { exists, existsSync } from \"./exists\";\n\n/**\n * Create a directory if it does not exist.\n *\n * @param path - The directory path to check\n * @returns An indicator specifying if the directory exists\n */\nexport function createDirectorySync(path: string) {\n if (existsSync(path)) {\n return;\n }\n\n return mkdirSync(path, { recursive: true });\n}\n\n/**\n * Create a directory if it does not exist.\n *\n * @param path - The directory path to check\n * @returns An indicator specifying if the directory exists\n */\nexport async function createDirectory(path: string) {\n if (await exists(path)) {\n return;\n }\n\n return mkdir(path, { recursive: true });\n}\n\n/**\n * Remove a directory if it exists.\n *\n * @param path - The directory path to check\n * @returns An indicator specifying if the directory exists\n */\nexport function removeDirectorySync(path: string) {\n if (!existsSync(path)) {\n return;\n }\n\n return rmSync(path, { recursive: true });\n}\n\n/**\n * Remove a directory if it exists.\n *\n * @param path - The directory path to check\n * @returns An indicator specifying if the directory exists\n */\nexport async function removeDirectory(path: string) {\n if (!existsSync(path)) {\n return;\n }\n\n return rm(path, { recursive: true });\n}\n\n/**\n * Extracts a file from a given tarball to the specified destination.\n *\n * @param tarballPath - The path to the tarball from where the file should be extracted.\n * @param file - The path to the file inside the tarball.\n * @param destinationFilePath - The destination file path.\n * @returns True if the file was extracted successfully, false otherwise.\n */\nexport async function extractFileFromTar(\n tarballPath: string,\n file: string,\n destinationFilePath: string\n) {\n const result = parseTar(await readFile(tarballPath));\n\n const entry = result.find(e => e.name === file);\n if (!entry?.data) {\n return;\n }\n\n if (!(await exists(destinationFilePath))) {\n await mkdir(destinationFilePath, { recursive: true });\n }\n\n const stream = createWriteStream(destinationFilePath);\n stream.write(entry.data);\n}\n\n/**\n * Extracts a file from a given TarGzip to the specified destination.\n *\n * @param tarballPath - The path to the tarball from where the file should be extracted.\n * @param file - The path to the file inside the tarball.\n * @param destinationFilePath - The destination file path.\n * @returns True if the file was extracted successfully, false otherwise.\n */\nexport async function extractFileFromTarGzip(\n tarballPath: string,\n file: string,\n destinationFilePath: string\n) {\n const result = await parseTarGzip(await readFile(tarballPath));\n\n const entry = result.find(e => e.name === file);\n if (!entry?.data) {\n return;\n }\n\n if (!(await exists(destinationFilePath))) {\n await mkdir(destinationFilePath, { recursive: true });\n }\n\n const stream = createWriteStream(destinationFilePath);\n stream.write(entry.data);\n}\n"],"mappings":"uOA6BA,SAAgB,EAAoB,EAAc,CAC5CA,MAAW,EAAK,CAIpB,OAAO,EAAU,EAAM,CAAE,UAAW,GAAM,CAAC,CAS7C,eAAsB,EAAgB,EAAc,CAC9C,UAAM,EAAO,EAAK,CAItB,OAAO,EAAM,EAAM,CAAE,UAAW,GAAM,CAAC,CASzC,SAAgB,EAAoB,EAAc,CAC3CA,KAAW,EAAK,CAIrB,OAAO,EAAO,EAAM,CAAE,UAAW,GAAM,CAAC,CAS1C,eAAsB,EAAgB,EAAc,CAC7CA,KAAW,EAAK,CAIrB,OAAO,EAAG,EAAM,CAAE,UAAW,GAAM,CAAC,CAWtC,eAAsB,EACpB,EACA,EACA,EACA,CAGA,IAAM,EAFS,EAAS,MAAM,EAAS,EAAY,CAAC,CAE/B,KAAK,GAAK,EAAE,OAAS,EAAK,CAC1C,GAAO,OAIN,MAAM,EAAO,EAAoB,EACrC,MAAM,EAAM,EAAqB,CAAE,UAAW,GAAM,CAAC,CAGxC,EAAkB,EAAoB,CAC9C,MAAM,EAAM,KAAK,EAW1B,eAAsB,EACpB,EACA,EACA,EACA,CAGA,IAAM,GAFS,MAAM,EAAa,MAAM,EAAS,EAAY,CAAC,EAEzC,KAAK,GAAK,EAAE,OAAS,EAAK,CAC1C,GAAO,OAIN,MAAM,EAAO,EAAoB,EACrC,MAAM,EAAM,EAAqB,CAAE,UAAW,GAAM,CAAC,CAGxC,EAAkB,EAAoB,CAC9C,MAAM,EAAM,KAAK"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
//#region src/helpers.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Create a directory if it does not exist.
|
|
4
|
-
*
|
|
5
|
-
* @param path - The directory path to check
|
|
6
|
-
* @returns An indicator specifying if the directory exists
|
|
7
|
-
*/
|
|
8
|
-
declare function createDirectorySync(path: string): string | undefined;
|
|
9
|
-
/**
|
|
10
|
-
* Create a directory if it does not exist.
|
|
11
|
-
*
|
|
12
|
-
* @param path - The directory path to check
|
|
13
|
-
* @returns An indicator specifying if the directory exists
|
|
14
|
-
*/
|
|
15
|
-
declare function createDirectory(path: string): Promise<string | undefined>;
|
|
16
|
-
/**
|
|
17
|
-
* Remove a directory if it exists.
|
|
18
|
-
*
|
|
19
|
-
* @param path - The directory path to check
|
|
20
|
-
* @returns An indicator specifying if the directory exists
|
|
21
|
-
*/
|
|
22
|
-
declare function removeDirectorySync(path: string): void;
|
|
23
|
-
/**
|
|
24
|
-
* Remove a directory if it exists.
|
|
25
|
-
*
|
|
26
|
-
* @param path - The directory path to check
|
|
27
|
-
* @returns An indicator specifying if the directory exists
|
|
28
|
-
*/
|
|
29
|
-
declare function removeDirectory(path: string): Promise<void>;
|
|
30
|
-
/**
|
|
31
|
-
* Extracts a file from a given tarball to the specified destination.
|
|
32
|
-
*
|
|
33
|
-
* @param tarballPath - The path to the tarball from where the file should be extracted.
|
|
34
|
-
* @param file - The path to the file inside the tarball.
|
|
35
|
-
* @param destinationFilePath - The destination file path.
|
|
36
|
-
* @returns True if the file was extracted successfully, false otherwise.
|
|
37
|
-
*/
|
|
38
|
-
declare function extractFileFromTar(tarballPath: string, file: string, destinationFilePath: string): Promise<void>;
|
|
39
|
-
/**
|
|
40
|
-
* Extracts a file from a given TarGzip to the specified destination.
|
|
41
|
-
*
|
|
42
|
-
* @param tarballPath - The path to the tarball from where the file should be extracted.
|
|
43
|
-
* @param file - The path to the file inside the tarball.
|
|
44
|
-
* @param destinationFilePath - The destination file path.
|
|
45
|
-
* @returns True if the file was extracted successfully, false otherwise.
|
|
46
|
-
*/
|
|
47
|
-
declare function extractFileFromTarGzip(tarballPath: string, file: string, destinationFilePath: string): Promise<void>;
|
|
48
|
-
//#endregion
|
|
49
|
-
export { removeDirectory as a, extractFileFromTarGzip as i, createDirectorySync as n, removeDirectorySync as o, extractFileFromTar as r, createDirectory as t };
|
|
50
|
-
//# sourceMappingURL=helpers-CYWFZ-Uv.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers-CYWFZ-Uv.d.mts","names":[],"sources":["../src/helpers.ts"],"sourcesContent":[],"mappings":";;AA6BA;AAcA;AAcA;AAcA;AAgBA;AA4BsB,iBAtFN,mBAAA,CAyFa,IAAA,EAAA,MAAA,CAAA,EAAA,MAAA,GAAA,SAAA;;;;;;;iBA3EP,eAAA,gBAA4B;;;;;;;iBAclC,mBAAA;;;;;;;iBAcM,eAAA,gBAA4B;;;;;;;;;iBAgB5B,kBAAA,kEAGO;;;;;;;;;iBAyBP,sBAAA,kEAGO"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
//#region src/helpers.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Create a directory if it does not exist.
|
|
4
|
-
*
|
|
5
|
-
* @param path - The directory path to check
|
|
6
|
-
* @returns An indicator specifying if the directory exists
|
|
7
|
-
*/
|
|
8
|
-
declare function createDirectorySync(path: string): string | undefined;
|
|
9
|
-
/**
|
|
10
|
-
* Create a directory if it does not exist.
|
|
11
|
-
*
|
|
12
|
-
* @param path - The directory path to check
|
|
13
|
-
* @returns An indicator specifying if the directory exists
|
|
14
|
-
*/
|
|
15
|
-
declare function createDirectory(path: string): Promise<string | undefined>;
|
|
16
|
-
/**
|
|
17
|
-
* Remove a directory if it exists.
|
|
18
|
-
*
|
|
19
|
-
* @param path - The directory path to check
|
|
20
|
-
* @returns An indicator specifying if the directory exists
|
|
21
|
-
*/
|
|
22
|
-
declare function removeDirectorySync(path: string): void;
|
|
23
|
-
/**
|
|
24
|
-
* Remove a directory if it exists.
|
|
25
|
-
*
|
|
26
|
-
* @param path - The directory path to check
|
|
27
|
-
* @returns An indicator specifying if the directory exists
|
|
28
|
-
*/
|
|
29
|
-
declare function removeDirectory(path: string): Promise<void>;
|
|
30
|
-
/**
|
|
31
|
-
* Extracts a file from a given tarball to the specified destination.
|
|
32
|
-
*
|
|
33
|
-
* @param tarballPath - The path to the tarball from where the file should be extracted.
|
|
34
|
-
* @param file - The path to the file inside the tarball.
|
|
35
|
-
* @param destinationFilePath - The destination file path.
|
|
36
|
-
* @returns True if the file was extracted successfully, false otherwise.
|
|
37
|
-
*/
|
|
38
|
-
declare function extractFileFromTar(tarballPath: string, file: string, destinationFilePath: string): Promise<void>;
|
|
39
|
-
/**
|
|
40
|
-
* Extracts a file from a given TarGzip to the specified destination.
|
|
41
|
-
*
|
|
42
|
-
* @param tarballPath - The path to the tarball from where the file should be extracted.
|
|
43
|
-
* @param file - The path to the file inside the tarball.
|
|
44
|
-
* @param destinationFilePath - The destination file path.
|
|
45
|
-
* @returns True if the file was extracted successfully, false otherwise.
|
|
46
|
-
*/
|
|
47
|
-
declare function extractFileFromTarGzip(tarballPath: string, file: string, destinationFilePath: string): Promise<void>;
|
|
48
|
-
//#endregion
|
|
49
|
-
export { removeDirectory as a, extractFileFromTarGzip as i, createDirectorySync as n, removeDirectorySync as o, extractFileFromTar as r, createDirectory as t };
|
|
50
|
-
//# sourceMappingURL=helpers-CgMOExPa.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers-CgMOExPa.d.cts","names":[],"sources":["../src/helpers.ts"],"sourcesContent":[],"mappings":";;AA6BA;AAcA;AAcA;AAcA;AAgBA;AA4BsB,iBAtFN,mBAAA,CAyFa,IAAA,EAAA,MAAA,CAAA,EAAA,MAAA,GAAA,SAAA;;;;;;;iBA3EP,eAAA,gBAA4B;;;;;;;iBAclC,mBAAA;;;;;;;iBAcM,eAAA,gBAA4B;;;;;;;;;iBAgB5B,kBAAA,kEAGO;;;;;;;;;iBAyBP,sBAAA,kEAGO"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./exists-B31lSRFp.cjs`);let n=require(`node:fs`),r=require(`node:fs/promises`),i=require(`nanotar`);function a(e){if(!t.n(e))return(0,n.mkdirSync)(e,{recursive:!0})}async function o(e){if(!await t.t(e))return(0,r.mkdir)(e,{recursive:!0})}function s(e){if(t.n(e))return(0,n.rmSync)(e,{recursive:!0})}async function c(e){if(t.n(e))return(0,r.rm)(e,{recursive:!0})}async function l(e,a,o){let s=(0,i.parseTar)(await(0,r.readFile)(e)).find(e=>e.name===a);s?.data&&(await t.t(o)||await(0,r.mkdir)(o,{recursive:!0}),(0,n.createWriteStream)(o).write(s.data))}async function u(e,a,o){let s=(await(0,i.parseTarGzip)(await(0,r.readFile)(e))).find(e=>e.name===a);s?.data&&(await t.t(o)||await(0,r.mkdir)(o,{recursive:!0}),(0,n.createWriteStream)(o).write(s.data))}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./cwd-YTg9Cx6C.mjs";import{o as t}from"./resolve-C_YsCFne.mjs";import{installPackage as n}from"@antfu/install-pkg";import"tinyexec";async function r(e,t){return n(e,t)}const i=async(n,i)=>{let a=await t(i?.cwd||e());try{await t(n,{paths:[a]})}catch{await r(n,i)}};export{i as n,r as t};
|
|
2
|
-
//# sourceMappingURL=install-B3bIjHoU.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"install-B3bIjHoU.mjs","names":[],"sources":["../src/install.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 { InstallPackageOptions } from \"@antfu/install-pkg\";\nimport { installPackage } from \"@antfu/install-pkg\";\nimport { cwd } from \"@stryke/path/cwd\";\nimport \"tinyexec\";\nimport { resolve } from \"./resolve\";\n\n/**\n * Install a specific package\n *\n * @param name - The name of the package to install\n * @param options - The options to use when installing the package\n */\nexport async function install(\n name: string,\n options?: InstallPackageOptions\n): Promise<ReturnType<typeof installPackage>>;\n\n/**\n * Install a list of packages\n *\n * @param names - The list of package names to install\n * @param options - The options to use when installing the package\n */\nexport async function install(\n names: string[],\n options?: InstallPackageOptions\n): Promise<ReturnType<typeof installPackage>>;\n\n/**\n * Install a specific or list of packages\n *\n * @param nameOrNames - The name or names of packages to install\n * @param options - The options to use when installing the package\n * @returns The result of the command or an exception\n */\nexport async function install(\n nameOrNames: string | string[],\n options?: InstallPackageOptions\n): Promise<ReturnType<typeof installPackage>> {\n return installPackage(nameOrNames, options);\n}\n\n/**\n * Check if a package exists and install it if it does not\n *\n * @param name - The name of the package to check\n * @param options - The options to use when installing the package\n */\nexport const packageExists = async (\n name: string,\n options?: InstallPackageOptions\n) => {\n const resolvePath = await resolve(options?.cwd || cwd());\n try {\n await resolve(name, { paths: [resolvePath] });\n } catch {\n await install(name, options);\n }\n};\n"],"mappings":"uJAqDA,eAAsB,EACpB,EACA,EAC4C,CAC5C,OAAO,EAAe,EAAa,EAAQ,CAS7C,MAAa,EAAgB,MAC3B,EACA,IACG,CACH,IAAM,EAAc,MAAM,EAAQ,GAAS,KAAO,GAAK,CAAC,CACxD,GAAI,CACF,MAAM,EAAQ,EAAM,CAAE,MAAO,CAAC,EAAY,CAAE,CAAC,MACvC,CACN,MAAM,EAAQ,EAAM,EAAQ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./cwd-o2vq8Tk9.cjs`),n=require(`./resolve-DTkLQekH.cjs`);let r=require(`@antfu/install-pkg`);require(`tinyexec`);async function i(e,t){return(0,r.installPackage)(e,t)}const a=async(e,r)=>{let a=await n.o(r?.cwd||t.t());try{await n.o(e,{paths:[a]})}catch{await i(e,r)}};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { InstallPackageOptions, installPackage } from "@antfu/install-pkg";
|
|
2
|
-
|
|
3
|
-
//#region src/install.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Install a specific package
|
|
7
|
-
*
|
|
8
|
-
* @param name - The name of the package to install
|
|
9
|
-
* @param options - The options to use when installing the package
|
|
10
|
-
*/
|
|
11
|
-
declare function install(name: string, options?: InstallPackageOptions): Promise<ReturnType<typeof installPackage>>;
|
|
12
|
-
/**
|
|
13
|
-
* Install a list of packages
|
|
14
|
-
*
|
|
15
|
-
* @param names - The list of package names to install
|
|
16
|
-
* @param options - The options to use when installing the package
|
|
17
|
-
*/
|
|
18
|
-
declare function install(names: string[], options?: InstallPackageOptions): Promise<ReturnType<typeof installPackage>>;
|
|
19
|
-
/**
|
|
20
|
-
* Check if a package exists and install it if it does not
|
|
21
|
-
*
|
|
22
|
-
* @param name - The name of the package to check
|
|
23
|
-
* @param options - The options to use when installing the package
|
|
24
|
-
*/
|
|
25
|
-
declare const packageExists: (name: string, options?: InstallPackageOptions) => Promise<void>;
|
|
26
|
-
//#endregion
|
|
27
|
-
export { packageExists as n, install as t };
|
|
28
|
-
//# sourceMappingURL=install-CxPsLO2t.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"install-CxPsLO2t.d.cts","names":[],"sources":["../src/install.ts"],"sourcesContent":[],"mappings":";;;;AA8BA;;;;;;AAWsB,iBAXA,OAAA,CAWO,IAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EATjB,qBASiB,CAAA,EAR1B,OAQ0B,CARlB,UAQkB,CAAA,OARA,cAQA,CAAA,CAAA;;;;;;AAyB7B;iBAzBsB,OAAA,4BAEV,wBACT,QAAQ,kBAAkB;;;;;;;cAsBhB,wCAED,0BAAqB"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { InstallPackageOptions, installPackage } from "@antfu/install-pkg";
|
|
2
|
-
import "tinyexec";
|
|
3
|
-
|
|
4
|
-
//#region src/install.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Install a specific package
|
|
8
|
-
*
|
|
9
|
-
* @param name - The name of the package to install
|
|
10
|
-
* @param options - The options to use when installing the package
|
|
11
|
-
*/
|
|
12
|
-
declare function install(name: string, options?: InstallPackageOptions): Promise<ReturnType<typeof installPackage>>;
|
|
13
|
-
/**
|
|
14
|
-
* Install a list of packages
|
|
15
|
-
*
|
|
16
|
-
* @param names - The list of package names to install
|
|
17
|
-
* @param options - The options to use when installing the package
|
|
18
|
-
*/
|
|
19
|
-
declare function install(names: string[], options?: InstallPackageOptions): Promise<ReturnType<typeof installPackage>>;
|
|
20
|
-
/**
|
|
21
|
-
* Check if a package exists and install it if it does not
|
|
22
|
-
*
|
|
23
|
-
* @param name - The name of the package to check
|
|
24
|
-
* @param options - The options to use when installing the package
|
|
25
|
-
*/
|
|
26
|
-
declare const packageExists: (name: string, options?: InstallPackageOptions) => Promise<void>;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { packageExists as n, install as t };
|
|
29
|
-
//# sourceMappingURL=install-dYt7hlQn.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"install-dYt7hlQn.d.mts","names":[],"sources":["../src/install.ts"],"sourcesContent":[],"mappings":";;;;;;AA8BA;;;;;AAGU,iBAHY,OAAA,CAGZ,IAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EADE,qBACF,CAAA,EAAP,OAAO,CAAC,UAAD,CAAA,OAAmB,cAAnB,CAAA,CAAA;AAQV;;;;;;AAyBa,iBAzBS,OAAA,CA2BV,KAAA,EAAA,MAAA,EAAA,EAAA,OAAqB,CAAA,EAzBrB,qBAyBqB,CAAA,EAxB9B,OAwB8B,CAxBtB,UAwBsB,CAAA,OAxBJ,cAwBI,CAAA,CAAA;;;;;;;cAFpB,wCAED,0BAAqB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./is-string-DKgNS0jA.cjs`),t=require(`./is-object-FBXmvehR.cjs`),n=n=>{if(!t.t(n))return!1;let r=e.n(n);return r===`[object Error]`||r===`[object DOMException]`||typeof n?.message==`string`&&typeof n?.name==`string`&&!t.n(n)};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./is-string-91Z3dOKQ.mjs";import{n as t,t as n}from"./is-object-UsKYhyC5.mjs";const r=r=>{if(!n(r))return!1;let i=e(r);return i===`[object Error]`||i===`[object DOMException]`||typeof r?.message==`string`&&typeof r?.name==`string`&&!t(r)};export{r as t};
|
|
2
|
-
//# sourceMappingURL=is-error-CjVXmD_8.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-error-CjVXmD_8.mjs","names":[],"sources":["../../type-checks/src/is-error.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 { getObjectTag } from \"./get-object-tag\";\nimport { isObject } from \"./is-object\";\nimport { isPlainObject } from \"./is-plain-object\";\n\n/**\n * Checks if `obj` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n *\n * @example\n * ```typescript\n * isError(new Error)\n * // => true\n *\n * isError(Error)\n * // => false\n * ```\n *\n * @param obj - The obj to check.\n * @returns Returns `true` if `obj` is an error object, else `false`.\n */\nexport const isError = (obj: unknown): obj is Error => {\n if (!isObject(obj)) {\n return false;\n }\n\n const tag = getObjectTag(obj);\n\n return (\n tag === \"[object Error]\" ||\n tag === \"[object DOMException]\" ||\n (typeof (obj as Error)?.message === \"string\" &&\n typeof (obj as Error)?.name === \"string\" &&\n !isPlainObject(obj))\n );\n};\n"],"mappings":"iGAsCA,MAAa,EAAW,GAA+B,CACrD,GAAI,CAAC,EAAS,EAAI,CAChB,MAAO,GAGT,IAAM,EAAM,EAAa,EAAI,CAE7B,OACE,IAAQ,kBACR,IAAQ,yBACP,OAAQ,GAAe,SAAY,UAClC,OAAQ,GAAe,MAAS,UAChC,CAAC,EAAc,EAAI"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./join-paths-DUdaieID.cjs`);let n=require(`node:fs`);function r(e,r){return!!(0,n.statSync)(r?t.t(r,e):e,{throwIfNoEntry:!1})?.isFile()}function i(e,r){return!!(0,n.statSync)(r?t.t(r,e):e,{throwIfNoEntry:!1})?.isDirectory()}const a=(e,r)=>!!(0,n.lstatSync)(r?t.t(r,e):e,{throwIfNoEntry:!1})?.isFile(),o=(e,r)=>!!(0,n.lstatSync)(r?t.t(r,e):e,{throwIfNoEntry:!1})?.isDirectory();Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./join-paths-BHepkhAj.mjs";import{lstatSync as t,statSync as n}from"node:fs";function r(t,r){return!!n(r?e(r,t):t,{throwIfNoEntry:!1})?.isFile()}function i(t,r){return!!n(r?e(r,t):t,{throwIfNoEntry:!1})?.isDirectory()}const a=(n,r)=>!!t(r?e(r,n):n,{throwIfNoEntry:!1})?.isFile(),o=(n,r)=>!!t(r?e(r,n):n,{throwIfNoEntry:!1})?.isDirectory();export{a as i,o as n,r,i as t};
|
|
2
|
-
//# sourceMappingURL=is-file-CNooe8Wz.mjs.map
|