From 8654a68f9d81883bdee5591b7099091faa246c2a Mon Sep 17 00:00:00 2001 From: Hwanseung Lee Date: Sun, 14 Jan 2018 21:37:45 +0900 Subject: [PATCH] move file.ts to core/base from generator/base ISSUE=#227 --- {generator => core}/base/file.ts | 0 core/index.ts | 2 +- generator/main.ts | 2 +- generator/reader/simple_reader.ts | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename {generator => core}/base/file.ts (100%) diff --git a/generator/base/file.ts b/core/base/file.ts similarity index 100% rename from generator/base/file.ts rename to core/base/file.ts diff --git a/core/index.ts b/core/index.ts index 844f465..562b803 100644 --- a/core/index.ts +++ b/core/index.ts @@ -14,10 +14,10 @@ * limitations under the License. */ +import * as file from 'core/base/file'; import {IDLTypeMap} from 'core/parser/idl_type_map'; import {DefinitionInfo} from 'core/parser/idl_types'; import {Parser} from 'core/parser/parser'; -import * as file from 'generator/base/file'; async function readAndParse(idlFilePath: string): Promise { const idlFragment: string = await file.read(idlFilePath); diff --git a/generator/main.ts b/generator/main.ts index 97add8b..cb6e0cc 100644 --- a/generator/main.ts +++ b/generator/main.ts @@ -19,7 +19,7 @@ import * as mkdirp from 'mkdirp'; import * as nunjucks from 'nunjucks'; import * as path from 'path'; -import * as file from './base/file'; +import * as file from '../core/base/file'; import DictionaryTypes from './parser/dictionary_types'; import EnumTypes from './parser/enum_types'; import IDLDefinition from './parser/idl_definition'; diff --git a/generator/reader/simple_reader.ts b/generator/reader/simple_reader.ts index 9df6ca3..269b3b6 100644 --- a/generator/reader/simple_reader.ts +++ b/generator/reader/simple_reader.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as file from '../base/file'; +import * as file from '../../core/base/file'; export async function readAll(idl_files: string[]): Promise<[string, string][]> {