From f17f264f413ab2282dc5d143e34a375f1da701f7 Mon Sep 17 00:00:00 2001 From: Bruno Noriller Date: Tue, 7 Sep 2021 09:48:47 -0300 Subject: [PATCH] build: :zap: improve package size for production --- README.md | 3 --- tsconfig.json | 6 ++++-- tsconfig.nocomments.json | 7 +++++++ 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 tsconfig.nocomments.json diff --git a/README.md b/README.md index 9b7f06e..0c66bdc 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,6 @@ It's as easy as this: ## Get Started -### **This is a beta release. The API won't change, but I'll be fixing the build to purge all unnecessary annotations** -### *Feel free to start using!* - ### Use your choice of package manager `npm install @noriller/easy-filter` diff --git a/tsconfig.json b/tsconfig.json index f3730a0..61d57b8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ "module": "commonjs", "declaration": true, "removeComments": false, - "emitDecoratorMetadata": true, + "emitDecoratorMetadata": false, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, "target": "es2017", @@ -13,7 +13,9 @@ "sourceMap": true, "outDir": "./dist", "baseUrl": "./", - "incremental": true + "incremental": false, + "noEmit": false, + "noEmitHelpers": false }, "exclude": [ "src/**/*.spec.ts", diff --git a/tsconfig.nocomments.json b/tsconfig.nocomments.json new file mode 100644 index 0000000..4b5c4d1 --- /dev/null +++ b/tsconfig.nocomments.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "declaration": false, + "removeComments": true + } +} \ No newline at end of file