scripting-cli 1.1.4 → 1.1.5

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.
package/dist/index.js CHANGED
@@ -162,7 +162,7 @@ function startServer(port) {
162
162
  });
163
163
  watcher
164
164
  .on('change', (filePath) => {
165
- if (filePath.match(/\.(js(x)?|ts(x)?)$/)) {
165
+ if (filePath.match(/\.(js(x)?|ts(x)?|json|md|txt)$/)) {
166
166
  // send file content md5 hash to client
167
167
  // const content = fs.readFileSync(filePath, 'utf-8');
168
168
  fs_1.default.readFile(filePath, 'utf-8', (err, content) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scripting-cli",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "This plugin integrates the desktop editor synchronization feature of the Scripting app.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
package/src/index.ts CHANGED
@@ -166,7 +166,7 @@ function startServer(port?: number) {
166
166
 
167
167
  watcher
168
168
  .on('change', (filePath) => {
169
- if (filePath.match(/\.(js(x)?|ts(x)?)$/)) {
169
+ if (filePath.match(/\.(js(x)?|ts(x)?|json|md|txt)$/)) {
170
170
  // send file content md5 hash to client
171
171
  // const content = fs.readFileSync(filePath, 'utf-8');
172
172
  fs.readFile(filePath, 'utf-8', (err, content) => {