@datapos/datapos-development 0.3.132 → 0.3.133
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.
|
@@ -102,7 +102,9 @@ async function P() {
|
|
|
102
102
|
try {
|
|
103
103
|
const i = (await t.readFile("./licenses.md", "utf8")).trim(), n = await t.readFile("./README.md", "utf8"), s = n.indexOf(e), r = n.indexOf(o);
|
|
104
104
|
(s === -1 || r === -1) && (console.error("❌ Dependency license markers not found in readme file."), process.exit(1));
|
|
105
|
-
const d = n.substring(0, s + e.length) +
|
|
105
|
+
const d = n.substring(0, s + e.length) + `
|
|
106
|
+
` + i + `
|
|
107
|
+
` + n.substring(r);
|
|
106
108
|
await t.writeFile("README.md", d, "utf8"), console.log("✅ Readme file updated with license information");
|
|
107
109
|
} catch (i) {
|
|
108
110
|
console.error("❌ Error updating readme file.", i), process.exit(1);
|
package/package.json
CHANGED