diff --git a/example/pnpm-lock.yaml b/example/pnpm-lock.yaml index 9f734bd..6a6bd28 100644 --- a/example/pnpm-lock.yaml +++ b/example/pnpm-lock.yaml @@ -2559,7 +2559,7 @@ packages: resolution: {directory: .., type: directory} id: file:.. name: mui-tiptap - version: 1.9.1 + version: 1.9.5 engines: {pnpm: '>=8'} requiresBuild: true peerDependencies: diff --git a/package.json b/package.json index 5aa6f1d..1f02555 100644 --- a/package.json +++ b/package.json @@ -22,25 +22,25 @@ "dist" ], "type": "commonjs", - "types": "./dist/index.d.ts", - "main": "dist/index.js", + "types": "./dist/cjs/index.d.ts", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "exports": { ".": { - "types": "./dist/index.d.ts", - "require": "./dist/index.js", - "import": "./dist/esm/index.js" + "types": "./dist/cjs/index.d.ts", + "module": "./dist/esm/index.js", + "default": "./dist/cjs/index.js" }, "./icons": { - "types": "./dist/icons/index.d.ts", - "require": "./dist/icons/index.js", - "import": "./dist/esm/icons/index.js" + "types": "./dist/cjs/icons/index.d.ts", + "module": "./dist/esm/icons/index.js", + "default": "./dist/cjs/icons/index.js" } }, "typesVersions": { "*": { "icons": [ - "./dist/icons/index.d.ts" + "./dist/cjs/icons/index.d.ts" ], "*": [ "*" diff --git a/tsconfig.build.json b/tsconfig.build.json index 78c4f09..67a2e24 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -1,5 +1,8 @@ { "extends": "./tsconfig.json", "include": ["./src"], - "exclude": ["./src/demo", "./src/**/__tests__"] + "exclude": ["./src/demo", "./src/**/__tests__"], + "compilerOptions": { + "outDir": "./dist/cjs" + } }