diff --git a/packages/manager/modules/manager-pci-common/package.json b/packages/manager/modules/manager-pci-common/package.json index f413bf885330..07c837d1ae66 100644 --- a/packages/manager/modules/manager-pci-common/package.json +++ b/packages/manager/modules/manager-pci-common/package.json @@ -14,8 +14,7 @@ }, "license": "BSD-3-Clause", "author": "OVH SAS", - "type": "module", - "main": "dist/index.cjs", + "main": "dist/index.cjs.js", "module": "dist/index.esm.js", "types": "dist/types/index.d.ts", "files": [ diff --git a/packages/manager/modules/manager-pci-common/vite.config.mjs b/packages/manager/modules/manager-pci-common/vite.config.mjs index 7e3440d030e8..db7bf41c918c 100644 --- a/packages/manager/modules/manager-pci-common/vite.config.mjs +++ b/packages/manager/modules/manager-pci-common/vite.config.mjs @@ -51,8 +51,8 @@ export default defineConfig({ lib: { entry: path.resolve(pathSrc, 'index.ts'), name: 'ManagerPciCommonLib', - fileName: 'index', formats: ['esm', 'cjs'], + fileName: (format) => `index.${format}.js`, }, rollupOptions: { external: (id) =>