diff --git a/packages/manager/apps/pci-ai-endpoints/tailwind.config.js b/packages/manager/apps/pci-ai-endpoints/tailwind.config.js index 657ab11bb87d..fc776df4ce39 100644 --- a/packages/manager/apps/pci-ai-endpoints/tailwind.config.js +++ b/packages/manager/apps/pci-ai-endpoints/tailwind.config.js @@ -10,5 +10,9 @@ module.exports = { path.dirname(require.resolve('@ovh-ux/manager-react-components')), '**/*.{js,jsx,ts,tsx}', ), + path.join( + path.dirname(require.resolve('@ovh-ux/manager-pci-common')), + '**/*.{js,jsx,ts,tsx}', + ), ], }; diff --git a/packages/manager/apps/pci-billing/tailwind.config.js b/packages/manager/apps/pci-billing/tailwind.config.js index 2d131c63543e..47669b0f58b4 100644 --- a/packages/manager/apps/pci-billing/tailwind.config.js +++ b/packages/manager/apps/pci-billing/tailwind.config.js @@ -1,11 +1,19 @@ import config from '@ovh-ux/manager-tailwind-config'; +import path from 'path'; /** @type {import('tailwindcss').Config} */ module.exports = { ...config, content: [ './src/**/*.{js,jsx,ts,tsx}', - '../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}', + path.join( + path.dirname(require.resolve('@ovh-ux/manager-react-components')), + '**/*.{js,jsx,ts,tsx}', + ), + path.join( + path.dirname(require.resolve('@ovh-ux/manager-pci-common')), + '**/*.{js,jsx,ts,tsx}', + ), ], theme: { extend: { diff --git a/packages/manager/apps/pci-block-storage/tailwind.config.js b/packages/manager/apps/pci-block-storage/tailwind.config.js index ad0d9bdeb306..d33649e455dd 100644 --- a/packages/manager/apps/pci-block-storage/tailwind.config.js +++ b/packages/manager/apps/pci-block-storage/tailwind.config.js @@ -1,12 +1,19 @@ import config from '@ovh-ux/manager-tailwind-config'; +import path from 'path'; /** @type {import('tailwindcss').Config} */ module.exports = { ...config, content: [ './src/**/*.{js,jsx,ts,tsx}', - '../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}', - '../../modules/manager-pci-common/**/*.{js,jsx,ts,tsx}', + path.join( + path.dirname(require.resolve('@ovh-ux/manager-react-components')), + '**/*.{js,jsx,ts,tsx}', + ), + path.join( + path.dirname(require.resolve('@ovh-ux/manager-pci-common')), + '**/*.{js,jsx,ts,tsx}', + ), ], corePlugins: { preflight: false, diff --git a/packages/manager/apps/pci-gateway/tailwind.config.js b/packages/manager/apps/pci-gateway/tailwind.config.js index ad0d9bdeb306..d33649e455dd 100644 --- a/packages/manager/apps/pci-gateway/tailwind.config.js +++ b/packages/manager/apps/pci-gateway/tailwind.config.js @@ -1,12 +1,19 @@ import config from '@ovh-ux/manager-tailwind-config'; +import path from 'path'; /** @type {import('tailwindcss').Config} */ module.exports = { ...config, content: [ './src/**/*.{js,jsx,ts,tsx}', - '../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}', - '../../modules/manager-pci-common/**/*.{js,jsx,ts,tsx}', + path.join( + path.dirname(require.resolve('@ovh-ux/manager-react-components')), + '**/*.{js,jsx,ts,tsx}', + ), + path.join( + path.dirname(require.resolve('@ovh-ux/manager-pci-common')), + '**/*.{js,jsx,ts,tsx}', + ), ], corePlugins: { preflight: false, diff --git a/packages/manager/apps/pci-kubernetes/tailwind.config.js b/packages/manager/apps/pci-kubernetes/tailwind.config.js index ad0d9bdeb306..d33649e455dd 100644 --- a/packages/manager/apps/pci-kubernetes/tailwind.config.js +++ b/packages/manager/apps/pci-kubernetes/tailwind.config.js @@ -1,12 +1,19 @@ import config from '@ovh-ux/manager-tailwind-config'; +import path from 'path'; /** @type {import('tailwindcss').Config} */ module.exports = { ...config, content: [ './src/**/*.{js,jsx,ts,tsx}', - '../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}', - '../../modules/manager-pci-common/**/*.{js,jsx,ts,tsx}', + path.join( + path.dirname(require.resolve('@ovh-ux/manager-react-components')), + '**/*.{js,jsx,ts,tsx}', + ), + path.join( + path.dirname(require.resolve('@ovh-ux/manager-pci-common')), + '**/*.{js,jsx,ts,tsx}', + ), ], corePlugins: { preflight: false, diff --git a/packages/manager/apps/pci-load-balancer/tailwind.config.js b/packages/manager/apps/pci-load-balancer/tailwind.config.js index 0a4cb87cdbd6..47669b0f58b4 100644 --- a/packages/manager/apps/pci-load-balancer/tailwind.config.js +++ b/packages/manager/apps/pci-load-balancer/tailwind.config.js @@ -1,12 +1,19 @@ import config from '@ovh-ux/manager-tailwind-config'; +import path from 'path'; /** @type {import('tailwindcss').Config} */ module.exports = { ...config, content: [ './src/**/*.{js,jsx,ts,tsx}', - '../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}', - '../../modules/manager-pci-common/**/*.{js,jsx,ts,tsx}', + path.join( + path.dirname(require.resolve('@ovh-ux/manager-react-components')), + '**/*.{js,jsx,ts,tsx}', + ), + path.join( + path.dirname(require.resolve('@ovh-ux/manager-pci-common')), + '**/*.{js,jsx,ts,tsx}', + ), ], theme: { extend: { diff --git a/packages/manager/apps/pci-private-network/tailwind.config.js b/packages/manager/apps/pci-private-network/tailwind.config.js index ad0d9bdeb306..d33649e455dd 100644 --- a/packages/manager/apps/pci-private-network/tailwind.config.js +++ b/packages/manager/apps/pci-private-network/tailwind.config.js @@ -1,12 +1,19 @@ import config from '@ovh-ux/manager-tailwind-config'; +import path from 'path'; /** @type {import('tailwindcss').Config} */ module.exports = { ...config, content: [ './src/**/*.{js,jsx,ts,tsx}', - '../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}', - '../../modules/manager-pci-common/**/*.{js,jsx,ts,tsx}', + path.join( + path.dirname(require.resolve('@ovh-ux/manager-react-components')), + '**/*.{js,jsx,ts,tsx}', + ), + path.join( + path.dirname(require.resolve('@ovh-ux/manager-pci-common')), + '**/*.{js,jsx,ts,tsx}', + ), ], corePlugins: { preflight: false, diff --git a/packages/manager/apps/pci-private-registry/tailwind.config.js b/packages/manager/apps/pci-private-registry/tailwind.config.js index ad0d9bdeb306..d33649e455dd 100644 --- a/packages/manager/apps/pci-private-registry/tailwind.config.js +++ b/packages/manager/apps/pci-private-registry/tailwind.config.js @@ -1,12 +1,19 @@ import config from '@ovh-ux/manager-tailwind-config'; +import path from 'path'; /** @type {import('tailwindcss').Config} */ module.exports = { ...config, content: [ './src/**/*.{js,jsx,ts,tsx}', - '../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}', - '../../modules/manager-pci-common/**/*.{js,jsx,ts,tsx}', + path.join( + path.dirname(require.resolve('@ovh-ux/manager-react-components')), + '**/*.{js,jsx,ts,tsx}', + ), + path.join( + path.dirname(require.resolve('@ovh-ux/manager-pci-common')), + '**/*.{js,jsx,ts,tsx}', + ), ], corePlugins: { preflight: false, diff --git a/packages/manager/apps/pci-public-ip/tailwind.config.js b/packages/manager/apps/pci-public-ip/tailwind.config.js index 14998255815f..d33649e455dd 100644 --- a/packages/manager/apps/pci-public-ip/tailwind.config.js +++ b/packages/manager/apps/pci-public-ip/tailwind.config.js @@ -1,11 +1,19 @@ import config from '@ovh-ux/manager-tailwind-config'; +import path from 'path'; /** @type {import('tailwindcss').Config} */ module.exports = { ...config, content: [ './src/**/*.{js,jsx,ts,tsx}', - '../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}', + path.join( + path.dirname(require.resolve('@ovh-ux/manager-react-components')), + '**/*.{js,jsx,ts,tsx}', + ), + path.join( + path.dirname(require.resolve('@ovh-ux/manager-pci-common')), + '**/*.{js,jsx,ts,tsx}', + ), ], corePlugins: { preflight: false, diff --git a/packages/manager/apps/pci-savings-plan/tailwind.config.js b/packages/manager/apps/pci-savings-plan/tailwind.config.js index 657ab11bb87d..fc776df4ce39 100644 --- a/packages/manager/apps/pci-savings-plan/tailwind.config.js +++ b/packages/manager/apps/pci-savings-plan/tailwind.config.js @@ -10,5 +10,9 @@ module.exports = { path.dirname(require.resolve('@ovh-ux/manager-react-components')), '**/*.{js,jsx,ts,tsx}', ), + path.join( + path.dirname(require.resolve('@ovh-ux/manager-pci-common')), + '**/*.{js,jsx,ts,tsx}', + ), ], }; diff --git a/packages/manager/apps/pci-ssh-keys/tailwind.config.js b/packages/manager/apps/pci-ssh-keys/tailwind.config.js index 14998255815f..d33649e455dd 100644 --- a/packages/manager/apps/pci-ssh-keys/tailwind.config.js +++ b/packages/manager/apps/pci-ssh-keys/tailwind.config.js @@ -1,11 +1,19 @@ import config from '@ovh-ux/manager-tailwind-config'; +import path from 'path'; /** @type {import('tailwindcss').Config} */ module.exports = { ...config, content: [ './src/**/*.{js,jsx,ts,tsx}', - '../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}', + path.join( + path.dirname(require.resolve('@ovh-ux/manager-react-components')), + '**/*.{js,jsx,ts,tsx}', + ), + path.join( + path.dirname(require.resolve('@ovh-ux/manager-pci-common')), + '**/*.{js,jsx,ts,tsx}', + ), ], corePlugins: { preflight: false, diff --git a/packages/manager/apps/pci-users/tailwind.config.js b/packages/manager/apps/pci-users/tailwind.config.js index ad0d9bdeb306..d33649e455dd 100644 --- a/packages/manager/apps/pci-users/tailwind.config.js +++ b/packages/manager/apps/pci-users/tailwind.config.js @@ -1,12 +1,19 @@ import config from '@ovh-ux/manager-tailwind-config'; +import path from 'path'; /** @type {import('tailwindcss').Config} */ module.exports = { ...config, content: [ './src/**/*.{js,jsx,ts,tsx}', - '../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}', - '../../modules/manager-pci-common/**/*.{js,jsx,ts,tsx}', + path.join( + path.dirname(require.resolve('@ovh-ux/manager-react-components')), + '**/*.{js,jsx,ts,tsx}', + ), + path.join( + path.dirname(require.resolve('@ovh-ux/manager-pci-common')), + '**/*.{js,jsx,ts,tsx}', + ), ], corePlugins: { preflight: false, diff --git a/packages/manager/apps/pci-vouchers/tailwind.config.js b/packages/manager/apps/pci-vouchers/tailwind.config.js index ad0d9bdeb306..d33649e455dd 100644 --- a/packages/manager/apps/pci-vouchers/tailwind.config.js +++ b/packages/manager/apps/pci-vouchers/tailwind.config.js @@ -1,12 +1,19 @@ import config from '@ovh-ux/manager-tailwind-config'; +import path from 'path'; /** @type {import('tailwindcss').Config} */ module.exports = { ...config, content: [ './src/**/*.{js,jsx,ts,tsx}', - '../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}', - '../../modules/manager-pci-common/**/*.{js,jsx,ts,tsx}', + path.join( + path.dirname(require.resolve('@ovh-ux/manager-react-components')), + '**/*.{js,jsx,ts,tsx}', + ), + path.join( + path.dirname(require.resolve('@ovh-ux/manager-pci-common')), + '**/*.{js,jsx,ts,tsx}', + ), ], corePlugins: { preflight: false, diff --git a/packages/manager/apps/pci-workflow/tailwind.config.js b/packages/manager/apps/pci-workflow/tailwind.config.js index ad0d9bdeb306..d33649e455dd 100644 --- a/packages/manager/apps/pci-workflow/tailwind.config.js +++ b/packages/manager/apps/pci-workflow/tailwind.config.js @@ -1,12 +1,19 @@ import config from '@ovh-ux/manager-tailwind-config'; +import path from 'path'; /** @type {import('tailwindcss').Config} */ module.exports = { ...config, content: [ './src/**/*.{js,jsx,ts,tsx}', - '../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}', - '../../modules/manager-pci-common/**/*.{js,jsx,ts,tsx}', + path.join( + path.dirname(require.resolve('@ovh-ux/manager-react-components')), + '**/*.{js,jsx,ts,tsx}', + ), + path.join( + path.dirname(require.resolve('@ovh-ux/manager-pci-common')), + '**/*.{js,jsx,ts,tsx}', + ), ], corePlugins: { preflight: false, diff --git a/packages/manager/modules/manager-pci-common/tailwind.config.js b/packages/manager/modules/manager-pci-common/tailwind.config.js index 14998255815f..f73c3c13fd2a 100644 --- a/packages/manager/modules/manager-pci-common/tailwind.config.js +++ b/packages/manager/modules/manager-pci-common/tailwind.config.js @@ -1,11 +1,15 @@ import config from '@ovh-ux/manager-tailwind-config'; +import path from 'path'; /** @type {import('tailwindcss').Config} */ module.exports = { ...config, content: [ './src/**/*.{js,jsx,ts,tsx}', - '../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}', + path.join( + path.dirname(require.resolve('@ovh-ux/manager-react-components')), + '**/*.{js,jsx,ts,tsx}', + ), ], corePlugins: { preflight: false,