Skip to content

Commit 10067dd

Browse files
committed
esModule Interop fixed
1 parent c4250cb commit 10067dd

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "sharedlock",
33
"displayName": "SharedLock",
44
"description": "Sharing file locks in workspace files via network",
5-
"version": "0.3.6",
5+
"version": "0.3.7",
66
"publisher": "code4bones",
77
"icon": "resources/icons/logo.png",
88
"repository": {

src/commands.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { LockMessage } from "./types";
55
import * as path from "path";
66
import * as fs from "fs";
77
import {glob} from "glob";
8-
import * as mm from "micromatch";
8+
import mm from "micromatch";
99

1010
export function registerCommands(ctx:vscode.ExtensionContext) {
1111
const ctrl = new Controller(ctx);
@@ -49,7 +49,6 @@ export function registerCommands(ctx:vscode.ExtensionContext) {
4949

5050
function ctxLockFolder (startDir:vscode.Uri) {
5151

52-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
5352
const getFiles = (ignore:string[]) => {
5453
return glob(path.join(startDir.path,'**/*'),{ignore,dot:true})
5554
.then((files)=>{

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"outDir": "dist",
77
"sourceMap": true,
88
"strict": true,
9-
"rootDir": "src"
9+
"rootDir": "src",
10+
"esModuleInterop": true
1011
},
1112
"exclude": ["node_modules", ".vscode-test"]
1213
}

0 commit comments

Comments
 (0)