Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
Also replaces the prepublish script with prepublishOnly per npm, and replaces
the browser field in package.json with unpkg and jsdelivr; see d3/d3#3138.
  • Loading branch information
mbostock committed Sep 2, 2017
1 parent b5c0910 commit 7acfde2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -12,7 +12,8 @@
"name": "Mike Bostock",
"url": "https://bost.ocks.org/mike"
},
"browser": "dist/shapefile.js",
"unpkg": "dist/shapefile.js",
"jsdelivr": "dist/shapefile.js",
"main": "dist/shapefile.node.js",
"module": "index.js",
"repository": {
Expand All @@ -26,7 +27,7 @@
"scripts": {
"pretest": "rm -rf dist && mkdir dist && cp index.node.js dist/shapefile.node.js && rollup -g path-source,array-source,stream-source,slice-source -f cjs -- index.js | tail -n +2 >> dist/shapefile.node.js",
"test": "tape 'test/**/*-test.js'",
"prepublish": "npm run test && rollup -c --banner \"$(preamble)\" -f umd -n shapefile -o dist/shapefile.js -- index.js && uglifyjs -b beautify=false,preamble=\"'$(preamble)'\" -o dist/shapefile.min.js -cm -- dist/shapefile.js",
"prepublishOnly": "npm run test && rollup -c --banner \"$(preamble)\" && uglifyjs -b beautify=false,preamble=\"'$(preamble)'\" -o dist/shapefile.min.js -cm -- dist/shapefile.js",
"postpublish": "git push && git push --tags && zip -j dist/shapefile.zip -- LICENSE.txt README.md dist/shapefile.js dist/shapefile.min.js"
},
"dependencies": {
Expand All @@ -39,7 +40,7 @@
},
"devDependencies": {
"package-preamble": "0.1",
"rollup": "0.45",
"rollup": "0.49",
"rollup-plugin-node-resolve": "3",
"tape": "4",
"uglify-js": "3"
Expand Down
10 changes: 8 additions & 2 deletions rollup.config.js
@@ -1,5 +1,11 @@
import node from "rollup-plugin-node-resolve";

export default {
plugins: [node()]
}
input: "index",
plugins: [node()],
output: {
file: "dist/shapefile.js",
format: "umd",
name: "shapefile"
}
};

0 comments on commit 7acfde2

Please sign in to comment.