Skip to content

Commit

Permalink
add files in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
nimezhu committed Jul 8, 2021
1 parent 80b01d9 commit 4915bd3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nucleome/nb-tools",
"version": "0.0.3",
"version": "0.0.5",
"description": "nucleome browser tools",
"keywords": [
"nucleome",
Expand All @@ -18,12 +18,18 @@
"url": "git+https://github.com/nucleome/nb-tools.git"
},
"dependencies": {
"d3-format": "^1.4.3"
"d3-format": "^1.4.3",
"d3-scale": "^3.2.1",
"d3-selection": "^1.4.1"
},
"scripts": {
"pretest": "rollup -c",
"prepublishOnly": "rm -rf ./dist && rollup -c"
},
"files": [
"dist/@nucleome/nb-tools.js",
"dist/@nucleome/nb-tools.min.js"
],
"devDependencies": {
"eslint": "5",
"rollup": "^0.64.1",
Expand Down
7 changes: 2 additions & 5 deletions src/parseInts.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
export default function(s) {
var a = []
s.split(",").forEach(function (d) {
a.push(parseInt(d))
})
return a;
var v = s.replace(/,$/,"")
return v.split(",").map( (d) => (parseInt(d)))
}

0 comments on commit 4915bd3

Please sign in to comment.