Skip to content

Commit

Permalink
fix(package.json): edit main, exports and fields of publishConfig to …
Browse files Browse the repository at this point in the history
…improve DX
  • Loading branch information
manudeli committed Dec 11, 2022
1 parent f470b56 commit 750ecaa
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,13 +1,30 @@
{
"name": "@h6s/calendar",
"version": "1.0.6",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "esm/index.mjs",
"sideEffects": false,
"main": "src/index.ts",
"exports": {
".": {
"require": "./src/index.ts",
"import": "./src/index.ts"
},
"./package.json": "./package.json"
},
"publishConfig": {
"access": "public"
"access": "public",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./esm/index.mjs",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"import": "./esm/index.mjs",
"main": "./dist/index.js",
"types": "dist/index.d.ts",
"module": "esm/index.mjs"
},
"sideEffects": false,
"scripts": {
"prepack": "yarn build",
"prebuild": "rimraf dist esm",
Expand Down
27 changes: 22 additions & 5 deletions packages/table/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,30 @@
{
"name": "@h6s/table",
"version": "1.0.3",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "esm/index.mjs",
"sideEffects": false,
"main": "src/index.ts",
"exports": {
".": {
"require": "./src/index.ts",
"import": "./src/index.ts"
},
"./package.json": "./package.json"
},
"publishConfig": {
"access": "public"
"access": "public",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./esm/index.mjs",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"import": "./esm/index.mjs",
"main": "./dist/index.js",
"types": "dist/index.d.ts",
"module": "esm/index.mjs"
},
"sideEffects": false,
"scripts": {
"prepack": "yarn build",
"prebuild": "rimraf dist esm",
Expand Down

0 comments on commit 750ecaa

Please sign in to comment.