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 +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
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
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) => {
|