summaryrefslogtreecommitdiff
path: root/node_modules/cross-spawn-windows-exe/dist/src/normalize-path.js
diff options
context:
space:
mode:
authorLinuxWizard42 <computerwizard@linuxmail.org>2022-10-12 23:08:57 +0300
committerLinuxWizard42 <computerwizard@linuxmail.org>2022-10-12 23:08:57 +0300
commit726b81b19251674e149ccfbb1abacbd837fc6db0 (patch)
treefbdbb227dc01357eb76e8222d76185bc124c5ca6 /node_modules/cross-spawn-windows-exe/dist/src/normalize-path.js
parent34f0890e175698940d49238097579f44e4d78c89 (diff)
downloadFlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.gz
FlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.zst
Removed files that should not have been included in git
Diffstat (limited to 'node_modules/cross-spawn-windows-exe/dist/src/normalize-path.js')
-rw-r--r--node_modules/cross-spawn-windows-exe/dist/src/normalize-path.js38
1 files changed, 0 insertions, 38 deletions
diff --git a/node_modules/cross-spawn-windows-exe/dist/src/normalize-path.js b/node_modules/cross-spawn-windows-exe/dist/src/normalize-path.js
deleted file mode 100644
index 0b07b45..0000000
--- a/node_modules/cross-spawn-windows-exe/dist/src/normalize-path.js
+++ /dev/null
@@ -1,38 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.normalizePath = exports.convertUNIXPathToWindows = void 0;
-const is_wsl_1 = __importDefault(require("is-wsl"));
-const cross_spawn_promise_1 = require("@malept/cross-spawn-promise");
-/**
- * Provides a human-friendly error message when `@malept/cross-spawn-promise` can't find `wslpath`.
- */
-function updateWSLPathError(error) {
- if (error.code === "ENOENT" && error.syscall === "spawn wslpath") {
- error.message = `Could not find 'wslpath' in any of the directories listed in the PATH environment variable, which is needed to convert WSL paths to Windows-style paths.`;
- }
-}
-/**
- * Converts a UNIX-style path to a Windows-style path via `wslpath`, which should come with any
- * WSL distribution.
- */
-async function convertUNIXPathToWindows(wslPath) {
- const output = await cross_spawn_promise_1.spawn("wslpath", ["-w", wslPath], {
- updateErrorCallback: updateWSLPathError,
- });
- return output.trim();
-}
-exports.convertUNIXPathToWindows = convertUNIXPathToWindows;
-/**
- * Converts a UNIX-style path to a Windows-style path if run in a WSL environment.
- */
-async function normalizePath(pathToNormalize) {
- if (is_wsl_1.default) {
- return convertUNIXPathToWindows(pathToNormalize);
- }
- return pathToNormalize;
-}
-exports.normalizePath = normalizePath;
-//# sourceMappingURL=normalize-path.js.map \ No newline at end of file