diff --git a/lerna.json b/lerna.json index 80644b7..f7f6524 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", "useWorkspaces": true, - "version": "1.2.2", + "version": "1.2.3", "useNx": false } diff --git a/packages/cmcd-validator-library/package.json b/packages/cmcd-validator-library/package.json index 8173bcf..321f061 100644 --- a/packages/cmcd-validator-library/package.json +++ b/packages/cmcd-validator-library/package.json @@ -1,14 +1,15 @@ { "name": "@montevideo-tech/cmcd-validator", - "version": "1.2.2", + "version": "1.2.3", "description": "This is a library created to validate CMCD", "private": false, "readme": "../../README.md", "publishConfig": { "access": "public" }, - "browser": "dist/cmcd-validator.min.js", + "main": "dist/cmcd-validator.cjs.js", "module": "dist/cmcd-validator.esm.js", + "browser": "dist/cmcd-validator.min.js", "scripts": { "build": "rollup -c", "start": "rollup -c -w", diff --git a/packages/cmcd-validator-library/rollup.config.js b/packages/cmcd-validator-library/rollup.config.js index ec2e1e5..42c1fb9 100644 --- a/packages/cmcd-validator-library/rollup.config.js +++ b/packages/cmcd-validator-library/rollup.config.js @@ -63,6 +63,7 @@ export default [ input: './src/index.js', output: [ { file: pkg.module, format: 'es' }, + { file: pkg.main, format: 'cjs' }, ], plugins: [ nodeResolve({ browser: true, preferBuiltins: true }),