From ceb78961f5adea560bb44f803a0986b87f742e8f Mon Sep 17 00:00:00 2001 From: Nicolas DUBIEN Date: Fri, 7 Feb 2020 22:34:12 +0100 Subject: [PATCH] Replace .npmignore by "files" field in package.json Related to #547 --- .npmignore | 15 --------------- package.json | 1 + tsconfig.publish.json | 1 + tsconfig.publish.types.json | 1 + 4 files changed, 3 insertions(+), 15 deletions(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index b80d64f970e..00000000000 --- a/.npmignore +++ /dev/null @@ -1,15 +0,0 @@ -.codesandbox -.github -.nyc_output/ -coverage/ -docs/ -documentation/ -example/ -lib-*/ -perf/ -prebuild/ -postbuild/ -src/ -test/ -buildTypes.js -*.tsbuildinfo diff --git a/package.json b/package.json index e615eb1f0e7..d437b220db7 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ ] } }, + "files": ["lib"], "sideEffects": false, "scripts": { "perf": "node perf/benchmark.js", diff --git a/tsconfig.publish.json b/tsconfig.publish.json index 61640e49d35..069d98be0e5 100644 --- a/tsconfig.publish.json +++ b/tsconfig.publish.json @@ -2,6 +2,7 @@ "extends": "./tsconfig.json", "compilerOptions": { "declaration": false, + "incremental": false, "removeComments": true, "sourceMap": false } diff --git a/tsconfig.publish.types.json b/tsconfig.publish.types.json index 8e73aed1b76..60354452d80 100644 --- a/tsconfig.publish.types.json +++ b/tsconfig.publish.types.json @@ -3,6 +3,7 @@ "compilerOptions": { "declaration": true, "emitDeclarationOnly": true, + "incremental": false, "removeComments": false, "outDir": "lib/types" }