harmonyc 0.23.2 → 0.23.3

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.
@@ -93,7 +93,11 @@ async function updatePhrasesFile(id, phraseMethods, featureClassName) {
93
93
  }
94
94
  const pa = new PhrasesAssistant(phrasesFileContent, featureClassName);
95
95
  pa.ensureMethods(phraseMethods);
96
- await writeFile(phrasesFile, pa.toCode());
96
+ const newContent = pa.toCode();
97
+ if (newContent === phrasesFileContent) {
98
+ return; // No changes needed
99
+ }
100
+ await writeFile(phrasesFile, newContent, 'utf-8');
97
101
  }
98
102
  catch (e) {
99
103
  console.error('Error updating phrases file:', e);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "harmonyc",
3
3
  "description": "Harmony Code - model-driven BDD for Vitest",
4
- "version": "0.23.2",
4
+ "version": "0.23.3",
5
5
  "author": "Bernát Kalló",
6
6
  "homepage": "https://github.com/harmony-ac/code#readme",
7
7
  "repository": {