From c53d195ed0bc230badeffa64c963c9ab4c88f205 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 5 Dec 2017 17:11:07 +0300 Subject: Reuse util --- packages/typed-contracts/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/typed-contracts/src/utils.ts b/packages/typed-contracts/src/utils.ts index 0600188a1..f95da5393 100644 --- a/packages/typed-contracts/src/utils.ts +++ b/packages/typed-contracts/src/utils.ts @@ -42,7 +42,7 @@ export const utils = { return name; }, getNamedContent(filename: string): {name: string; content: string} { - const name = path.parse(filename).name; + const name = utils.getPartialNameFromFileName(filename); try { const content = fs.readFileSync(filename).toString(); return { -- cgit v1.2.3