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.
- package/dist/vitest/index.js +5 -1
- package/package.json +1 -1
package/dist/vitest/index.js
CHANGED
|
@@ -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
|
-
|
|
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