Skip to content

Commit 868ae2c

Browse files
revert trying to fix Node.js deprecation
1 parent 6ea1a96 commit 868ae2c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

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

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

1818
console.log(`> ${command} ${args.join(' ')}`);
1919

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const postinstallScripts = () => {
4747
const sassEmbeddedPath = resolve('node_modules', 'sass-embedded');
4848
const sassVendorPath = join(sassEmbeddedPath, 'dist', 'lib', 'src', 'vendor', 'dart-sass-embedded');
4949
if (!existsSync(sassVendorPath)) {
50-
spawnSync('npm run postinstall', {
50+
spawnSync('npm', ['run', 'postinstall'], {
5151
cwd: resolve(join('node_modules', 'sass-embedded')),
5252
windowsVerbatimArguments: true,
5353
shell: isWin ? false : true

0 commit comments

Comments
 (0)