@vesk/vesk-cli 0.2.20 → 0.2.22

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 +8 -8
  2. package/package.json +5 -5
package/dist/cli.js CHANGED
@@ -31093,8 +31093,8 @@ var platform_deploy_exports = {};
31093
31093
  __export(platform_deploy_exports, {
31094
31094
  emitPlatformOutput: () => emitPlatformOutput
31095
31095
  });
31096
- import { writeFileSync as writeFileSync9, mkdirSync as mkdirSync7, rmSync as rmSync3, symlinkSync } from "node:fs";
31097
- import { resolve as resolve20, dirname as dirname12, relative as relative3 } from "node:path";
31096
+ import { writeFileSync as writeFileSync9, mkdirSync as mkdirSync7, rmSync as rmSync3, cpSync } from "node:fs";
31097
+ import { resolve as resolve20 } from "node:path";
31098
31098
  async function emitPlatformOutput(platform, ctx2) {
31099
31099
  if (platform === "node") return null;
31100
31100
  const prerenderedPaths = ctx2.prerenderedRoutes.map((r) => r.path);
@@ -31135,6 +31135,7 @@ ${shell.bootstrap}
31135
31135
  mkdirSync7(funcDir, { recursive: true });
31136
31136
  if (shell.functionConfig) {
31137
31137
  writeFileSync9(resolve20(funcDir, ".vc-config.json"), JSON.stringify(shell.functionConfig, null, 2), "utf-8");
31138
+ writeFileSync9(resolve20(funcDir, "package.json"), JSON.stringify({ type: "module" }, null, 2) + "\n", "utf-8");
31138
31139
  }
31139
31140
  handlerRel = `${shell.functionFile.dir}/${shell.functionFile.file}`;
31140
31141
  await bundlePlatformHandler({ entry, outfile: resolve20(funcDir, shell.functionFile.file), nodeBuiltins: shell.nodeBuiltins });
@@ -31159,10 +31160,9 @@ ${shell.bootstrap}
31159
31160
  }, null, 2), "utf-8");
31160
31161
  if (platform === "vercel") {
31161
31162
  const vercelDir = resolve20(projectRoot, ".vercel");
31162
- mkdirSync7(vercelDir, { recursive: true });
31163
- const linkPath = resolve20(vercelDir, "output");
31164
- rmSync3(linkPath, { recursive: true, force: true });
31165
- symlinkSync(relative3(dirname12(linkPath), outRoot), linkPath, "dir");
31163
+ const outputPath = resolve20(vercelDir, "output");
31164
+ rmSync3(outputPath, { recursive: true, force: true });
31165
+ cpSync(outRoot, outputPath, { recursive: true });
31166
31166
  }
31167
31167
  rmSync3(entry, { force: true });
31168
31168
  return outRoot;
@@ -48594,7 +48594,7 @@ function buildCodeframe2(src2, line, column, context = 5) {
48594
48594
 
48595
48595
  // src/build-packages.ts
48596
48596
  import { spawnSync } from "node:child_process";
48597
- import { cpSync, existsSync as existsSync35, mkdirSync as mkdirSync14, readFileSync as readFileSync31, readdirSync as readdirSync11, statSync as statSync20, writeFileSync as writeFileSync18 } from "node:fs";
48597
+ import { cpSync as cpSync2, existsSync as existsSync35, mkdirSync as mkdirSync14, readFileSync as readFileSync31, readdirSync as readdirSync11, statSync as statSync20, writeFileSync as writeFileSync18 } from "node:fs";
48598
48598
  import { createRequire as createRequire5 } from "node:module";
48599
48599
  import { dirname as dirname21, join as join20, resolve as resolve34 } from "node:path";
48600
48600
  import { fileURLToPath as fileURLToPath8 } from "node:url";
@@ -48673,7 +48673,7 @@ function buildPackages(force = false) {
48673
48673
  for (const c of cfg.copy || []) {
48674
48674
  const to = join20(distDir, c.to);
48675
48675
  mkdirSync14(dirname21(to), { recursive: true });
48676
- cpSync(join20(pkgDir, c.from), to, { recursive: true });
48676
+ cpSync2(join20(pkgDir, c.from), to, { recursive: true });
48677
48677
  }
48678
48678
  const srcPkg = JSON.parse(readFileSync31(join20(pkgDir, "package.json"), "utf-8"));
48679
48679
  if (pkg === "lucide-vesk") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vesk/vesk-cli",
3
- "version": "0.2.20",
3
+ "version": "0.2.22",
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.20",
12
- "@vesk/compiler": "^0.2.20",
13
- "@vesk/plugin-tailwind": "^0.2.20",
14
- "@vesk/runtime": "^0.2.20",
11
+ "@vesk/adapter": "^0.2.22",
12
+ "@vesk/compiler": "^0.2.22",
13
+ "@vesk/plugin-tailwind": "^0.2.22",
14
+ "@vesk/runtime": "^0.2.22",
15
15
  "esrap": "^2.3.0",
16
16
  "typescript": "^5.8.0",
17
17
  "ws": "^8.18.0",