Comparing version 1.0.8 to 1.0.9
{ | ||
"name": "d3-dsv", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "A parser and formatter for delimiter-separated values, such as CSV and TSV", | ||
@@ -18,5 +18,5 @@ "keywords": [ | ||
}, | ||
"main": "build/d3-dsv.js", | ||
"main": "dist/d3-dsv.min.js", | ||
"module": "index", | ||
"jsnext:main": "index.js", | ||
"jsnext:main": "index", | ||
"bin": { | ||
@@ -38,6 +38,6 @@ "csv2json": "bin/dsv2json", | ||
"scripts": { | ||
"pretest": "rm -rf build && mkdir build && rollup -c --banner \"$(preamble)\"", | ||
"test": "tape 'test/**/*-test.js' && eslint index.js src", | ||
"prepublish": "npm run test && uglifyjs -b beautify=false,preamble=\"'$(preamble)'\" build/d3-dsv.js -c -m -o build/d3-dsv.min.js", | ||
"postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-dsv/build/d3-dsv.js d3-dsv.v1.js && cp ../d3-dsv/build/d3-dsv.min.js d3-dsv.v1.min.js && git add d3-dsv.v1.js d3-dsv.v1.min.js && git commit -m \"d3-dsv ${npm_package_version}\" && git push && cd - && zip -j build/d3-dsv.zip -- LICENSE README.md build/d3-dsv.js build/d3-dsv.min.js" | ||
"pretest": "rollup -c", | ||
"test": "tape 'test/**/*-test.js' && eslint index.js src test", | ||
"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}.v1.js && cp ../${npm_package_name}/dist/${npm_package_name}.min.js ${npm_package_name}.v1.min.js && git add ${npm_package_name}.v1.js ${npm_package_name}.v1.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" | ||
}, | ||
@@ -51,8 +51,7 @@ "dependencies": { | ||
"csv-spectrum": "1", | ||
"eslint": "4", | ||
"package-preamble": "0.1", | ||
"rollup": "0.49", | ||
"tape": "4", | ||
"uglify-js": "3" | ||
"eslint": "5", | ||
"rollup": "0.64", | ||
"rollup-plugin-terser": "1", | ||
"tape": "4" | ||
} | ||
} |
@@ -1,9 +0,36 @@ | ||
export default { | ||
input: "index", | ||
import {terser} from "rollup-plugin-terser"; | ||
import * as meta from "./package.json"; | ||
const config = { | ||
input: "index.js", | ||
external: Object.keys(meta.dependencies || {}), | ||
output: { | ||
file: `dist/${meta.name}.js`, | ||
name: "d3", | ||
format: "umd", | ||
indent: false, | ||
extend: true, | ||
file: "build/d3-dsv.js", | ||
format: "umd", | ||
name: "d3" | ||
banner: `// ${meta.homepage} v${meta.version} Copyright ${(new Date).getFullYear()} ${meta.author.name}`, | ||
globals: Object.assign({}, ...Object.keys(meta.dependencies || {}).map(key => ({[key]: "d3"}))) | ||
}, | ||
plugins: [] | ||
}; | ||
export default [ | ||
config, | ||
{ | ||
...config, | ||
output: { | ||
...config.output, | ||
file: `dist/${meta.name}.min.js` | ||
}, | ||
plugins: [ | ||
...config.plugins, | ||
terser({ | ||
output: { | ||
preamble: config.output.banner | ||
} | ||
}) | ||
] | ||
} | ||
}; | ||
]; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71591
5
15
314
1