Skip to content

Commit

Permalink
Clean root deps (#1484)
Browse files Browse the repository at this point in the history
  • Loading branch information
sndrs committed May 23, 2024
1 parent 7cad92c commit d2d5c6f
Show file tree
Hide file tree
Showing 13 changed files with 185 additions and 420 deletions.
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ updates:
guardian:
patterns:
- '@guardian*'
swc:
patterns:
- '@swc*'
react:
patterns:
- 'react*'
Expand All @@ -73,7 +70,6 @@ updates:
- '@rollup*'
- 'rollup'
- '@guardian*'
- '@swc*'
- '*prettier*'

- package-ecosystem: 'github-actions'
Expand Down
8 changes: 6 additions & 2 deletions libs/@guardian/ab-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
"verify-dist": "wireit"
},
"devDependencies": {
"@types/jest": "29.5.8",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"rollup": "4.17.2",
"ts-jest": "29.1.1",
"tslib": "2.6.2",
"typescript": "5.3.3",
"wireit": "0.14.4"
Expand Down Expand Up @@ -82,7 +86,7 @@
"files": [
"!(dist)/**",
"!(.eslintcache)",
"../../../jest.*"
"../../../configs/jest.*"
],
"output": []
},
Expand All @@ -94,7 +98,7 @@
"files": [
"!(dist)/**",
"!(.eslintcache)",
"../../../jest.*"
"../../../configs/jest.*"
],
"output": []
}
Expand Down
8 changes: 6 additions & 2 deletions libs/@guardian/ab-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@
"devDependencies": {
"@guardian/ab-core": "7.0.0",
"@testing-library/react": "14.2.1",
"@types/jest": "29.5.8",
"@types/react": "18.2.11",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"rollup": "4.17.2",
"ts-jest": "29.1.1",
"tslib": "2.6.2",
"typescript": "5.3.3",
"wireit": "0.14.4"
Expand Down Expand Up @@ -94,7 +98,7 @@
"files": [
"!(dist)/**",
"!(.eslintcache)",
"../../../jest.*"
"../../../configs/jest.*"
],
"output": []
},
Expand All @@ -106,7 +110,7 @@
"files": [
"!(dist)/**",
"!(.eslintcache)",
"../../../jest.*"
"../../../configs/jest.*"
],
"output": []
}
Expand Down
8 changes: 6 additions & 2 deletions libs/@guardian/core-web-vitals/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
},
"devDependencies": {
"@guardian/libs": "16.0.0",
"@types/jest": "29.5.8",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"rollup": "4.17.2",
"ts-jest": "29.1.1",
"tslib": "2.6.2",
"typescript": "5.3.3",
"web-vitals": "3.5.0",
Expand Down Expand Up @@ -85,7 +89,7 @@
"files": [
"!(dist)/**",
"!(.eslintcache)",
"../../../jest.*"
"../../../configs/jest.*"
],
"output": []
},
Expand All @@ -97,7 +101,7 @@
"files": [
"!(dist)/**",
"!(.eslintcache)",
"../../../jest.*"
"../../../configs/jest.*"
],
"output": []
}
Expand Down
8 changes: 6 additions & 2 deletions libs/@guardian/identity-auth-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@
"devDependencies": {
"@guardian/identity-auth": "2.1.0",
"@guardian/libs": "16.0.0",
"@types/jest": "29.5.8",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-fetch-mock": "3.0.3",
"rollup": "4.17.2",
"ts-jest": "29.1.1",
"tslib": "2.6.2",
"typescript": "5.3.3",
"wireit": "0.14.4"
Expand Down Expand Up @@ -99,7 +103,7 @@
"files": [
"!(dist)/**",
"!(.eslintcache)",
"../../../jest.*"
"../../../configs/jest.*"
],
"output": []
},
Expand All @@ -111,7 +115,7 @@
"files": [
"!(dist)/**",
"!(.eslintcache)",
"../../../jest.*"
"../../../configs/jest.*"
],
"output": []
}
Expand Down
5 changes: 3 additions & 2 deletions libs/@guardian/identity-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
},
"devDependencies": {
"@guardian/libs": "16.0.0",
"@types/jest": "29.5.8",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-fetch-mock": "3.0.3",
Expand Down Expand Up @@ -88,7 +89,7 @@
"files": [
"!(dist)/**",
"!(.eslintcache)",
"../../../jest.*"
"../../../configs/jest.*"
],
"output": []
},
Expand All @@ -100,7 +101,7 @@
"files": [
"!(dist)/**",
"!(.eslintcache)",
"../../../jest.*"
"../../../configs/jest.*"
],
"output": []
}
Expand Down
2 changes: 1 addition & 1 deletion libs/@guardian/libs/.lintstagedrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import config from '../../../.lintstagedrc.js';

