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",