diff --git a/packages/@cva/tailwindcss/package.json b/packages/@cva/tailwindcss/package.json index 49a6e78..c4a9500 100644 --- a/packages/@cva/tailwindcss/package.json +++ b/packages/@cva/tailwindcss/package.json @@ -20,13 +20,13 @@ "license": "Apache-2.0", "author": "Joe Bell (https://joebell.co.uk)", "exports": { - "import": "./dist/index.mjs", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" + "import": "./src/index.ts", + "require": "./src/index.ts", + "types": "./src/index.ts" }, - "main": "dist/index.js", - "module": "dist/index.mjs", - "types": "./dist/index.d.ts", + "main": "./src/index.ts", + "module": "./src/index.ts", + "types": "./src/index.ts", "files": [ "dist/*.mjs", "dist/*.mjs.map", @@ -61,5 +61,15 @@ "peerDependencies": { "cva": "workspace:*", "tailwind-merge": ">= 1.12.0" + }, + "publishConfig": { + "exports": { + "import": "./dist/index.mjs", + "require": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "main": "./dist/index.js", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts" } } diff --git a/packages/class-variance-authority/package.json b/packages/class-variance-authority/package.json index 39adae1..e2dbfbe 100644 --- a/packages/class-variance-authority/package.json +++ b/packages/class-variance-authority/package.json @@ -22,17 +22,16 @@ "author": "Joe Bell (https://joebell.co.uk)", "exports": { ".": { - "import": "./dist/index.mjs", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" + "import": "./src/index.ts", + "types": "./src/index.ts" }, "./types": { - "types": "./dist/types.d.ts" + "types": "./src/types.ts" } }, - "main": "dist/index.js", - "module": "dist/index.mjs", - "types": "./dist/index.d.ts", + "main": "./src/index.ts", + "module": "./src/index.ts", + "types": "./src/index.ts", "files": [ "dist/*.mjs", "dist/*.mjs.map", @@ -64,5 +63,20 @@ "react-dom": "18.2.0", "ts-node": "10.8.1", "typescript": "5.1.3" + }, + "publishConfig": { + "exports": { + ".": { + "import": "./dist/index.mjs", + "require": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "./types": { + "types": "./dist/types.d.ts" + } + }, + "main": "./dist/index.js", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts" } } diff --git a/packages/cva/package.json b/packages/cva/package.json index bb5b66a..57d9d89 100644 --- a/packages/cva/package.json +++ b/packages/cva/package.json @@ -21,13 +21,12 @@ "license": "Apache-2.0", "author": "Joe Bell (https://joebell.co.uk)", "exports": { - "import": "./dist/index.mjs", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" + "import": "./src/index.ts", + "types": "./src/index.ts" }, - "main": "dist/index.js", - "module": "dist/index.mjs", - "types": "./dist/index.d.ts", + "main": "./src/index.ts", + "module": "./src/index.ts", + "types": "./src/index.ts", "files": [ "dist/*.mjs", "dist/*.mjs.map", @@ -68,5 +67,15 @@ "typescript": { "optional": true } + }, + "publishConfig": { + "exports": { + "import": "./dist/index.mjs", + "require": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "main": "./dist/index.js", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts" } }