Skip to content

Commit

Permalink
refa: fix server exports for cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jan 27, 2024
1 parent 57429dd commit a82c25f
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Expand Up @@ -34,7 +34,7 @@
"@koishijs/i18n-utils": "^1.0.1",
"@koishijs/utils": "^7.1.2",
"@minatojs/core": "^2.8.1",
"@satorijs/core": "^3.4.4",
"@satorijs/core": "^3.4.5",
"cordis": "^3.6.1",
"cosmokit": "^1.5.2",
"fastest-levenshtein": "^1.0.16"
Expand Down
4 changes: 2 additions & 2 deletions packages/koishi/package.json
Expand Up @@ -47,9 +47,9 @@
"dependencies": {
"@koishijs/core": "4.16.7",
"@koishijs/loader": "4.4.3",
"@koishijs/plugin-server": "^3.1.6",
"@koishijs/plugin-server": "^3.1.7",
"@koishijs/utils": "^7.1.2",
"@satorijs/satori": "^3.4.4",
"@satorijs/satori": "^3.4.5",
"cac": "^6.7.14",
"kleur": "^4.1.5"
},
Expand Down
2 changes: 1 addition & 1 deletion plugins/mock/package.json
Expand Up @@ -44,7 +44,7 @@
"koishi": "^4.16.7"
},
"devDependencies": {
"@koishijs/plugin-server": "^3.1.6",
"@koishijs/plugin-server": "^3.1.7",
"koishi": "^4.16.7"
}
}
1 change: 1 addition & 0 deletions plugins/server/index.cjs
@@ -0,0 +1 @@
module.exports = require('@cordisjs/server')
File renamed without changes.
4 changes: 4 additions & 0 deletions plugins/server/index.mjs
@@ -0,0 +1,4 @@
import Server from '@cordisjs/server'

export default Server
export * from '@cordisjs/server'
21 changes: 11 additions & 10 deletions plugins/server/package.json
@@ -1,22 +1,23 @@
{
"name": "@koishijs/plugin-server",
"description": "Server service for Koishi",
"version": "3.1.6",
"version": "3.1.7",
"type": "module",
"main": "lib/index.cjs",
"module": "lib/index.mjs",
"types": "lib/index.d.ts",
"main": "index.cjs",
"module": "index.mjs",
"types": "index.d.ts",
"exports": {
".": {
"require": "./lib/index.cjs",
"import": "./lib/index.mjs",
"types": "./lib/index.d.ts"
"require": "./index.cjs",
"import": "./index.mjs",
"types": "./index.d.ts"
},
"./package.json": "./package.json"
},
"files": [
"lib",
"src"
"index.cjs",
"index.mjs",
"index.d.ts"
],
"author": "Shigma <shigma10826@gmail.com>",
"license": "MIT",
Expand Down Expand Up @@ -56,6 +57,6 @@
"koishi": "^4.16.7"
},
"dependencies": {
"@cordisjs/server": "^0.1.6"
"@cordisjs/server": "^0.1.7"
}
}

0 comments on commit a82c25f

Please sign in to comment.