export default {
'src/logger/**/*|scripts/generateSvg.logger.subscriptions.*':
'node -r @swc-node/register scripts/generateSvg.logger.subscriptions.ts',
'tsx scripts/generateSvg.logger.subscriptions.ts',
...config,
};
9 changes: 7 additions & 2 deletions libs/@guardian/libs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,19 @@
"verify-dist": "wireit"
},
"devDependencies": {
"@types/jest": "29.5.8",
"@types/wcag-contrast": "3.0.3",
"cypress": "13.7.1",
"cypress-wait-until": "3.0.1",
"eslint-plugin-cypress": "2.15.1",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-fetch-mock": "3.0.3",
"mockdate": "3.0.5",
"rollup": "4.17.2",
"ts-jest": "29.1.1",
"tslib": "2.6.2",
"tsx": "4.7.1",
"typescript": "5.3.3",
"wcag-contrast": "3.0.0",
"wireit": "0.14.4"
Expand Down Expand Up @@ -101,7 +106,7 @@
"files": [
"!(dist)/**",
"!(.eslintcache)",
"../../../jest.*"
"../../../configs/jest.*"
],
"output": []
},
Expand All @@ -113,7 +118,7 @@
"files": [
"!(dist)/**",
"!(.eslintcache)",
"../../../jest.*"
"../../../configs/jest.*"
],
"output": []
}
Expand Down
3 changes: 1 addition & 2 deletions libs/@guardian/libs/src/consent-management-platform/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { version } from '../../package.json';
import type { CountryCode } from '../countries/@types/CountryCode';
import { log } from '../logger/logger';
import { CMP as UnifiedCMP } from './cmp';
import { disable, enable, isDisabled } from './disable';
Expand Down Expand Up @@ -60,7 +59,7 @@ const init: InitCMP = ({ pubData, country }) => {
);
}

const framework = getFramework(country as CountryCode);
const framework = getFramework(country);

UnifiedCMP.init(framework, pubData ?? {});

Expand Down
7 changes: 5 additions & 2 deletions libs/@guardian/source-development-kitchen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@
"@guardian/source": "1.0.0",
"@storybook/manager-api": "8.0.5",
"@storybook/react": "8.0.5",
"@types/jest": "29.5.8",
"@types/react": "18.2.11",
"jest": "29.7.0",
"react": "18.2.0",
"rollup": "4.17.2",
"storybook": "8.0.5",
"ts-jest": "29.1.1",
"tslib": "2.6.2",
"typescript": "5.3.3",
"wireit": "0.14.4"
Expand Down Expand Up @@ -113,7 +116,7 @@
"files": [
"!(dist)/**",
"!(.eslintcache)",
"../../../jest.*"
"../../../configs/jest.*"
],
"output": []
},
Expand All @@ -125,7 +128,7 @@
"files": [
"!(dist)/**",
"!(.eslintcache)",
"../../../jest.*"
"../../../configs/jest.*"
],
"output": []
}
Expand Down
4 changes: 2 additions & 2 deletions libs/@guardian/source/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
"command": "jest",
"files": [
"!(dist|storybook-static)/**",
"../../../jest.*"
"../../../configs/jest.*"
],
"output": []
},
Expand All @@ -154,7 +154,7 @@
],
"files": [
"!(dist|storybook-static)/**",
"../../../jest.*"
"../../../configs/jest.*"
],
"output": []
}
Expand Down
11 changes: 0 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,18 @@
"@guardian/eslint-config-typescript": "workspace:*",
"@guardian/prettier": "workspace:*",
"@manypkg/get-packages": "2.2.0",
"@swc-node/register": "1.9.0",
"@swc/core": "1.4.0",
"@swc/helpers": "^0.5.2",
"@types/jest": "29.5.8",
"@types/node": "20.12.11",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"colorette": "2.0.20",
"eslint": "8.56.0",
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-import": "2.29.0",
"eslint-plugin-storybook": "^0.6.15",
"fast-glob": "^3.3.2",
"husky": "9.0.6",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"lint-staged": "15.2.0",
"prettier": "3.2.2",
"sort-package-json": "2.10.0",
"ts-jest": "29.1.1",
"typescript": "5.3.3",
"update-section": "0.3.3",
"webpack": "5.91.0",
"wireit": "0.14.4"
},
"packageManager": "pnpm@8.14.0",
Expand Down

0 comments on commit d2d5c6f

Please sign in to comment.