From 3ad21b970f104382ddddc8d852abe23f6da8a8ce Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Thu, 24 Nov 2022 15:23:20 +0800 Subject: [PATCH] export from --- lib/extend/index.ts | 26 +++++++++++--------------- lib/models/index.ts | 24 ++++++++++-------------- 2 files changed, 21 insertions(+), 29 deletions(-) diff --git a/lib/extend/index.ts b/lib/extend/index.ts index 46da4a8f69..2c4dac82bc 100644 --- a/lib/extend/index.ts +++ b/lib/extend/index.ts @@ -1,15 +1,11 @@ -import Console from './console'; -import Deployer from './deployer'; -import Filter from './filter'; -import Generator from './generator'; -import Helper from './helper'; -import Highlight from './syntax_highlight'; -import Injector from './injector'; -import Migrator from './migrator'; -import Processor from './processor'; -import Renderer from './renderer'; -import Tag from './tag'; - -export default { - Console, Deployer, Filter, Generator, Helper, Highlight, Injector, Migrator, Processor, Renderer, Tag -}; +export { default as Console } from './console'; +export { default as Deployer } from './deployer'; +export { default as Filter } from './filter'; +export { default as Generator } from './generator'; +export { default as Helper } from './helper'; +export { default as Highlight } from './syntax_highlight'; +export { default as Injector } from './injector'; +export { default as Migrator } from './migrator'; +export { default as Processor } from './processor'; +export { default as Renderer } from './renderer'; +export { default as Tag } from './tag'; diff --git a/lib/models/index.ts b/lib/models/index.ts index c641b71790..d76aff60a9 100644 --- a/lib/models/index.ts +++ b/lib/models/index.ts @@ -1,14 +1,10 @@ -import Asset from './asset'; -import Cache from './cache'; -import Category from './category'; -import Data from './data'; -import Page from './page'; -import Post from './post'; -import PostAsset from './post_asset'; -import PostCategory from './post_category'; -import PostTag from './post_tag'; -import Tag from './tag'; - -export default { - Asset, Cache, Category, Data, Page, Post, PostAsset, PostCategory, PostTag, Tag -}; +export { default as Asset } from './asset'; +export { default as Cache } from './cache'; +export { default as Category } from './category'; +export { default as Data } from './data'; +export { default as Page } from './page'; +export { default as Post } from './post'; +export { default as PostAsset } from './post_asset'; +export { default as PostCategory } from './post_category'; +export { default as PostTag } from './post_tag'; +export { default as Tag } from './tag';