diff --git a/lib.config.js b/lib.config.js index 49f20df..e42b923 100644 --- a/lib.config.js +++ b/lib.config.js @@ -6,7 +6,7 @@ export default defineConfig({ build: { lib: { entry: resolve(__dirname, 'src/json2pbf.ts'), - formats: ['es'], + formats: ['es', 'cjs'], fileName: 'lib', }, } diff --git a/package-lock.json b/package-lock.json index ed0bb0b..c10944e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@2gis/json2pbf", - "version": "1.1.2", + "version": "1.1.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@2gis/json2pbf", - "version": "1.1.2", + "version": "1.1.3", "license": "ISC", "dependencies": { "pbf": "^3.2.1", diff --git a/package.json b/package.json index cfe5c08..90af815 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "@2gis/json2pbf", - "version": "1.1.2", + "version": "1.1.3", "description": "Simple JSON <-> protobuf codec", "module": "./dist/lib.mjs", + "main": "./dist/lib.js", "types": "./dist/json2pbf.d.ts", "scripts": { "start": "vite demo",