mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
397d7c5137
commit
9244e8f58e
5 files changed
+53
-52
No files matched your search
@@ -1,4 +1,3 @@
|
||||
import path from "path";
|
||||
import Config from "conf";
|
||||
import { isTestEnv } from "../common/vars";
|
||||
|
||||
@@ -15,8 +14,7 @@ function infoLog(...args: any[]) {
|
||||
export function migration<S = any>({ version, run }: MigrationOpts) {
|
||||
return {
|
||||
[version]: (storeConfig: Config<S>) => {
|
||||
const storeName = path.dirname(storeConfig.path);
|
||||
infoLog(`STORE MIGRATION (${storeName}): ${version}`,);
|
||||
infoLog(`STORE MIGRATION (${storeConfig.path}): ${version}`,);
|
||||
run(storeConfig, infoLog);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user