@mastra/deployer-vercel 0.1.5 → 0.1.6-alpha.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.
@@ -1,18 +1,18 @@
1
1
 
2
- > @mastra/deployer-vercel@0.1.5-alpha.3 build /home/runner/work/mastra/mastra/deployers/vercel
2
+ > @mastra/deployer-vercel@0.1.6-alpha.1 build /home/runner/work/mastra/mastra/deployers/vercel
3
3
  > tsup src/index.ts --format esm --experimental-dts --clean --treeshake
4
4
 
5
5
  CLI Building entry: src/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.3.6
8
8
  TSC Build start
9
- TSC ⚡️ Build success in 6604ms
9
+ TSC ⚡️ Build success in 5529ms
10
10
  DTS Build start
11
11
  CLI Target: es2022
12
12
  Analysis will use the bundled TypeScript version 5.7.3
13
13
  Writing package typings: /home/runner/work/mastra/mastra/deployers/vercel/dist/_tsup-dts-rollup.d.ts
14
- DTS ⚡️ Build success in 3992ms
14
+ DTS ⚡️ Build success in 4815ms
15
15
  CLI Cleaning output folder
16
16
  ESM Build start
17
- ESM dist/index.js 4.08 KB
18
- ESM ⚡️ Build success in 283ms
17
+ ESM dist/index.js 4.01 KB
18
+ ESM ⚡️ Build success in 239ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @mastra/deployer-vercel
2
2
 
3
+ ## 0.1.6-alpha.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [0d185b1]
8
+ - Updated dependencies [ed55f1d]
9
+ - Updated dependencies [80cdd76]
10
+ - Updated dependencies [8d13b14]
11
+ - Updated dependencies [3ee4831]
12
+ - Updated dependencies [108793c]
13
+ - Updated dependencies [5f28f44]
14
+ - @mastra/core@0.4.3-alpha.1
15
+ - @mastra/deployer@0.1.6-alpha.1
16
+
17
+ ## 0.1.6-alpha.0
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [06aa827]
22
+ - @mastra/core@0.4.3-alpha.0
23
+ - @mastra/deployer@0.1.6-alpha.0
24
+
3
25
  ## 0.1.5
4
26
 
5
27
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1,10 +1,8 @@
1
- import { Deployer } from '@mastra/deployer';
2
- import '@mastra/deployer/build';
3
- import '@rollup/plugin-virtual';
4
1
  import * as child_process from 'child_process';
5
2
  import { writeFileSync, readFileSync } from 'fs';
6
3
  import { join } from 'path';
7
4
  import process from 'process';
5
+ import { Deployer } from '@mastra/deployer';
8
6
 
9
7
  // src/index.ts
10
8
  var VercelDeployer = class extends Deployer {
@@ -48,7 +46,7 @@ var VercelDeployer = class extends Deployer {
48
46
  try {
49
47
  const projectJson = JSON.parse(readFileSync(projectJsonPath, "utf-8"));
50
48
  return projectJson.projectId;
51
- } catch (error) {
49
+ } catch {
52
50
  throw new Error("Could not find project ID. Make sure the project has been deployed first.");
53
51
  }
54
52
  }
@@ -0,0 +1,6 @@
1
+ import { createConfig } from '@internal/lint/eslint';
2
+
3
+ const config = await createConfig();
4
+
5
+ /** @type {import("eslint").Linter.Config[]} */
6
+ export default [...config];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer-vercel",
3
- "version": "0.1.5",
3
+ "version": "0.1.6-alpha.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -18,20 +18,23 @@
18
18
  "dependencies": {
19
19
  "@rollup/plugin-virtual": "^3.0.2",
20
20
  "fs-extra": "^11.2.0",
21
- "@mastra/core": "^0.4.2",
22
- "@mastra/deployer": "^0.1.5"
21
+ "@mastra/deployer": "^0.1.6-alpha.1",
22
+ "@mastra/core": "^0.4.3-alpha.1"
23
23
  },
24
24
  "devDependencies": {
25
+ "eslint": "^9.20.1",
25
26
  "@microsoft/api-extractor": "^7.49.2",
26
27
  "@types/node": "^22.13.1",
27
28
  "tsup": "^8.0.1",
28
29
  "typescript": "^5.7.3",
29
30
  "vercel": "^39.3.0",
30
- "vitest": "^3.0.4"
31
+ "vitest": "^3.0.4",
32
+ "@internal/lint": "0.0.0"
31
33
  },
32
34
  "scripts": {
33
35
  "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake",
34
36
  "build:watch": "pnpm build --watch",
35
- "test": "vitest run"
37
+ "test": "vitest run",
38
+ "lint": "eslint ."
36
39
  }
37
40
  }
package/src/index.ts CHANGED
@@ -1,11 +1,10 @@
1
- import { Deployer } from '@mastra/deployer';
2
- import { getBundler } from '@mastra/deployer/build';
3
- import virtual from '@rollup/plugin-virtual';
4
1
  import * as child_process from 'child_process';
5
2
  import { readFileSync, writeFileSync } from 'fs';
6
3
  import { join } from 'path';
7
4
  import process from 'process';
8
5
 
6
+ import { Deployer } from '@mastra/deployer';
7
+
9
8
  interface EnvVar {
10
9
  key: string;
11
10
  value: string;
@@ -63,7 +62,7 @@ export class VercelDeployer extends Deployer {
63
62
  try {
64
63
  const projectJson = JSON.parse(readFileSync(projectJsonPath, 'utf-8'));
65
64
  return projectJson.projectId;
66
- } catch (error) {
65
+ } catch {
67
66
  throw new Error('Could not find project ID. Make sure the project has been deployed first.');
68
67
  }
69
68
  }