Skip to content

Commit

Permalink
fix(package.json): edit main, exports and publishConfig to improve DX (
Browse files Browse the repository at this point in the history
…#228)

* fix(package.json): edit main, exports and fields of publishConfig to improve DX

* fix(package.json): remove unnecessary relative paths
  • Loading branch information
manudeli committed Dec 21, 2022
1 parent 3ad9a63 commit d5271de
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 10 deletions.
27 changes: 22 additions & 5 deletions packages/calendar/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,33 @@
{
"name": "@h6s/calendar",
"version": "1.0.7",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "esm/index.mjs",
"sideEffects": false,
"main": "src/index.ts",
"files": [
"dist",
"esm"
],
"sideEffects": false,
"exports": {
".": {
"require": "./src/index.ts",
"import": "./src/index.ts"
},
"./package.json": "./package.json"
},
"publishConfig": {
"access": "public"
"access": "public",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./esm/index.mjs"
},
"./package.json": "./package.json"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"import": "esm/index.mjs",
"module": "esm/index.mjs"
},
"scripts": {
"prepack": "yarn build",
Expand Down
27 changes: 22 additions & 5 deletions packages/table/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,33 @@
{
"name": "@h6s/table",
"version": "1.0.4",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "esm/index.mjs",
"sideEffects": false,
"main": "src/index.ts",
"files": [
"dist",
"esm"
],
"sideEffects": false,
"exports": {
".": {
"require": "./src/index.ts",
"import": "./src/index.ts"
},
"./package.json": "./package.json"
},
"publishConfig": {
"access": "public"
"access": "public",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./esm/index.mjs"
},
"./package.json": "./package.json"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"import": "esm/index.mjs",
"module": "esm/index.mjs"
},
"scripts": {
"prepack": "yarn build",
Expand Down

0 comments on commit d5271de

Please sign in to comment.