diff --git a/package-lock.json b/package-lock.json index 54118e1..dd592ce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12279,33 +12279,6 @@ "terser": "^4.7.0" } }, - "rollup-plugin-typescript": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/rollup-plugin-typescript/-/rollup-plugin-typescript-1.0.1.tgz", - "integrity": "sha512-rwJDNn9jv/NsKZuyBb/h0jsclP4CJ58qbvZt2Q9zDIGILF2LtdtvCqMOL+Gq9IVq5MTrTlHZNrn8h7VjQgd8tw==", - "dev": true, - "requires": { - "resolve": "^1.10.0", - "rollup-pluginutils": "^2.5.0" - } - }, - "rollup-pluginutils": { - "version": "2.8.2", - "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz", - "integrity": "sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==", - "dev": true, - "requires": { - "estree-walker": "^0.6.1" - }, - "dependencies": { - "estree-walker": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz", - "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==", - "dev": true - } - } - }, "rsvp": { "version": "4.8.5", "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz", diff --git a/package.json b/package.json index 992dc8e..7d87c54 100644 --- a/package.json +++ b/package.json @@ -88,6 +88,7 @@ "rimraf": "^3.0.2", "rollup": "^2.22.1", "rollup-plugin-sourcemaps": "^0.6.2", + "rollup-plugin-terser": "^6.1.0", "semantic-release": "^17.1.1", "shelljs": "^0.8.4", "ts-jest": "^26.1.3", diff --git a/rollup.config.ts b/rollup.config.ts index 47c6e3f..545076d 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -1,13 +1,13 @@ -import resolve from '@rollup/plugin-node-resolve' -import commonjs from '@rollup/plugin-commonjs' -import sourceMaps from 'rollup-plugin-sourcemaps' -import typescript from '@rollup/plugin-typescript' -import json from '@rollup/plugin-json' -import { terser } from "rollup-plugin-terser"; +import resolve from '@rollup/plugin-node-resolve'; +import commonjs from '@rollup/plugin-commonjs'; +import sourceMaps from 'rollup-plugin-sourcemaps'; +import typescript from '@rollup/plugin-typescript'; +import json from '@rollup/plugin-json'; +import { terser } from 'rollup-plugin-terser'; -const pkg = require('./package.json') +const pkg = require('./package.json'); -const libraryName = 'jmespath' +const libraryName = 'jmespath'; export default { input: `src/index.ts`,