@tokenoftrust/cli 6.12.6 → 6.12.7
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/package.json +1 -1
- package/src/commands/dev.mjs +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenoftrust/cli",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.7",
|
|
4
4
|
"description": "Token of Trust developer CLI — clone a tenant store, run it locally with save→reload, and submit it for preview. Installs the `tot` command.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Token of Trust",
|
package/src/commands/dev.mjs
CHANGED
|
@@ -921,12 +921,18 @@ export function rendererCacheHealthy(runnerDir, opts = {}) {
|
|
|
921
921
|
* follows links, so a `node_modules` entry whose target is gone (a junction left
|
|
922
922
|
* pointing into a renamed staging directory) reads as absent. A tree with no
|
|
923
923
|
* `apps/storefront/package.json` has nothing to check and passes.
|
|
924
|
+
*
|
|
925
|
+
* Resolution follows Node's walk from the app up to the runner root and no further:
|
|
926
|
+
* pnpm links astro into `apps/storefront/node_modules`, while npm workspaces hoist it
|
|
927
|
+
* to the runner root's `node_modules`. A copy outside the runner never counts.
|
|
924
928
|
* @param {string} runnerDir
|
|
925
929
|
*/
|
|
926
930
|
export function rendererDepsResolve(runnerDir) {
|
|
927
931
|
const app = join(runnerDir, "apps", "storefront");
|
|
928
932
|
if (!existsSync(join(app, "package.json"))) return true;
|
|
929
|
-
return
|
|
933
|
+
return [app, join(runnerDir, "apps"), runnerDir].some((dir) =>
|
|
934
|
+
existsSync(join(dir, "node_modules", "astro", "package.json")),
|
|
935
|
+
);
|
|
930
936
|
}
|
|
931
937
|
|
|
932
938
|
/**
|