Skip to content

Commit 994c010

Browse files
committed
update dist build
1 parent afc69c5 commit 994c010

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

dist/configure-template.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -587,20 +587,18 @@ var Script = class {
587587
const hashResp = await getUrl(`${baseUrl}/configure-template.js.hash`);
588588
if (hashResp.success) {
589589
const needsUpdate = this.checkIfUpdateIsNeeded(hashResp.data);
590-
console.log({ needsUpdate });
591590
if (needsUpdate) {
592591
const scriptResp = await getUrl(`${baseUrl}/configure-template.js`);
593592
if (scriptResp.success) {
594-
(0, import_fs2.writeFileSync)(`${__filename}.latest.js`, scriptResp.data, { encoding: "utf-8" });
595-
console.log("* Updated to the latest version.");
593+
(0, import_fs2.writeFileSync)(`${__filename}`, scriptResp.data, { encoding: "utf-8" });
594+
console.log("* Updated to the latest version, please re-run this script.");
595+
process.exit(0);
596596
}
597597
}
598598
}
599599
}
600600
async run() {
601601
await this.updateWithLatestVersionFromGithub();
602-
console.log("done");
603-
return;
604602
console.log("Retrieving github data...");
605603
await this.initPackageInfo();
606604
await this.populatePackageInfo();

dist/configure-template.js.hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
29c1210e3ac6b65da0ce7466f99fa223225dd6de0591da7b11dd925fc379ed12
1+
4160952b6dcd84993283d5f4a346531e943f4eee87000832874f864b0068f097

0 commit comments

Comments
 (0)