diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..2ad8641 --- /dev/null +++ b/.npmignore @@ -0,0 +1,2 @@ +node_modules +__test__ \ No newline at end of file diff --git a/package.json b/package.json index 5b0e4da..6955784 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,9 @@ "scripts": { "rollup": "NODE_ENV=production rollup -c rollup.config.js -m -f cjs -n $npm_package_amdName $npm_package_jsnext_main -o $npm_package_main", "minify": "uglifyjs $npm_package_main -cm toplevel -o $npm_package_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_main}.map", - "build": "yarn rollup && yarn minify && gzip-size dist/tinytime.js | pretty-bytes", - "test": "NODE_ENV=test flow && jest" + "build": "npm run rollup && npm run minify && gzip-size dist/tinytime.js | pretty-bytes", + "test": "NODE_ENV=test flow && jest", + "prepublish": "npm run build" }, "devDependencies": { "babel-core": "^6.21.0",