@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.
- package/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +22 -0
- package/dist/index.js +2 -4
- package/eslint.config.js +6 -0
- package/package.json +8 -5
- package/src/index.ts +3 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/deployer-vercel@0.1.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.3.6
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 5529ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[34mCLI[39m Target: es2022
|
|
12
12
|
Analysis will use the bundled TypeScript version 5.7.3
|
|
13
13
|
[36mWriting package typings: /home/runner/work/mastra/mastra/deployers/vercel/dist/_tsup-dts-rollup.d.ts[39m
|
|
14
|
-
[32mDTS[39m ⚡️ Build success in
|
|
14
|
+
[32mDTS[39m ⚡️ Build success in 4815ms
|
|
15
15
|
[34mCLI[39m Cleaning output folder
|
|
16
16
|
[34mESM[39m Build start
|
|
17
|
-
[32mESM[39m [1mdist/index.js [22m[32m4.
|
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
|
17
|
+
[32mESM[39m [1mdist/index.js [22m[32m4.01 KB[39m
|
|
18
|
+
[32mESM[39m ⚡️ 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
|
|
49
|
+
} catch {
|
|
52
50
|
throw new Error("Could not find project ID. Make sure the project has been deployed first.");
|
|
53
51
|
}
|
|
54
52
|
}
|
package/eslint.config.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer-vercel",
|
|
3
|
-
"version": "0.1.
|
|
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/
|
|
22
|
-
"@mastra/
|
|
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
|
|
65
|
+
} catch {
|
|
67
66
|
throw new Error('Could not find project ID. Make sure the project has been deployed first.');
|
|
68
67
|
}
|
|
69
68
|
}
|