Clean up versioning and packageJson uses (#6196)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2022-09-15 17:20:58 -04:00
1 parent cfe35ded90
commit 67ac1692b2
116 files changed
+1154 -644

No files matched your search

+3 -2
View File
@@ -6,13 +6,14 @@
// Fix embedded kubeconfig paths under snap config
import type { ClusterModel } from "../../common/cluster-types";
import { getAppVersion } from "../../common/utils/app-version";
import fs from "fs";
import type { MigrationDeclaration } from "../helpers";
import { migrationLog } from "../helpers";
import packageJson from "../../../package.json";
export default {
version: getAppVersion(), // Run always after upgrade
// TODO: replace with injection once migrations are made as injectables
version: packageJson.version, // Run always after upgrade
run(store) {
if (!process.env["SNAP"]) return;
@@ -3,13 +3,14 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getAppVersion } from "../../common/utils";
import { lensSlackWeblinkId, slackUrl } from "../../common/vars";
import type { WeblinkData } from "../../common/weblink-store";
import type { MigrationDeclaration } from "../helpers";
import packageJson from "../../../package.json";
export default {
version: getAppVersion(), // Run always after upgrade
// TODO: replace with injection once migrations are made as injectables
version: packageJson.version, // Run always after upgrade
run(store) {
const weblinksRaw: any = store.get("weblinks");
const weblinks = (Array.isArray(weblinksRaw) ? weblinksRaw : []) as WeblinkData[];