tss-stack 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/cli.js +5 -2
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -178,7 +178,11 @@ function checkNodeVersion() {
178
178
 
179
179
  function runCommand(command, args, cwd, spinner, failMessage) {
180
180
  return new Promise((resolve, reject) => {
181
- const child = spawn(command, args, { cwd, shell: false, stdio: ["ignore", "pipe", "pipe"] });
181
+ const child = spawn(command, args.filter(Boolean), {
182
+ cwd,
183
+ shell: process.platform === "win32",
184
+ stdio: ["ignore", "pipe", "pipe"],
185
+ });
182
186
 
183
187
  child.stdout.on("data", (data) => process.stdout.write(data));
184
188
  child.stderr.on("data", (data) => process.stderr.write(data));
@@ -199,7 +203,6 @@ function runCommand(command, args, cwd, spinner, failMessage) {
199
203
  });
200
204
  });
201
205
  }
202
-
203
206
  async function cleanupProject(targetDir) {
204
207
  try {
205
208
  if (await fs.pathExists(targetDir)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tss-stack",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Interactive full-stack Node.js + React + MySQL project generator",
5
5
  "bin": {
6
6
  "tss-stack": "bin/cli.js"