From 7f0fd0f0277614f694eed8feb73b2b7aca74e345 Mon Sep 17 00:00:00 2001 From: mrmlnc Date: Sat, 26 Jun 2021 19:02:42 +0300 Subject: [PATCH] build: use 'files' field instead of '.npmignore' file --- .npmignore | 27 --------------------------- package.json | 6 ++++++ 2 files changed, 6 insertions(+), 27 deletions(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 545eea2d..00000000 --- a/.npmignore +++ /dev/null @@ -1,27 +0,0 @@ -# Common files -.editorconfig -.gitattributes -.gitignore -tsconfig.json -.eslintrc.json - -# Log & Cache files -.eslintcache - -# Build files -out/benchmark -out/tests -out/**/*.js.map -out/**/*.spec.{d.ts,js} - -# Editor directories -.vscode - -# Other directories -.tmp -.benchmark -.github -fixtures -src -node_modules -typings diff --git a/package.json b/package.json index aa216634..9db69770 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,12 @@ }, "main": "out/index.js", "typings": "out/index.d.ts", + "files": [ + "out", + "!out/{benchmark,tests}", + "!out/**/*.map", + "!out/**/*.spec.*" + ], "keywords": [ "glob", "patterns",