@chengyixu/filewatch 1.0.0 → 1.0.1

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/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5,7 +5,7 @@ const fs = require('fs');
5
5
  const path = require('path');
6
6
  const { spawn, execSync } = require('child_process');
7
7
 
8
- const VERSION = '1.0.0';
8
+ const VERSION = '1.0.1';
9
9
  const NAME = '@chengyixu/filewatch';
10
10
 
11
11
  // Parse CLI args
@@ -146,7 +146,7 @@ function runCommand() {
146
146
 
147
147
  child = spawn(cmd, cmdArgs, {
148
148
  stdio: 'inherit',
149
- shell: true
149
+ shell: false
150
150
  });
151
151
 
152
152
  child.on('exit', (code) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chengyixu/filewatch",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Watch files/directories and run a command on change — a zero-dependency mini-nodemon",
5
5
  "main": "index.js",
6
6
  "bin": {