Skip to content

Commit 6ea1a96

Browse files
try manual args join
1 parent 0451199 commit 6ea1a96

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/devextreme-cli/src/utility/run-command.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = function(commandName, args = [], customConfig = {}) {
88
const config = {
99
stdio: 'inherit',
1010
windowsVerbatimArguments: true,
11+
shell: true,
1112
};
1213

1314
if(customConfig) {
@@ -16,7 +17,7 @@ module.exports = function(commandName, args = [], customConfig = {}) {
1617

1718
console.log(`> ${command} ${args.join(' ')}`);
1819

19-
const proc = spawn(command, args, config);
20+
const proc = spawn(`${command} ${args.join(' ')}`, config);
2021

2122
return new Promise((resolve, reject) => {
2223
proc.on('exit', (code) => {

packages/devextreme-schematics/src/add-app-template/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,15 @@ export default function(options: any): Rule {
4242
}
4343

4444
const postinstallScripts = () => {
45+
const isWin = /^win/.test(process.platform);
46+
4547
const sassEmbeddedPath = resolve('node_modules', 'sass-embedded');
4648
const sassVendorPath = join(sassEmbeddedPath, 'dist', 'lib', 'src', 'vendor', 'dart-sass-embedded');
4749
if (!existsSync(sassVendorPath)) {
48-
spawnSync('npm', ['run', 'postinstall'], {
50+
spawnSync('npm run postinstall', {
4951
cwd: resolve(join('node_modules', 'sass-embedded')),
5052
windowsVerbatimArguments: true,
53+
shell: isWin ? false : true
5154
});
5255
}
5356
};

0 commit comments

Comments
 (0)