From 278e5a8b02abc6c1e6b1233cb585e6b306110950 Mon Sep 17 00:00:00 2001 From: chufan Date: Fri, 4 Oct 2024 23:33:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BB=9F=E4=B8=80=E4=B8=BA=E5=90=84?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E5=A2=9E=E5=8A=A0`exports`=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/axios/package.json | 12 +++++++++++- packages/egg-axios/package.json | 12 +++++++++++- packages/egg-grpc-server/package.json | 12 +++++++++++- packages/egg-mysql/package.json | 12 +++++++++++- packages/egg-redis/package.json | 12 +++++++++++- packages/egg-sequelize/package.json | 12 +++++++++++- packages/egg-swagger/package.json | 12 +++++++++++- packages/egg/package.json | 12 +++++++++++- packages/eslint-config/package.json | 1 - packages/nest-redis/package.json | 12 +++++++++++- packages/nest-typeorm/package.json | 12 +++++++++++- packages/nest/package.json | 12 +++++++++++- packages/oauth/package.json | 12 +++++++++++- packages/redis/package.json | 12 +++++++++++- packages/typeorm/package.json | 14 ++++++++++++++ 15 files changed, 157 insertions(+), 14 deletions(-) diff --git a/packages/axios/package.json b/packages/axios/package.json index 9e76fe7..aaa4e1d 100644 --- a/packages/axios/package.json +++ b/packages/axios/package.json @@ -13,8 +13,18 @@ "keywords": [ "公众号搜:储凡" ], + "sideEffects": false, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.mjs", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", "files": [ - "*.mjs", "dist" ], "scripts": { diff --git a/packages/egg-axios/package.json b/packages/egg-axios/package.json index 12ba202..fd53b1b 100644 --- a/packages/egg-axios/package.json +++ b/packages/egg-axios/package.json @@ -13,8 +13,18 @@ "keywords": [ "公众号搜:储凡" ], + "sideEffects": false, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.mjs", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", "files": [ - "*.mjs", "dist" ], "scripts": { diff --git a/packages/egg-grpc-server/package.json b/packages/egg-grpc-server/package.json index 17e20b9..4894da6 100644 --- a/packages/egg-grpc-server/package.json +++ b/packages/egg-grpc-server/package.json @@ -13,8 +13,18 @@ "keywords": [ "公众号搜:储凡" ], + "sideEffects": false, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.mjs", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", "files": [ - "*.mjs", "dist" ], "scripts": { diff --git a/packages/egg-mysql/package.json b/packages/egg-mysql/package.json index 41f5e74..fc56c08 100644 --- a/packages/egg-mysql/package.json +++ b/packages/egg-mysql/package.json @@ -13,8 +13,18 @@ "keywords": [ "公众号搜:储凡" ], + "sideEffects": false, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.mjs", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", "files": [ - "*.mjs", "dist" ], "scripts": { diff --git a/packages/egg-redis/package.json b/packages/egg-redis/package.json index 43ade3d..0a1f84f 100644 --- a/packages/egg-redis/package.json +++ b/packages/egg-redis/package.json @@ -13,8 +13,18 @@ "keywords": [ "公众号搜:储凡" ], + "sideEffects": false, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.mjs", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", "files": [ - "*.mjs", "dist" ], "scripts": { diff --git a/packages/egg-sequelize/package.json b/packages/egg-sequelize/package.json index 636c739..3f660ff 100644 --- a/packages/egg-sequelize/package.json +++ b/packages/egg-sequelize/package.json @@ -13,8 +13,18 @@ "keywords": [ "公众号搜:储凡" ], + "sideEffects": false, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.mjs", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", "files": [ - "*.mjs", "dist" ], "scripts": { diff --git a/packages/egg-swagger/package.json b/packages/egg-swagger/package.json index 6d3115f..3f5ce87 100644 --- a/packages/egg-swagger/package.json +++ b/packages/egg-swagger/package.json @@ -13,8 +13,18 @@ "keywords": [ "公众号搜:储凡" ], + "sideEffects": false, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.mjs", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", "files": [ - "*.mjs", "dist" ], "scripts": { diff --git a/packages/egg/package.json b/packages/egg/package.json index 6c993ca..5238d1c 100644 --- a/packages/egg/package.json +++ b/packages/egg/package.json @@ -13,8 +13,18 @@ "keywords": [ "公众号搜:储凡" ], + "sideEffects": false, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.mjs", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", "files": [ - "*.mjs", "dist" ], "scripts": { diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 9da472a..bf70143 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -25,7 +25,6 @@ "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "files": [ - "*.mjs", "dist" ], "scripts": { diff --git a/packages/nest-redis/package.json b/packages/nest-redis/package.json index 9b893b7..8df9547 100644 --- a/packages/nest-redis/package.json +++ b/packages/nest-redis/package.json @@ -13,8 +13,18 @@ "keywords": [ "公众号搜:储凡" ], + "sideEffects": false, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.mjs", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", "files": [ - "*.mjs", "dist" ], "scripts": { diff --git a/packages/nest-typeorm/package.json b/packages/nest-typeorm/package.json index be47255..508dcaf 100644 --- a/packages/nest-typeorm/package.json +++ b/packages/nest-typeorm/package.json @@ -13,8 +13,18 @@ "keywords": [ "公众号搜:储凡" ], + "sideEffects": false, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.mjs", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", "files": [ - "*.mjs", "dist" ], "scripts": { diff --git a/packages/nest/package.json b/packages/nest/package.json index 493d58e..43c71e9 100644 --- a/packages/nest/package.json +++ b/packages/nest/package.json @@ -13,8 +13,18 @@ "keywords": [ "公众号搜:储凡" ], + "sideEffects": false, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.mjs", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", "files": [ - "*.mjs", "dist" ], "scripts": { diff --git a/packages/oauth/package.json b/packages/oauth/package.json index 39e4f14..6d5a0ef 100644 --- a/packages/oauth/package.json +++ b/packages/oauth/package.json @@ -13,8 +13,18 @@ "keywords": [ "公众号搜:储凡" ], + "sideEffects": false, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.mjs", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", "files": [ - "*.mjs", "dist" ], "scripts": { diff --git a/packages/redis/package.json b/packages/redis/package.json index c23bbec..9e2a369 100644 --- a/packages/redis/package.json +++ b/packages/redis/package.json @@ -13,8 +13,18 @@ "keywords": [ "公众号搜:储凡" ], + "sideEffects": false, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.mjs", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", "files": [ - "*.mjs", "dist" ], "scripts": { diff --git a/packages/typeorm/package.json b/packages/typeorm/package.json index e1e9c39..e495445 100644 --- a/packages/typeorm/package.json +++ b/packages/typeorm/package.json @@ -14,6 +14,20 @@ "keywords": [ "公众号搜:储凡" ], + "sideEffects": false, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.mjs", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", + "files": [ + "dist" + ], "scripts": { "build-test": "unbuild", "typecheck": "tsc --noEmit"