diff --git a/knip.config.ts b/knip.config.ts index 1d22ab1ee..6e679246b 100644 --- a/knip.config.ts +++ b/knip.config.ts @@ -23,6 +23,7 @@ const config: KnipConfig = { entry: ['src/**/*'], ignoreDependencies: [ 'sass', // Used in css + 'postcss-config-jwp', // Used in postcss.config ], }, 'platforms/web': { @@ -31,6 +32,7 @@ const config: KnipConfig = { '@codeceptjs/configure', // Used in e2e tests '@babel/plugin-proposal-decorators', // Used to build with decorators for ioc resolution '@babel/core', // Required peer dependency for babel plugins + '@jwp/ott-testing', // Used in e2e testing '@types/luxon', // Used in tests 'babel-plugin-transform-typescript-metadata', // Used to build with decorators for ioc resolution 'core-js', // Conditionally imported at build time diff --git a/package.json b/package.json index 6c7d33b69..b8f5cc0ac 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "@types/node": "^22.10.1", "csv-parse": "^5.5.6", "eslint": "^8.57.0", + "eslint-config-jwp": "*", "husky": "^6.0.0", "i18next-parser-workspaces": "^0.2.0", "knip": "^5.30.1", @@ -53,9 +54,6 @@ "typescript": "5.7.2", "vitest": "^2.1.6" }, - "peerDependencies": { - "eslint-config-jwp": "*" - }, "resolutions": { "codeceptjs/**/fast-xml-parser": "^4.5.0", "micromatch": ">=4.0.8", diff --git a/packages/common/package.json b/packages/common/package.json index f8a264117..a556fab06 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -23,16 +23,13 @@ "zustand": "^4.5.5" }, "devDependencies": { + "@jwp/ott-testing": "*", "@types/ini": "^1.3.34", "@types/lodash.merge": "^4.6.9", + "eslint-config-jwp": "*", "jsdom": "^22.1.0", "timezone-mock": "^1.3.6", "vi-fetch": "^0.8.0", "vitest": "^2.1.6" - }, - "peerDependencies": { - "@jwp/ott-testing": "*", - "@jwp/ott-theme": "*", - "eslint-config-jwp": "*" } } diff --git a/packages/hooks-react/package.json b/packages/hooks-react/package.json index 326ec80fc..9301b2848 100644 --- a/packages/hooks-react/package.json +++ b/packages/hooks-react/package.json @@ -9,6 +9,7 @@ "test-watch": "TZ=UTC LC_ALL=en_US.UTF-8 vitest" }, "dependencies": { + "@jwp/ott-common": "*", "date-fns": "^4.1.0", "i18next": "^24.0.2", "planby": "^0.3.0", @@ -20,15 +21,12 @@ "yup": "^1.4.0" }, "devDependencies": { + "@jwp/ott-testing": "*", "@testing-library/react": "^14.3.1", "@types/jwplayer": "^8.31.1", + "eslint-config-jwp": "*", "jsdom": "^22.1.0", "vi-fetch": "^0.8.0", "vitest": "^2.1.6" - }, - "peerDependencies": { - "@jwp/ott-common": "*", - "@jwp/ott-testing": "*", - "eslint-config-jwp": "*" } } diff --git a/packages/ui-react/package.json b/packages/ui-react/package.json index 9415f96f1..77cec7c64 100644 --- a/packages/ui-react/package.json +++ b/packages/ui-react/package.json @@ -10,6 +10,9 @@ }, "dependencies": { "@adyen/adyen-web": "^5.68.1", + "@jwp/ott-common": "*", + "@jwp/ott-hooks-react": "*", + "@jwp/ott-theme": "*", "@videodock/tile-slider": "^2.0.0", "classnames": "^2.5.1", "date-fns": "^4.1.0", @@ -33,6 +36,7 @@ "yup": "^1.4.0" }, "devDependencies": { + "@jwp/ott-testing": "*", "@testing-library/jest-dom": "^6.4.6", "@testing-library/react": "^14.3.1", "@types/dompurify": "^3.0.5", @@ -41,7 +45,9 @@ "@types/react-google-recaptcha": "^2.1.9", "@types/react-infinite-scroller": "^1.2.5", "@vitejs/plugin-react": "^4.3.1", + "eslint-config-jwp": "*", "jsdom": "^22.1.0", + "postcss-config-jwp": "*", "sass": "^1.77.6", "typescript-plugin-css-modules": "^5.1.0", "vi-fetch": "^0.8.0", @@ -49,13 +55,5 @@ "vitest": "^2.1.6", "vitest-axe": "^1.0.0-pre.3", "wicg-inert": "^3.1.3" - }, - "peerDependencies": { - "@jwp/ott-common": "*", - "@jwp/ott-hooks-react": "*", - "@jwp/ott-testing": "*", - "@jwp/ott-theme": "*", - "eslint-config-jwp": "*", - "postcss-config-jwp": "*" } } diff --git a/platforms/web/package.json b/platforms/web/package.json index fe1645278..18590349f 100644 --- a/platforms/web/package.json +++ b/platforms/web/package.json @@ -29,8 +29,6 @@ "@codeceptjs/allure-legacy": "^1.0.2", "@jwp/ott-common": "*", "@jwp/ott-hooks-react": "*", - "@jwp/ott-testing": "*", - "@jwp/ott-theme": "*", "@jwp/ott-ui-react": "*", "broadcast-channel": "^7.0.0", "i18next": "^24.0.2", @@ -48,6 +46,7 @@ "@babel/core": "^7.24.7", "@babel/plugin-proposal-decorators": "^7.24.7", "@codeceptjs/configure": "^0.8.0", + "@jwp/ott-testing": "*", "@testing-library/jest-dom": "^6.4.6", "@types/jwplayer": "^8.31.1", "@types/luxon": "^3.4.2",