mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Clean up versioning and packageJson uses (#6196)
This commit is contained in:
1 parent
cfe35ded90
commit
67ac1692b2
116 files changed
+1154
-644
No files matched your search
@@ -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[];
|
||||
|
||||
Reference in new issue
Block a user