From 70b9ced05a5ba622587a8a3c056b7e7ddfed7cae Mon Sep 17 00:00:00 2001 From: cxtom Date: Mon, 27 Jul 2020 17:13:40 +0800 Subject: [PATCH] feat: export options interface --- package.json | 3 ++- src/index.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 09b1742..1d06c9d 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,8 @@ "semantic-release": "semantic-release", "semantic-release-prepare": "ts-node tools/semantic-release-prepare", "precommit": "lint-staged", - "travis-deploy-once": "travis-deploy-once" + "travis-deploy-once": "travis-deploy-once", + "prepublishOnly": "npm run build" }, "lint-staged": { "{src,test}/**/*.ts": [ diff --git a/src/index.ts b/src/index.ts index cf6d072..c2507a3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,7 +10,7 @@ interface IFileMap { [fileName: string]: string; } -interface IOptions { +export interface IOptions { /* 项目所在根目录 */ context: string;