diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 0de69fc..0000000 --- a/.npmignore +++ /dev/null @@ -1,4 +0,0 @@ -*.sublime-* -dist/*.zip -img/ -test/ diff --git a/package.json b/package.json index 77fccd8..e939894 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,10 @@ "prepublishOnly": "rm -rf dist && yarn test", "postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../${npm_package_name}/dist/${npm_package_name}.js ${npm_package_name}.v${npm_package_version%%.*}.js && cp ../${npm_package_name}/dist/${npm_package_name}.min.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git add ${npm_package_name}.v${npm_package_version%%.*}.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git commit -m \"${npm_package_name} ${npm_package_version}\" && git push && cd - && zip -j dist/${npm_package_name}.zip -- LICENSE README.md dist/${npm_package_name}.js dist/${npm_package_name}.min.js" }, + "files": [ + "src/**/*.js", + "dist/**/*.js" + ], "dependencies": { "d3-dispatch": "1", "d3-quadtree": "1",