d3-interpolate
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "d3-interpolate", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Interpolate numbers, colors, strings, arrays, objects, whatever!", | ||
@@ -18,3 +18,3 @@ "keywords": [ | ||
}, | ||
"main": "build/d3-interpolate.js", | ||
"main": "dist/d3-interpolate.min.js", | ||
"module": "index", | ||
@@ -27,6 +27,6 @@ "jsnext:main": "index", | ||
"scripts": { | ||
"pretest": "rm -rf build && mkdir build && rollup -c", | ||
"test": "tape 'test/**/*-test.js' && eslint index.js src test", | ||
"prepublish": "yarn test", | ||
"postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-interpolate/build/d3-interpolate.js d3-interpolate.v1.js && cp ../d3-interpolate/build/d3-interpolate.min.js d3-interpolate.v1.min.js && git add d3-interpolate.v1.js d3-interpolate.v1.min.js && git commit -m \"d3-interpolate ${npm_package_version}\" && git push && cd - && zip -j build/d3-interpolate.zip -- LICENSE README.md build/d3-interpolate.js build/d3-interpolate.min.js" | ||
"pretest": "rollup -c", | ||
"test": "tape 'test/**/*-test.js' && eslint index.js src", | ||
"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" | ||
}, | ||
@@ -33,0 +33,0 @@ "dependencies": { |
@@ -6,10 +6,11 @@ import {terser} from "rollup-plugin-terser"; | ||
input: "index.js", | ||
external: Object.keys(meta.dependencies), | ||
external: Object.keys(meta.dependencies || {}), | ||
output: { | ||
file: `build/${meta.name}.js`, | ||
file: `dist/${meta.name}.js`, | ||
name: "d3", | ||
format: "umd", | ||
indent: false, | ||
extend: true, | ||
banner: `// ${meta.homepage} Version ${meta.version} Copyright ${(new Date).getFullYear()} ${meta.author.name}.`, | ||
globals: Object.assign({}, ...Object.keys(meta.dependencies).map(key => ({[key]: "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"}))) | ||
}, | ||
@@ -25,3 +26,3 @@ plugins: [] | ||
...config.output, | ||
file: `build/${meta.name}.min.js` | ||
file: `dist/${meta.name}.min.js` | ||
}, | ||
@@ -28,0 +29,0 @@ plugins: [ |
Sorry, the diff of this file is not supported yet
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1090
97726
33