diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-06-13 01:43:37 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-06-13 01:43:37 +0200 |
commit | 03322672782a6318b019eff33fe44ec800d6f12c (patch) | |
tree | 9d807e1585cf28a1ea98e87b855932dba00f1880 /package.json | |
parent | 8e18b4698edd00f83af0be05bb3374f92fecaeb9 (diff) | |
download | svg.js-03322672782a6318b019eff33fe44ec800d6f12c.tar.gz svg.js-03322672782a6318b019eff33fe44ec800d6f12c.zip |
dependency updates, easier formatting
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 71 |
1 files changed, 35 insertions, 36 deletions
diff --git a/package.json b/package.json index f6945f2..53ecb64 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "@svgdotjs/svg.js", "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.16.12", - "@babel/plugin-transform-runtime": "^7.16.10", - "@babel/preset-env": "^7.16.11", - "@rollup/plugin-babel": "^5.3.0", - "@rollup/plugin-commonjs": "^21.0.1", - "@rollup/plugin-multi-entry": "^4.1.0", - "@rollup/plugin-node-resolve": "^13.1.3", + "@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.20.3", + "@types/jasmine": "^4.3.2", + "babel-plugin-polyfill-corejs3": "^0.8.1", + "core-js": "^3.31.0", "coveralls": "^3.1.1", - "eslint": "^8.7.0", - "eslint-config-standard": "^16.0.3", - "eslint-plugin-import": "^2.25.4", - "eslint-plugin-node": "^11.1.0", - "eslint-plugin-promise": "^6.0.0", - "eslint-plugin-sort-class-members": "^1.14.1", - "eslint-plugin-standard": "^5.0.0", - "esm": "^3.2.25", - "http-server": "^14.1.0", - "jasmine": "^4.0.2", - "jasmine-core": "^4.0.0", - "karma": "^6.3.12", - "karma-chrome-launcher": "^3.1.0", - "karma-coverage": "^2.1.0", + "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": "^4.0.1", + "karma-jasmine": "^5.1.0", "karma-sauce-launcher": "^4.3.6", - "rollup": "^2.66.1", - "rollup-plugin-filesize": "^9.1.2", - "rollup-plugin-terser": "^7.0.2", - "typescript": "^4.5.5", - "yargs": "^17.3.1", - "svgdom": "^0.1.10", - "babel-plugin-polyfill-corejs3": "^0.5.1" + "prettier": "^2.8.8", + "rollup": "^3.25.1", + "rollup-plugin-filesize": "^10.0.0", + "svgdom": "^0.1.14", + "typescript": "^5.1.3", + "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" } |