@datapos/datapos-development 0.3.88 → 0.3.90
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.
|
@@ -7,7 +7,7 @@ async function S() {
|
|
|
7
7
|
try {
|
|
8
8
|
console.info("🚀 Building configuration...");
|
|
9
9
|
const o = JSON.parse(await e.readFile("package.json", "utf8")), n = JSON.parse(await e.readFile("config.json", "utf8"));
|
|
10
|
-
o.name && (n.id = o.name), o.version && (n.version = o.version), await e.writeFile("config.json", JSON.stringify(n, void 0, 4), "utf8"), console.info("✅ Configuration built.");
|
|
10
|
+
o.name && (n.id = o.name.replace("@datapos/", "")), o.version && (n.version = o.version), await e.writeFile("config.json", JSON.stringify(n, void 0, 4), "utf8"), console.info("✅ Configuration built.");
|
|
11
11
|
} catch (o) {
|
|
12
12
|
console.error("❌ Error building configuration.", o);
|
|
13
13
|
}
|
|
@@ -173,7 +173,7 @@ async function T(o) {
|
|
|
173
173
|
for (const a of f) {
|
|
174
174
|
const c = `${r}/${a.name}`, l = t ? `${t}/${a.name}` : a.name;
|
|
175
175
|
if (!a.isDirectory()) {
|
|
176
|
-
const d = `${o}/${i}
|
|
176
|
+
const d = `${o}/${i}_${l}`.replace(/\\/g, "/"), p = a.name.endsWith(".js") ? "application/javascript" : a.name.endsWith(".css") ? "text/css" : "application/octet-stream";
|
|
177
177
|
console.info(`⚙️ Uploading '${l}' → '${d}'...`);
|
|
178
178
|
const { stderr: u } = await g(`wrangler r2 object put "${d}" --file="${c}" --content-type ${p} --jurisdiction=eu --remote`);
|
|
179
179
|
if (u) throw new Error(u);
|
package/package.json
CHANGED