diff --git a/packages/calendar/package.json b/packages/calendar/package.json index 25fb4002..042eb0ee 100644 --- a/packages/calendar/package.json +++ b/packages/calendar/package.json @@ -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", diff --git a/packages/table/package.json b/packages/table/package.json index 8ce410b9..6e58edaf 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -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",