@akanjs/cli 0.0.68 → 0.0.69

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/index.js +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -905,7 +905,7 @@ var TypeScriptDependencyScanner = class {
905
905
  imports.push(arg.text);
906
906
  }
907
907
  }
908
- if (ts2.isArrowFunction(node.expression) && node.expression.body) {
908
+ if (ts2.isArrowFunction(node.expression)) {
909
909
  const body = node.expression.body;
910
910
  if (ts2.isCallExpression(body) && body.expression.kind === ts2.SyntaxKind.ImportKeyword) {
911
911
  if (body.arguments.length > 0) {
@@ -2119,6 +2119,7 @@ var LibraryRunner = class {
2119
2119
  const newRootPackageJson = { ...rootPackageJson, dependencies, devDependencies };
2120
2120
  lib.workspace.writeJson("package.json", newRootPackageJson);
2121
2121
  await lib.workspace.spawn("pnpm", ["install"]);
2122
+ await lib.workspace.commit(`Merge ${lib.name} library dependencies`);
2122
2123
  }
2123
2124
  async pushLibrary(lib, branch) {
2124
2125
  await lib.workspace.exec(
@@ -4044,7 +4045,7 @@ var PackageRunner = class {
4044
4045
  dependencies,
4045
4046
  ...pkgJson.peerDependencies ? {
4046
4047
  peerDependencies: Object.fromEntries(
4047
- Object.keys(pkgJson.peerDependencies).sort().map((dep) => [dep, allDependencies[dep] ?? pkgJson.peerDependencies?.[dep] ?? "0.0.0"])
4048
+ Object.keys(pkgJson.peerDependencies).sort().map((dep) => [dep, allDependencies[dep] ?? pkgJson.peerDependencies?.[dep]])
4048
4049
  )
4049
4050
  } : {},
4050
4051
  ...["@akanjs/config", "@akanjs/cli"].includes(pkg.name) ? {} : {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "@akanjs/cli",
4
- "version": "0.0.68",
4
+ "version": "0.0.69",
5
5
  "bin": {
6
6
  "akan": "index.js"
7
7
  },