dsh-lark-bot 0.9.1 → 0.9.2

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/dist/plugin.js CHANGED
@@ -145,7 +145,9 @@ function findOwnPackageRoot(startDir) {
145
145
  try {
146
146
  const pkg = JSON.parse(readFileSync(pkgPath, "utf8"));
147
147
  if (typeof pkg.name === "string" && isOwnPackageName(pkg.name)) {
148
- return { name: pkg.name, root: dir };
148
+ const info = { name: pkg.name, root: dir };
149
+ if (typeof pkg.version === "string") info.version = pkg.version;
150
+ return info;
149
151
  }
150
152
  } catch {
151
153
  }