diff --git a/package-lock.json b/package-lock.json index aa959586f..d41b27ef0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -56,6 +56,7 @@ "@typescript-eslint/parser": "6.19.1", "@vue/compiler-sfc": "3.4.15", "c8": "9.1.0", + "clean-pkg-json": "1.2.0", "coffeescript": "2.7.0", "eslint": "8.56.0", "eslint-config-moving-meadow": "4.0.2", @@ -2054,6 +2055,18 @@ "node": ">=8" } }, + "node_modules/clean-pkg-json": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/clean-pkg-json/-/clean-pkg-json-1.2.0.tgz", + "integrity": "sha512-QHBWWOtpSCv5nfMFKwyxn4WMvkYE0msxj5xiqejYGqYepWVrK7O/om1Vn6nSl/WPtYn8ge9YmSCbTi1Hp8k+Hg==", + "dev": true, + "bin": { + "clean-pkg-json": "dist/index.js" + }, + "funding": { + "url": "https://github.com/privatenumber/clean-pkg-json?sponsor=1" + } + }, "node_modules/clean-regexp": { "version": "1.0.0", "dev": true, diff --git a/package.json b/package.json index 5ca16c2c5..ab590b599 100644 --- a/package.json +++ b/package.json @@ -134,6 +134,7 @@ "lint:types:tsc": "tsc --project types/tsconfig.json", "lint:types:lint": "eslint --no-ignore --config types/.eslintrc.json types/*.d.mts", "lint:types:fix": "eslint --no-ignore --config types/.eslintrc.json --fix types/*.d.mts", + "prepack": "clean-pkg-json --dry --keep overrides --keep resolutions | jq '.scripts = {test: \"echo for test, build and static analysis scripts: see the github repository\"}' > smaller-package.json && mv smaller-package.json package.json", "prepare": "husky install", "scm:push": "run-p --aggregate-output scm:push:*", "scm:push:bitbucket-mirror": "run-p --aggregate-output scm:push:bitbucket-mirror:*", @@ -202,6 +203,7 @@ "@typescript-eslint/parser": "6.19.1", "@vue/compiler-sfc": "3.4.15", "c8": "9.1.0", + "clean-pkg-json": "1.2.0", "coffeescript": "2.7.0", "eslint": "8.56.0", "eslint-config-moving-meadow": "4.0.2", @@ -269,4 +271,4 @@ "vue-template-compiler": ">=2.0.0 <3.0.0", "@vue/compiler-sfc": ">=3.0.0 <4.0.0" } -} \ No newline at end of file +}