Skip to content

Commit

Permalink
chore: publishConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-bell committed Aug 19, 2023
1 parent e277f3f commit 5ad6964
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 19 deletions.
22 changes: 16 additions & 6 deletions packages/@cva/tailwindcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
}
28 changes: 21 additions & 7 deletions packages/class-variance-authority/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
}
21 changes: 15 additions & 6 deletions packages/cva/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
}

0 comments on commit 5ad6964

Please sign in to comment.