@vesk/adapter 0.2.21 → 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.
@@ -1 +1 @@
1
- {"version":3,"file":"platform-deploy.d.ts","sourceRoot":"","sources":["../src/platform-deploy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwD,KAAK,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAErI,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAE3D,MAAM,WAAW,aAAc,SAAQ,oBAAoB;IACzD,iBAAiB,EAAE,cAAc,EAAE,CAAC;CACrC;AA0BD;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA8EvG"}
1
+ {"version":3,"file":"platform-deploy.d.ts","sourceRoot":"","sources":["../src/platform-deploy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwD,KAAK,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAErI,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAE3D,MAAM,WAAW,aAAc,SAAQ,oBAAoB;IACzD,iBAAiB,EAAE,cAAc,EAAE,CAAC;CACrC;AA0BD;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAmFvG"}
@@ -52,6 +52,11 @@ export async function emitPlatformOutput(platform, ctx) {
52
52
  mkdirSync(funcDir, { recursive: true });
53
53
  if (shell.functionConfig) {
54
54
  writeFileSync(resolve(funcDir, '.vc-config.json'), JSON.stringify(shell.functionConfig, null, 2), 'utf-8');
55
+ // The Build Output API loader keys module format off the nearest
56
+ // package.json `type` field. Without a `type: module` marker the ESM
57
+ // handler bundle is treated as CommonJS and every invocation fails to
58
+ // load (Vercel: FUNCTION_INVOCATION_FAILED).
59
+ writeFileSync(resolve(funcDir, 'package.json'), JSON.stringify({ type: 'module' }, null, 2) + '\n', 'utf-8');
55
60
  }
56
61
  handlerRel = `${shell.functionFile.dir}/${shell.functionFile.file}`;
57
62
  await bundlePlatformHandler({ entry, outfile: resolve(funcDir, shell.functionFile.file), nodeBuiltins: shell.nodeBuiltins });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vesk/adapter",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
4
4
  "type": "module",
5
5
  "description": "Vesk adapter — builds deployable .vesk/ output for Deno and Node serverless",
6
6
  "main": "./dist/index.js",
@@ -23,9 +23,9 @@
23
23
  "sharp": "^0.35.3"
24
24
  },
25
25
  "dependencies": {
26
- "@vesk/compiler": "^0.2.21",
27
- "@vesk/runtime": "^0.2.21",
28
- "@vesk/types": "^0.2.21"
26
+ "@vesk/compiler": "^0.2.22",
27
+ "@vesk/runtime": "^0.2.22",
28
+ "@vesk/types": "^0.2.22"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/ws": "^8.18.1",