Skip to content

Commit

Permalink
Fix sass command on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Nov 2, 2024
1 parent 8cbf060 commit 6ca7947
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/sass.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env node

import * as child_process from 'child_process';
import * as path from 'path';
import {compilerCommand} from '../lib/src/compiler-path';

// TODO npm/cmd-shim#152 and yarnpkg/berry#6422 - If and when the package
Expand All @@ -12,6 +13,10 @@ try {
compilerCommand[0],
[...compilerCommand.slice(1), ...process.argv.slice(2)],
{
// Node blocks launching .bat and .cmd without a shell due to CVE-2024-27980
shell: ['.bat', '.cmd'].includes(
path.extname(compilerCommand[0]).toLowerCase()
),
stdio: 'inherit',
windowsHide: true,
}
Expand Down

0 comments on commit 6ca7947

Please sign in to comment.