diff --git a/package-lock.json b/package-lock.json index de76a6e..ab9ab8a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@x-python/core", - "version": "0.0.0", + "version": "0.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@x-python/core", - "version": "0.0.0", + "version": "0.0.2", "license": "MIT", "dependencies": { "immer": "^9.0.16", diff --git a/package.json b/package.json index 47b8097..2115434 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "javascript", "webassembly" ], - "main": "./dist/x-python.umd.cjs", + "main": "./dist/x-python.cjs", "module": "./dist/x-python.js", "unpkg": "./dist/x-python.umd.cjs", "jsdelivr": "./dist/x-python.umd.cjs", @@ -47,7 +47,7 @@ "exports": { ".": { "import": "./dist/x-python.js", - "require": "./dist/x-python.umd.cjs" + "require": "./dist/x-python.cjs" } }, "dependencies": { diff --git a/vite.config.ts b/vite.config.ts index 1d03de8..4cf18c2 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -12,9 +12,10 @@ export default defineConfig({ ], build: { lib: { + formats: ['cjs', 'es', 'umd'], // Could also be a dictionary or array of multiple entry points entry: resolve(__dirname, 'src/main.ts'), - name: '@x-python/core', + name: 'xPython', fileName: 'x-python', }, rollupOptions: {