diff --git a/scm-ui/.depcheckrc b/scm-ui/.depcheckrc new file mode 100644 index 0000000000..ec79baf436 --- /dev/null +++ b/scm-ui/.depcheckrc @@ -0,0 +1,2 @@ +ignores: ["@scm-manager/tsconfig", "@scm-manager/jest-preset", "storybook-addon-*", "@storybook/*", "*-loader", "tsup"] +specials: ["babel", "webpack", "jest", "eslint", "prettier", "bin"] diff --git a/scm-ui/ui-buttons/package.json b/scm-ui/ui-buttons/package.json index 8d1d5eac33..409cc49a9f 100644 --- a/scm-ui/ui-buttons/package.json +++ b/scm-ui/ui-buttons/package.json @@ -17,7 +17,7 @@ "build-storybook": "build-storybook", "image-snapshots": "jest \"image-snapshot.test.ts\"", "a11y-check": "jest \"a11y.test.ts\"", - "depcheck": "depcheck --ignores=@scm-manager/prettier-config,@scm-manager/tsconfig,@babel/core,sass-loader,autoprefixer,babel-loader,postcss-loader,storybook-addon-*,@storybook/*,webpack" + "depcheck": "depcheck" }, "peerDependencies": { "react": "^17.0.1", @@ -26,6 +26,7 @@ "classnames": "^2.2.6" }, "devDependencies": { + "@scm-manager/prettier-config": "^2.11.1", "@scm-manager/ui-api": "2.38.2-SNAPSHOT", "@scm-manager/eslint-config": "^2.16.0", "@babel/core": "^7.17.8", @@ -47,7 +48,6 @@ "@types/storybook-react-router": "^1.0.2", "sass-loader": "^12.3.0", "storybook-addon-themes": "^6.1.0", - "autoprefixer": "^10.4.4", "babel-loader": "^8.2.4", "postcss": "^8.4.12", "postcss-loader": "^6.2.1", @@ -58,7 +58,8 @@ "react-query": "^3.25.1", "i18next": "^19.9.2", "react-i18next": "^10.13.2", - "i18next-fetch-backend": "^2.3.1" + "i18next-fetch-backend": "^2.3.1", + "depcheck": "^1.4.3" }, "babel": { "presets": [ diff --git a/scm-ui/ui-syntaxhighlighting/package.json b/scm-ui/ui-syntaxhighlighting/package.json index f7c39456bd..cb1f8815c9 100644 --- a/scm-ui/ui-syntaxhighlighting/package.json +++ b/scm-ui/ui-syntaxhighlighting/package.json @@ -10,7 +10,7 @@ "storybook": "start-storybook", "build-storybook": "build-storybook", "write-mapping": "node scripts/write-mapping.mjs", - "depcheck": "depcheck --ignores=@scm-manager/jest-preset,@scm-manager/tsconfig,@storybook/*,webpack" + "depcheck": "depcheck" }, "dependencies": { "@scm-manager/ui-text": "2.38.2-SNAPSHOT", @@ -35,7 +35,6 @@ "@types/hast": "^2.3.1", "react": "^17.0.1", "react-dom": "^17.0.1", - "webpack": "^5.72.0", "depcheck": "^1.4.3", "decode-named-character-reference": "^1.0.1" }, @@ -54,4 +53,4 @@ "publishConfig": { "access": "restricted" } -} \ No newline at end of file +} diff --git a/scm-ui/ui-text/package.json b/scm-ui/ui-text/package.json index 6cb5d3d8dc..502fc62d2f 100644 --- a/scm-ui/ui-text/package.json +++ b/scm-ui/ui-text/package.json @@ -15,7 +15,7 @@ "typecheck": "tsc", "storybook": "start-storybook -p 6006", "build-storybook": "build-storybook", - "depcheck": "depcheck --ignores=@scm-manager/jest-preset,@scm-manager/tsconfig,@storybook/*,webpack" + "depcheck": "depcheck" }, "peerDependencies": { "react": "^17.0.1", @@ -32,7 +32,6 @@ "@storybook/react": "^6.4.20", "react": "^17.0.1", "react-dom": "^17.0.1", - "webpack": "^5.71.0", "tsup": "^5.12.6", "depcheck": "^1.4.3" }, @@ -51,4 +50,4 @@ "publishConfig": { "access": "restricted" } -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index 5168f3980c..dedc509c73 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19537,7 +19537,7 @@ webpack@4: watchpack "^1.7.4" webpack-sources "^1.4.1" -webpack@5, "webpack@>=4.43.0 <6.0.0", webpack@^5.60.0, webpack@^5.71.0, webpack@^5.72.0, webpack@^5.9.0: +webpack@5, "webpack@>=4.43.0 <6.0.0", webpack@^5.60.0, webpack@^5.72.0, webpack@^5.9.0: version "5.74.0" resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.74.0.tgz#02a5dac19a17e0bb47093f2be67c695102a55980" integrity sha512-A2InDwnhhGN4LYctJj6M1JEaGL7Luj6LOmyBHjcI8529cm5p6VXiTIW2sn6ffvEAKmveLzvu4jrihwXtPojlAA==