diff --git a/package.json b/package.json index 0b06aa546be..9a0b04b835b 100644 --- a/package.json +++ b/package.json @@ -47,18 +47,26 @@ }, "win": {}, "files": [ - "main.js", - "background.html", - "index.html", - "options.html", - "_locales/**", - "protos/*", - "js/**", - "!js/register.js", - "stylesheets/*.css", - "audio/**", - "images/**", - "fonts/*" + "**/*", + "!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme,test,__tests__,tests,powered-test,example,examples,*.d.ts}", + "!**/node_modules/.bin", + "!**/*.{o,hprof,orig,pyc,pyo,rbc}", + "!**/._*", + "!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,__pycache__,thumbs.db,.gitignore,.gitattributes,.editorconfig,.flowconfig,.yarn-metadata.json,.idea,appveyor.yml,.travis.yml,circle.yml,npm-debug.log,.nyc_output,yarn.lock,.yarn-integrity}", + "!test", + "!pack", + "!dist", + "!build", + "!components", + "!bower.json", + "!Gruntfile.js", + "!README.md", + "!CONTRIBUTING.md", + "!.sass-cache", + "!.tx", + "!.github", + "!.bowerrc", + "!.jscsrc" ], "directories": { "output": "pack"