routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+35
@@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env node
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const child_process = require("child_process");
|
||||
const path = require("path");
|
||||
const compiler_path_1 = require("../lib/src/compiler-path");
|
||||
// TODO npm/cmd-shim#152 and yarnpkg/berry#6422 - If and when the package
|
||||
// managers support it, we should make this a proper shell script rather than a
|
||||
// JS wrapper.
|
||||
try {
|
||||
let command = compiler_path_1.compilerCommand[0];
|
||||
let args = [...compiler_path_1.compilerCommand.slice(1), ...process.argv.slice(2)];
|
||||
const options = {
|
||||
stdio: 'inherit',
|
||||
windowsHide: true,
|
||||
};
|
||||
// Node forbids launching .bat and .cmd without a shell due to CVE-2024-27980,
|
||||
// and DEP0190 forbids passing an argument list *with* shell: true. To work
|
||||
// around this, we have to manually concatenate the arguments.
|
||||
if (['.bat', '.cmd'].includes(path.extname(command).toLowerCase())) {
|
||||
command = `${command} ${args.join(' ')}`;
|
||||
args = [];
|
||||
options.shell = true;
|
||||
}
|
||||
child_process.execFileSync(command, args, options);
|
||||
}
|
||||
catch (error) {
|
||||
if (error.code) {
|
||||
throw error;
|
||||
}
|
||||
else {
|
||||
process.exitCode = error.status;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=sass.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"sass.js","sourceRoot":"","sources":["../../bin/sass.ts"],"names":[],"mappings":";;;AAEA,+CAA+C;AAC/C,6BAA6B;AAE7B,4DAAyD;AAEzD,yEAAyE;AACzE,+EAA+E;AAC/E,cAAc;AAEd,IAAI,CAAC;IACH,IAAI,OAAO,GAAG,+BAAe,CAAC,CAAC,CAAC,CAAC;IACjC,IAAI,IAAI,GAAG,CAAC,GAAG,+BAAe,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,MAAM,OAAO,GAAsC;QACjD,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,IAAI;KAClB,CAAC;IAEF,8EAA8E;IAC9E,2EAA2E;IAC3E,8DAA8D;IAC9D,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC;QACnE,OAAO,GAAG,GAAG,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QACzC,IAAI,GAAG,EAAE,CAAC;QACV,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;IACvB,CAAC;IAED,aAAa,CAAC,YAAY,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AACrD,CAAC;AAAC,OAAO,KAAK,EAAE,CAAC;IACf,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;QACf,MAAM,KAAK,CAAC;IACd,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC;IAClC,CAAC;AACH,CAAC"}
|
||||
Reference in New Issue
Block a user