@betterstart/cli 0.1.39 → 0.1.40
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/cli.js +3 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2641,11 +2641,12 @@ ${match}`
|
|
|
2641
2641
|
return { files: [dbSchemaPath] };
|
|
2642
2642
|
}
|
|
2643
2643
|
const marker = `export const ${tableName} =`;
|
|
2644
|
-
|
|
2645
|
-
|
|
2644
|
+
let start = content.indexOf(marker);
|
|
2645
|
+
while (start !== -1) {
|
|
2646
2646
|
const end = findTableEnd(content, start);
|
|
2647
2647
|
const actualStart = start > 0 && content[start - 1] === "\n" ? start - 1 : start;
|
|
2648
2648
|
content = content.slice(0, actualStart) + content.slice(end);
|
|
2649
|
+
start = content.indexOf(marker);
|
|
2649
2650
|
}
|
|
2650
2651
|
}
|
|
2651
2652
|
content += `
|