support local

This commit is contained in:
Opportunity
2020-07-17 11:45:52 +08:00
Unverified
parent bff8013f3d
commit fad1ce1d16
27 changed files with 581 additions and 322 deletions
+9 -1
View File
@@ -33,9 +33,17 @@ export type RefDic = {
>;
};
export interface Version {
export interface GitVersion {
version: string;
sha: Sha;
type: keyof RefDic | 'sha';
repo: Repo;
}
export interface LocalVersion {
type: 'local';
path: string;
version: undefined;
}
export type Version = GitVersion | LocalVersion;