@theholocron/vercel-client 1.6.2 → 1.6.4
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/README.md +10 -10
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -14,8 +14,8 @@ pnpm add @theholocron/vercel-client
|
|
|
14
14
|
import { createVercelClient } from "@theholocron/vercel-client";
|
|
15
15
|
|
|
16
16
|
const vercel = createVercelClient({
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
token: process.env.VERCEL_TOKEN!,
|
|
18
|
+
teamId: process.env.VERCEL_TEAM_ID, // optional; appended to every request
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
// Get the authenticated user
|
|
@@ -29,14 +29,14 @@ const project = await vercel.projects.get("my-app");
|
|
|
29
29
|
|
|
30
30
|
// Create a project
|
|
31
31
|
const created = await vercel.projects.create({
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
name: "my-app",
|
|
33
|
+
framework: "nextjs",
|
|
34
|
+
repo: "org/repo",
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
// Update project settings
|
|
38
38
|
await vercel.projects.update("project-id", {
|
|
39
|
-
|
|
39
|
+
previewDeploymentsDisabled: true,
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
// List env vars
|
|
@@ -47,10 +47,10 @@ await vercel.env.set("project-id", "production", "API_URL", "https://api.example
|
|
|
47
47
|
|
|
48
48
|
// Trigger a deployment
|
|
49
49
|
const deployment = await vercel.deployments.trigger({
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
projectName: "my-app",
|
|
51
|
+
branch: "main",
|
|
52
|
+
repoId: project.link?.repoId!,
|
|
53
|
+
target: "production",
|
|
54
54
|
});
|
|
55
55
|
|
|
56
56
|
// Poll deployment status
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/vercel-client",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"description": "A TypeScript client for the Vercel API",
|
|
5
5
|
"homepage": "https://github.com/theholocron/clients/tree/main/packages/vercel-client#readme",
|
|
6
6
|
"bugs": "https://github.com/theholocron/clients/issues",
|
|
@@ -30,20 +30,20 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@theholocron/http-client": "^1.6.
|
|
33
|
+
"@theholocron/http-client": "^1.6.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^26.1.2",
|
|
37
|
-
"@theholocron/eslint-config": "^7.
|
|
38
|
-
"@theholocron/tsconfig": "^7.
|
|
39
|
-
"@theholocron/tsdown-config": "^7.
|
|
40
|
-
"@theholocron/vitest-config": "^7.
|
|
37
|
+
"@theholocron/eslint-config": "^7.15.0",
|
|
38
|
+
"@theholocron/tsconfig": "^7.15.0",
|
|
39
|
+
"@theholocron/tsdown-config": "^7.15.0",
|
|
40
|
+
"@theholocron/vitest-config": "^7.15.0",
|
|
41
41
|
"@vitest/coverage-v8": "^4.1.10",
|
|
42
42
|
"@vitest/eslint-plugin": "^1.6.25",
|
|
43
|
-
"eslint": "^10.8.
|
|
44
|
-
"eslint-plugin-n": "^18.
|
|
43
|
+
"eslint": "^10.8.1",
|
|
44
|
+
"eslint-plugin-n": "^18.3.0",
|
|
45
45
|
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
46
|
-
"globals": "^17.
|
|
46
|
+
"globals": "^17.9.0",
|
|
47
47
|
"tsdown": "^0.22.14",
|
|
48
48
|
"typescript": "^5.9.3",
|
|
49
49
|
"vitest": "^4.1.10"
|