From aa89da14247504d6baf79672f3f0fbc878ba376f Mon Sep 17 00:00:00 2001 From: "Xc@centOs" Date: Tue, 22 Mar 2022 15:20:07 +0800 Subject: [PATCH] removeBaseDomain --- package.json | 4 ++-- scripts/removeBaseDomain.ts | 3 +++ tsconfig.json | 4 +--- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 scripts/removeBaseDomain.ts diff --git a/package.json b/package.json index 2dae6f2..09f663c 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,8 @@ "name": "oak-domain", "version": "1.0.0", "scripts": { - "build": "tsc", - "prebuild": "ts-node scripts/buildBaseDomain.ts" + "build": "tsc && ts-node scripts/removeBaseDomain.ts", + "prebuild": "ts-node scripts/buildBaseDomain.ts" }, "devDependencies": { "@babel/cli": "^7.12.13", diff --git a/scripts/removeBaseDomain.ts b/scripts/removeBaseDomain.ts new file mode 100644 index 0000000..4531a3a --- /dev/null +++ b/scripts/removeBaseDomain.ts @@ -0,0 +1,3 @@ +import { removeSync } from 'fs-extra'; + +removeSync('src/base-domain'); \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index dc7db3c..40a0c21 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -63,9 +63,7 @@ /* Advanced Options */ "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ }, - "include": [ - "src/**/*" -, "oak-domain/src/compiler/schemalBuilder.ts" ], + "include": ["src/**/*"], "exclude": [ "node_modules", "**/*.spec.ts",