diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 082d95b..0000000 --- a/.npmignore +++ /dev/null @@ -1,35 +0,0 @@ -.git -.idea -node_modules/ -nbproject/ -.vs*/ -*.code-workspace -Thumbs.db -gulpfile.js -iob_npm.done - -# 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 - -# i18n intermediate files -admin/i18n - -# maintenance scripts -maintenance/** \ No newline at end of file diff --git a/package.json b/package.json index ead5d7b..b2309fb 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,15 @@ "typescript": "^5.6.3" }, "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 --opts test/mocha.custom.opts", "test:package": "mocha test/package --exit",