@quobix/vacuum 0.30.1 → 0.30.2
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.
|
@@ -68,7 +68,9 @@ async function install() {
|
|
|
68
68
|
console.log("Installation successful!");
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
|
-
const packageJson = await fs
|
|
71
|
+
const packageJson = await fs
|
|
72
|
+
.readFile(new URL("../package.json", import.meta.url))
|
|
73
|
+
.then(JSON.parse);
|
|
72
74
|
let version = packageJson.version;
|
|
73
75
|
|
|
74
76
|
if (typeof version !== "string") {
|