wuchale 0.22.1 → 0.22.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.
@@ -50,8 +50,8 @@ export const wuchale = (configPath, hmrDelayThreshold = 1000) => {
50
50
  }
51
51
  if (!changeInfo.sourceTriggered && changeInfo.invalidate.size > 0) {
52
52
  ctx.server.ws.send({ type: 'full-reload' });
53
- return [];
54
53
  }
54
+ return [];
55
55
  },
56
56
  transform: {
57
57
  order: 'pre',
package/dist/hub.js CHANGED
@@ -136,8 +136,9 @@ export class Hub {
136
136
  onFileChange = async (file, read) => {
137
137
  file = normalizeSep(file); // just to be sure
138
138
  if (this.#confUpdateFile === file) {
139
- const update = JSON.parse(await read());
140
- this.#log.info(`${logPrefix} config update received: ${update}`);
139
+ const updateTxt = await read();
140
+ const update = JSON.parse(updateTxt);
141
+ this.#log.info(`${logPrefix} config update received: ${color.cyan(updateTxt)}`);
141
142
  this.#config.hmr = update.hmr;
142
143
  return ignoreChange;
143
144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wuchale",
3
- "version": "0.22.1",
3
+ "version": "0.22.2",
4
4
  "description": "Protobuf-like i18n from plain code",
5
5
  "scripts": {
6
6
  "dev": "tsc --watch",