@koishi-ce/plugin-config 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.mjs CHANGED
@@ -654,8 +654,8 @@ function apply(ctx) {
654
654
  ctx.plugin(ServiceProvider);
655
655
  ctx.plugin(ConfigWriter);
656
656
  ctx.console.addEntry({
657
- dev: resolve(__dirname, "../client/index.ts"),
658
- prod: resolve(__dirname, "../dist")
657
+ dev: resolve(import.meta.dir, "../client/index.ts"),
658
+ prod: resolve(import.meta.dir, "../dist")
659
659
  });
660
660
  }
661
661
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@koishi-ce/plugin-config",
3
3
  "description": "Manage your bots and plugins with console",
4
- "version": "1.1.2",
4
+ "version": "1.1.3",
5
5
  "type": "module",
6
6
  "main": "lib/index.mjs",
7
7
  "types": "lib/index.d.ts",
@@ -67,15 +67,15 @@
67
67
  "@koishi-ce/koishi": "^1.0.0"
68
68
  },
69
69
  "devDependencies": {
70
- "@koishi-ce/client": "^1.2.2",
71
- "@koishi-ce/plugin-hmr": "^1.1.1",
70
+ "@koishi-ce/client": "^1.2.4",
71
+ "@koishi-ce/plugin-hmr": "^1.1.2",
72
72
  "element-plus": "^2.14.5",
73
73
  "vue": "^3.5.12",
74
74
  "vue-router": "^5.2.0"
75
75
  },
76
76
  "dependencies": {
77
- "@koishi-ce/console": "^1.0.0",
78
- "@koishi-ce/loader": "^1.0.7",
77
+ "@koishi-ce/console": "^1.0.1",
78
+ "@koishi-ce/loader": "^1.0.9",
79
79
  "@koishi-ce/registry": "^1.0.5"
80
80
  }
81
81
  }
package/src/node/index.ts CHANGED
@@ -50,7 +50,7 @@ export function apply(ctx: Context) {
50
50
  // 路径相对 lib 产物(运行时执行形态)而非 src 源码:本文件在源码里位于
51
51
  // src/node(两层),打包后位于 lib(一层),深度不一致,按 lib 计
52
52
  ctx.console.addEntry({
53
- dev: resolve(__dirname, "../client/index.ts"),
54
- prod: resolve(__dirname, "../dist"),
53
+ dev: resolve(import.meta.dir, "../client/index.ts"),
54
+ prod: resolve(import.meta.dir, "../dist"),
55
55
  });
56
56
  }