From 35703539d0f2b4ddb3b11d0de8c9634af59ab71f Mon Sep 17 00:00:00 2001 From: Hsuan Lee Date: Wed, 6 Mar 2019 17:46:50 +0800 Subject: Deploy @dexon-foundation/0x.js --- packages/sol-resolver/src/resolvers/fs_resolver.ts | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 packages/sol-resolver/src/resolvers/fs_resolver.ts (limited to 'packages/sol-resolver/src/resolvers/fs_resolver.ts') diff --git a/packages/sol-resolver/src/resolvers/fs_resolver.ts b/packages/sol-resolver/src/resolvers/fs_resolver.ts deleted file mode 100644 index 248fa405e..000000000 --- a/packages/sol-resolver/src/resolvers/fs_resolver.ts +++ /dev/null @@ -1,18 +0,0 @@ -import * as fs from 'fs'; -import * as path from 'path'; - -import { ContractSource } from '../types'; - -import { Resolver } from './resolver'; - -export class FSResolver extends Resolver { - // tslint:disable-next-line:prefer-function-over-method - public resolveIfExists(importPath: string): ContractSource | undefined { - if (fs.existsSync(importPath) && fs.lstatSync(importPath).isFile()) { - const fileContent = fs.readFileSync(importPath).toString(); - const absolutePath = path.resolve(importPath); - return { source: fileContent, path: importPath, absolutePath } as any; - } - return undefined; - } -} -- cgit v1.2.3