@vesk/vesk-cli 0.2.84 → 0.2.86

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/cli.js +4 -3
  2. package/package.json +5 -5
package/dist/cli.js CHANGED
@@ -20550,8 +20550,8 @@ var init_module_imports = __esm({
20550
20550
  /** Emit a self-contained module registry source file. */
20551
20551
  toModuleSource() {
20552
20552
  const parts = [];
20553
- for (const [key, { code }] of this.data) {
20554
- parts.push(`${JSON.stringify(key)}: ${JSON.stringify(code)}`);
20553
+ for (const [key, entry] of this.data) {
20554
+ parts.push(`${JSON.stringify(key)}: ${JSON.stringify({ code: entry.code, dir: entry.dir, deps: entry.deps })}`);
20555
20555
  }
20556
20556
  return `export const __veskModules = {${parts.join(",")}};
20557
20557
  `;
@@ -50707,7 +50707,8 @@ function generateApiFunction(apiNode, _apiDir, outDir, options) {
50707
50707
  } catch {
50708
50708
  }
50709
50709
  }
50710
- const urlParts = apiNode.fullPath.split("/").filter(Boolean);
50710
+ const routeParts = apiNode.fullPath.split("/").filter(Boolean);
50711
+ const urlParts = routeParts[0] === "api" ? routeParts.slice(1) : routeParts;
50711
50712
  const extracts = [];
50712
50713
  let partIdx = 0;
50713
50714
  for (let i = 0; i < urlParts.length; i++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vesk/vesk-cli",
3
- "version": "0.2.84",
3
+ "version": "0.2.86",
4
4
  "type": "module",
5
5
  "description": "Vesk — compiler-first framework for the post-VDOM web. vesk dev, vesk build.",
6
6
  "bin": {
@@ -8,10 +8,10 @@
8
8
  },
9
9
  "main": "./dist/cli.js",
10
10
  "dependencies": {
11
- "@vesk/adapter": "^0.2.84",
12
- "@vesk/compiler": "^0.2.84",
13
- "@vesk/plugin-tailwind": "^0.2.84",
14
- "@vesk/runtime": "^0.2.84",
11
+ "@vesk/adapter": "^0.2.86",
12
+ "@vesk/compiler": "^0.2.86",
13
+ "@vesk/plugin-tailwind": "^0.2.86",
14
+ "@vesk/runtime": "^0.2.86",
15
15
  "esrap": "^2.3.0",
16
16
  "typescript": "^5.8.0",
17
17
  "ws": "^8.18.0",