@lark-apaas/fullstack-cli 1.1.14 → 1.1.15

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -5
  2. package/package.json +3 -2
package/dist/index.js CHANGED
@@ -2280,7 +2280,6 @@ var actionPluginCommandGroup = {
2280
2280
 
2281
2281
  // src/commands/capability/utils.ts
2282
2282
  import fs8 from "fs";
2283
- import { createRequire as createRequire2 } from "module";
2284
2283
  import path7 from "path";
2285
2284
  var CAPABILITIES_DIR = "server/capabilities";
2286
2285
  function getProjectRoot2() {
@@ -2348,10 +2347,7 @@ function hasValidParamsSchema(paramsSchema) {
2348
2347
  }
2349
2348
  async function loadPlugin(pluginKey) {
2350
2349
  try {
2351
- const userRequire = createRequire2(path7.join(getProjectRoot2(), "package.json"));
2352
- const resolvedPath = userRequire.resolve(pluginKey);
2353
- const pluginModule = await import(resolvedPath);
2354
- const pluginPackage = pluginModule.default ?? pluginModule;
2350
+ const pluginPackage = (await import(pluginKey)).default;
2355
2351
  if (!pluginPackage || typeof pluginPackage.create !== "function") {
2356
2352
  throw new Error(`Plugin ${pluginKey} does not export a valid create function`);
2357
2353
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-cli",
3
- "version": "1.1.14",
3
+ "version": "1.1.15",
4
4
  "description": "CLI tool for fullstack template management",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -52,5 +52,6 @@
52
52
  "peerDependencies": {
53
53
  "typescript": "^5.9.2"
54
54
  },
55
- "migrationVersion": 1
55
+ "migrationVersion": 1,
56
+ "gitHead": "01b6e36136d5e8aee0960b9b90091c8c3f66537a"
56
57
  }