create-wakii-stack 0.1.0 → 0.1.1

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 +7 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -86,7 +86,13 @@ import { existsSync } from "fs";
86
86
  import { dirname, join, resolve } from "path";
87
87
  import { fileURLToPath } from "url";
88
88
  import { parseDocument } from "yaml";
89
- var DEFAULT_TEMPLATE_ROOT = resolve(dirname(fileURLToPath(import.meta.url)), "../../stack-template");
89
+ var DEFAULT_TEMPLATE_ROOT = (() => {
90
+ const here = dirname(fileURLToPath(import.meta.url));
91
+ for (const candidate of [resolve(here, "../../stack-template"), resolve(here, "../stack-template")]) {
92
+ if (existsSync(candidate)) return candidate;
93
+ }
94
+ return resolve(here, "../../stack-template");
95
+ })();
90
96
  var STACK_ORG = "wakii";
91
97
  async function copyTree(srcDir, destDir, opts) {
92
98
  await mkdir(destDir, { recursive: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-wakii-stack",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "CLI scaffold full-stack (FE+BE) dùng @wakii/ui-kit — full-copy + prune theo manifest (spec Hybrid C)",
6
6
  "bin": {