mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-10-26 08:06:09 +01:00
Add depcheck preset (#2119)
Add a preset for the depcheck library that is applied to all projects in scm-ui. Some minor dependency issues were discovered and resolved along the way. Some features of depcheck did not work correctly or were missing, which is why the configuration file is a bit more verbose than desired.
This commit is contained in:
committed by
GitHub
parent
54b7b96ac8
commit
0170760082
2
scm-ui/.depcheckrc
Normal file
2
scm-ui/.depcheckrc
Normal file
@@ -0,0 +1,2 @@
|
||||
ignores: ["@scm-manager/tsconfig", "@scm-manager/jest-preset", "storybook-addon-*", "@storybook/*", "*-loader", "tsup"]
|
||||
specials: ["babel", "webpack", "jest", "eslint", "prettier", "bin"]
|
||||
@@ -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": [
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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==
|
||||
|
||||
Reference in New Issue
Block a user