vovk-cli 0.0.1-draft.74 → 0.0.1-draft.75
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/generate/index.mjs +1 -6
- package/package.json +1 -1
package/dist/generate/index.mjs
CHANGED
|
@@ -46,12 +46,7 @@ export default async function generate({ projectInfo, segments, segmentsSchema,
|
|
|
46
46
|
// Read existing file content to compare
|
|
47
47
|
const existingContent = await fs.readFile(outPath, 'utf-8').catch(() => '');
|
|
48
48
|
// Determine if we need to rewrite the file, ignore 1st line
|
|
49
|
-
const needsWriting = existingContent.split('\n').slice(1).join('\n') !== rendered.split('\n').slice(1).join('\n');
|
|
50
|
-
console.log({
|
|
51
|
-
outPath,
|
|
52
|
-
rendered,
|
|
53
|
-
needsWriting,
|
|
54
|
-
});
|
|
49
|
+
const needsWriting = existingContent.trim().split('\n').slice(1).join('\n') !== rendered.trim().split('\n').slice(1).join('\n');
|
|
55
50
|
return {
|
|
56
51
|
outPath,
|
|
57
52
|
rendered,
|