Skip to content

Commit

Permalink
build(pci-common): handle cjs files in dist folder (#14614)
Browse files Browse the repository at this point in the history
Signed-off-by: Frédéric Vilcot <[email protected]>
  • Loading branch information
fredericvilcot authored Dec 18, 2024
1 parent 263817e commit ebe8188
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/manager/modules/manager-pci-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"license": "BSD-3-Clause",
"author": "OVH SAS",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"module": "dist/index.esm.js",
"types": "dist/types/index.d.ts",
"files": [
"dist"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default defineConfig({
entry: path.resolve(pathSrc, 'index.ts'),
name: 'ManagerPciCommonLib',
fileName: 'index',
formats: ['es'],
formats: ['esm', 'cjs'],
},
rollupOptions: {
external: (id) =>
Expand Down

0 comments on commit ebe8188

Please sign in to comment.