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"