@tamer4lynx/cli 0.0.4 → 0.0.5

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 +6 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import path24 from "path";
12
12
  import { program } from "commander";
13
13
 
14
14
  // package.json
15
- var version = "0.0.4";
15
+ var version = "0.0.5";
16
16
 
17
17
  // src/android/create.ts
18
18
  import fs3 from "fs";
@@ -1681,7 +1681,7 @@ var REQUIRED_PLUGIN_ENTRIES = {
1681
1681
  pluginLine: 'kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }'
1682
1682
  }
1683
1683
  };
1684
- var autolink = () => {
1684
+ var autolink = (opts) => {
1685
1685
  let resolved;
1686
1686
  try {
1687
1687
  resolved = resolveHostPaths();
@@ -1810,17 +1810,17 @@ ${generateActivityLifecycleKotlin(packages, projectPackage)}`;
1810
1810
  function run() {
1811
1811
  console.log("\u{1F50E} Finding Lynx extension packages (lynx.ext.json / tamer.json)...");
1812
1812
  let packages = discoverModules(projectRoot).filter((p) => p.config.android);
1813
- const isDevApp = packageName === "com.nanofuxion.tamerdevapp";
1813
+ const includeDevClient = opts?.includeDevClient === true;
1814
1814
  const devClientScoped = path6.join(projectRoot, "node_modules", "@tamer4lynx", "tamer-dev-client");
1815
1815
  const devClientFlat = path6.join(projectRoot, "node_modules", "tamer-dev-client");
1816
1816
  const devClientPath = fs6.existsSync(path6.join(devClientScoped, "android")) ? devClientScoped : fs6.existsSync(path6.join(devClientFlat, "android")) ? devClientFlat : null;
1817
1817
  const hasDevClient = packages.some((p) => p.name === "@tamer4lynx/tamer-dev-client" || p.name === "tamer-dev-client");
1818
- if (isDevApp && devClientPath && !hasDevClient) {
1818
+ if (includeDevClient && devClientPath && !hasDevClient) {
1819
1819
  packages = [{
1820
1820
  ...TAMER_DEV_CLIENT_FALLBACK,
1821
1821
  packagePath: devClientPath
1822
1822
  }, ...packages];
1823
- console.log("\u2139\uFE0F Added tamer-dev-client (fallback for dev-app; lynx.ext.json missing in published package).");
1823
+ console.log("\u2139\uFE0F Added tamer-dev-client (fallback; lynx.ext.json missing in published package).");
1824
1824
  }
1825
1825
  if (packages.length > 0) {
1826
1826
  console.log(`Found ${packages.length} package(s): ${packages.map((p) => p.name).join(", ")}`);
@@ -2084,7 +2084,7 @@ async function bundleAndDeploy(opts = {}) {
2084
2084
  const devClientPkg = findDevClientPackage(projectRoot);
2085
2085
  const includeDevClient = !release && !!devClientPkg;
2086
2086
  const destinationDir = androidAssetsDir;
2087
- autolink_default();
2087
+ autolink_default({ includeDevClient });
2088
2088
  await syncDevClient_default({ includeDevClient });
2089
2089
  const bundleExists = fs9.existsSync(lynxBundlePath);
2090
2090
  if (!bundleExists) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamer4lynx/cli",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "description": "A CLI tool for managing LynxJS native modules.",