aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'package.json')
-rw-r--r--package.json75
1 files changed, 37 insertions, 38 deletions
diff --git a/package.json b/package.json
index 8b0980e..6e3fb0b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,7 @@
{
"name": "@svgdotjs/svg.js",
- "version": "3.1.1",
+ "version": "3.2.0",
+ "type": "module",
"description": "A lightweight library for manipulating and animating SVG.",
"url": "https://svgjs.dev/",
"homepage": "https://svgjs.dev/",
@@ -61,57 +62,55 @@
},
"typings": "./svg.js.d.ts",
"scripts": {
- "build": "npm run fix && npm run rollup",
+ "build": "npm run format && npm run rollup",
"build:polyfills": "npx rollup -c .config/rollup.polyfills.js",
"build:tests": "npx rollup -c .config/rollup.tests.js",
"fix": "npx eslint ./src --fix",
"lint": "npx eslint ./src",
+ "prettier": "npx prettier --write .",
+ "format": "npm run fix && npm run prettier",
"rollup": "npx rollup -c .config/rollup.config.js",
"server": "npx http-server ./ -d",
- "test": "npx karma start .config/karma.conf.js || true",
- "test:ci": "karma start .config/karma.conf.saucelabs.js",
- "test:svgdom": "node -r esm ./spec/runSVGDomTest.js || true",
+ "test": "npx karma start .config/karma.conf.cjs || true",
+ "test:ci": "karma start .config/karma.conf.saucelabs.cjs",
+ "test:svgdom": "node ./spec/runSVGDomTest.js || true",
"zip": "zip -j dist/svg.js.zip -- LICENSE.txt README.md CHANGELOG.md dist/svg.js dist/svg.js.map dist/svg.min.js dist/svg.min.js.map dist/polyfills.js dist/polyfillsIE.js",
"prepublishOnly": "rm -rf ./dist && npm run build && npm run build:polyfills && npm test",
"postpublish": "npm run zip",
"checkTests": "node spec/checkForAllTests.js"
},
"devDependencies": {
- "@babel/core": "^7.15.8",
- "@babel/plugin-transform-runtime": "^7.15.8",
- "@babel/preset-env": "^7.15.8",
- "@rollup/plugin-babel": "^5.3.0",
- "@rollup/plugin-commonjs": "^21.0.1",
- "@rollup/plugin-multi-entry": "^4.1.0",
- "@rollup/plugin-node-resolve": "^13.0.6",
+ "@babel/core": "^7.22.5",
+ "@babel/eslint-parser": "^7.22.5",
+ "@babel/plugin-transform-runtime": "^7.22.5",
+ "@babel/preset-env": "^7.22.5",
+ "@rollup/plugin-babel": "^6.0.3",
+ "@rollup/plugin-commonjs": "^25.0.1",
+ "@rollup/plugin-node-resolve": "^15.1.0",
+ "@rollup/plugin-terser": "^0.4.3",
"@target/custom-event-polyfill": "github:Adobe-Marketing-Cloud/custom-event-polyfill",
- "babel-eslint": "^10.1.0",
- "core-js": "^3.19.0",
+ "@types/jasmine": "^4.3.2",
+ "babel-plugin-polyfill-corejs3": "^0.8.1",
+ "core-js": "^3.31.0",
"coveralls": "^3.1.1",
- "eslint": "^8.1.0",
- "eslint-config-standard": "^16.0.3",
- "eslint-plugin-import": "^2.25.2",
- "eslint-plugin-node": "^11.1.0",
- "eslint-plugin-promise": "^5.1.1",
- "eslint-plugin-sort-class-members": "^1.12.0",
- "eslint-plugin-standard": "^5.0.0",
- "esm": "^3.2.25",
- "http-server": "^14.0.0",
- "jasmine": "^3.10.0",
- "jasmine-core": "^3.10.1",
- "karma": "^6.3.6",
- "karma-chrome-launcher": "^3.1.0",
- "karma-coverage": "^2.0.3",
- "karma-firefox-launcher": "^2.1.1",
- "karma-jasmine": "^4.0.1",
+ "eslint": "^8.42.0",
+ "eslint-config-prettier": "^8.8.0",
+ "eslint-config-standard": "^17.1.0",
+ "http-server": "^14.1.1",
+ "jasmine": "^5.0.1",
+ "jasmine-core": "^5.0.1",
+ "karma": "^6.4.2",
+ "karma-chrome-launcher": "^3.2.0",
+ "karma-coverage": "^2.2.0",
+ "karma-firefox-launcher": "^2.1.2",
+ "karma-jasmine": "^5.1.0",
"karma-sauce-launcher": "^4.3.6",
- "rollup": "^2.58.3",
- "rollup-plugin-filesize": "^9.1.1",
- "rollup-plugin-terser": "^7.0.2",
- "typescript": "^4.4.4",
- "yargs": "^17.2.1",
- "svgdom": "^0.1.8",
- "babel-plugin-polyfill-corejs3": "^0.2.5"
+ "prettier": "^2.8.8",
+ "rollup": "^3.25.1",
+ "rollup-plugin-filesize": "^10.0.0",
+ "svgdom": "^0.1.16",
+ "typescript": "^5.2.2",
+ "yargs": "^17.7.2"
},
- "browserslist": "last 2 version and > 0.25% and not op_mini all and not ie 11"
+ "browserslist": ">0.3%, last 2 version, not dead, not op_mini all"
}