We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19f51dc commit 768d15bCopy full SHA for 768d15b
src/store.ts
@@ -20,12 +20,12 @@ export interface IStore extends Iterable<IPublisher> {
20
delete(name: string): Promise<void>;
21
}
22
23
-class FileStore implements IStore {
+export class FileStore implements IStore {
24
private static readonly DefaultPath = path.join(home(), '.vsce');
25
26
static async open(path: string = FileStore.DefaultPath): Promise<FileStore> {
27
try {
28
- const rawStore = await readFile(FileStore.DefaultPath, 'utf8');
+ const rawStore = await readFile(path, 'utf8');
29
return new FileStore(path, JSON.parse(rawStore).publishers);
30
} catch (err) {
31
if (err.code === 'ENOENT') {
0 commit comments