From 72074a0212a07ed2924e65021601618938a3fd3c Mon Sep 17 00:00:00 2001 From: Black-Thunder <972581+Black-Thunder@users.noreply.github.com> Date: Thu, 8 Aug 2024 21:09:52 +0200 Subject: [PATCH] removed .gitignore and switched to "files" property --- .npmignore | 30 ------------------------------ package.json | 9 +++++++++ 2 files changed, 9 insertions(+), 30 deletions(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 139523a..0000000 --- a/.npmignore +++ /dev/null @@ -1,30 +0,0 @@ -.git -.idea -node_modules/ -nbproject/ -.vs*/ -*.code-workspace -Thumbs.db - -# CI test files -test/ -travis/ -.travis.yml -appveyor.yml -.travis.yaml -appveyor.yaml - -# Type checking configuration -tsconfig.json -tsconfig.*.json - -# ESLint configuration -.eslintrc.json -.eslintrc.js - -# npm package files -iobroker.*.tgz -package-lock.json - -# maintenance scripts -maintenance/** \ No newline at end of file diff --git a/package.json b/package.json index afe6dc8..78c1488 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,15 @@ "sinon-chai": "^3.7.0" }, "main": "main.js", + "files": [ + "admin{,/!(src)/**}/!(tsconfig|tsconfig.*|.eslintrc).{json,json5}", + "admin{,/!(src)/**}/*.{html,css,png,svg,jpg,js}", + "lib/", + "www/", + "io-package.json", + "LICENSE", + "main.js" + ], "scripts": { "test:js": "mocha \"{!(node_modules|test)/**/*.test.js,*.test.js,test/**/test!(PackageFiles|Startup).js}\"", "test:package": "mocha test/package --exit",