@theholocron/holocron-plugin-vercel 5.0.0-alpha.422 → 5.0.0-alpha.424
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 +3 -3
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Token resolution order:
|
|
|
23
23
|
2. `HOLOCRON_VERCEL_TOKEN` env var
|
|
24
24
|
3. `VERCEL_TOKEN` env var (the default the Vercel CLI also reads)
|
|
25
25
|
4. Keyring `vercel.<org>` — tried first when an org is active via `--org`, `HOLOCRON_ORG`, or `org` in `holocron.config.ts`
|
|
26
|
-
5. Keyring `vercel` — unnamespaced fallback; set via `holocron
|
|
26
|
+
5. Keyring `vercel` — unnamespaced fallback; set via `holocron new token vercel <token>`
|
|
27
27
|
|
|
28
28
|
If none are set, the plugin throws a clear error. No `vercel auth`
|
|
29
29
|
fallback — Vercel's CLI auth is per-account and the scopes don't
|
|
@@ -78,9 +78,9 @@ Capability covers:
|
|
|
78
78
|
ownership state, returning a per-project CNAME target — never a
|
|
79
79
|
fixed well-known host — only when DNS isn't already configured. The
|
|
80
80
|
returned DNS record is handed to the configured `dns` provider by
|
|
81
|
-
`holocron
|
|
81
|
+
`holocron setup`.
|
|
82
82
|
|
|
83
|
-
Declare the production domain in the Vercel provider options. On `holocron
|
|
83
|
+
Declare the production domain in the Vercel provider options. On `holocron setup`,
|
|
84
84
|
the domain is attached to the project and any Vercel verification CNAME is
|
|
85
85
|
upserted through the configured DNS provider:
|
|
86
86
|
|
package/dist/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const tokens: PluginToken[];
|
|
|
7
7
|
interface DeploymentOptions {
|
|
8
8
|
/** Optional framework hint passed to project creates. Defaults to "nextjs". */
|
|
9
9
|
defaultFramework?: string;
|
|
10
|
-
/** Custom domain that `holocron
|
|
10
|
+
/** Custom domain that `holocron setup` should attach to this project. */
|
|
11
11
|
domain?: string;
|
|
12
12
|
}
|
|
13
13
|
/** The `deployment` capability for Vercel: projects, environment variables, deployments, functions and custom domains. */
|
|
@@ -57,7 +57,7 @@ export declare class VercelDeployment implements Deployment {
|
|
|
57
57
|
* `misconfigured` + a `recommendedCNAME`, per-project, never a fixed
|
|
58
58
|
* well-known host — always read it from this response, never
|
|
59
59
|
* hardcode it. Returned as a `DnsRecordRequest` — the caller (e.g.
|
|
60
|
-
* `holocron
|
|
60
|
+
* `holocron setup`'s custom-domain step) hands it straight to
|
|
61
61
|
* `dns.upsertRecord()`, same as `Wiki.dnsRecord()` already does for
|
|
62
62
|
* the wiki's own domain.
|
|
63
63
|
*/
|
|
@@ -83,7 +83,7 @@ export interface VercelPluginOptions extends ResolveTokenInput {
|
|
|
83
83
|
teamId?: string;
|
|
84
84
|
/** Default framework slug for new project creates. Defaults to "nextjs". */
|
|
85
85
|
defaultFramework?: string;
|
|
86
|
-
/** Custom domain that `holocron
|
|
86
|
+
/** Custom domain that `holocron setup` should attach to the Vercel project. */
|
|
87
87
|
domain?: string;
|
|
88
88
|
/** Override base URL for tests. */
|
|
89
89
|
baseUrl?: string;
|
|
@@ -112,7 +112,7 @@ export declare function createPlugin(options?: VercelPluginOptions): {
|
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
114
|
/**
|
|
115
|
-
* One-line hint printed by `holocron
|
|
115
|
+
* One-line hint printed by `holocron new token vercel` when no token
|
|
116
116
|
* is supplied or the supplied token is rejected.
|
|
117
117
|
*/
|
|
118
118
|
export declare const AUTH_HINT: string;
|
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ const resolveToken = createResolveToken({
|
|
|
7
7
|
envName: "HOLOCRON_VERCEL_TOKEN",
|
|
8
8
|
vendorEnvName: "VERCEL_TOKEN",
|
|
9
9
|
keyringService: "vercel",
|
|
10
|
-
errorMessage: "no Vercel token found. Pass --token <PAT>, set HOLOCRON_VERCEL_TOKEN / VERCEL_TOKEN, or run: holocron
|
|
10
|
+
errorMessage: "no Vercel token found. Pass --token <PAT>, set HOLOCRON_VERCEL_TOKEN / VERCEL_TOKEN, or run: holocron new token vercel <PAT>"
|
|
11
11
|
});
|
|
12
12
|
/** Every token this plugin takes, for `holocron doctor tokens`. */
|
|
13
13
|
const tokens = [resolveToken.token];
|
|
@@ -104,7 +104,7 @@ var VercelDeployment = class {
|
|
|
104
104
|
* `misconfigured` + a `recommendedCNAME`, per-project, never a fixed
|
|
105
105
|
* well-known host — always read it from this response, never
|
|
106
106
|
* hardcode it. Returned as a `DnsRecordRequest` — the caller (e.g.
|
|
107
|
-
* `holocron
|
|
107
|
+
* `holocron setup`'s custom-domain step) hands it straight to
|
|
108
108
|
* `dns.upsertRecord()`, same as `Wiki.dnsRecord()` already does for
|
|
109
109
|
* the wiki's own domain.
|
|
110
110
|
*/
|
|
@@ -268,8 +268,8 @@ function createPlugin(options = {}) {
|
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
270
|
/**
|
|
271
|
-
* One-line hint printed by `holocron
|
|
271
|
+
* One-line hint printed by `holocron new token vercel` when no token
|
|
272
272
|
* is supplied or the supplied token is rejected.
|
|
273
273
|
*/
|
|
274
|
-
const AUTH_HINT = "generate a Vercel Personal Access Token at https://vercel.com/account/tokens (scope: Full Account for team ops), then run: holocron
|
|
274
|
+
const AUTH_HINT = "generate a Vercel Personal Access Token at https://vercel.com/account/tokens (scope: Full Account for team ops), then run: holocron new token vercel <PAT>";
|
|
275
275
|
export { AUTH_HINT, AuthError, VercelDeployment, createContext, createPlugin, createVercelClient, deployment, resolveToken, tokens, verifyToken };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-vercel",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.424",
|
|
4
4
|
"description": "Holocron plugin for Vercel. Implements the deployment capability against the Vercel REST API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deployment",
|
|
@@ -40,19 +40,19 @@
|
|
|
40
40
|
"tsx": "4.23.15",
|
|
41
41
|
"typescript": "^5.9.3",
|
|
42
42
|
"vitest": "^5.1.0",
|
|
43
|
-
"@theholocron/
|
|
44
|
-
"@theholocron/
|
|
45
|
-
"@theholocron/tsconfig": "^8.9.0-alpha.16",
|
|
46
|
-
"@theholocron/tsdown-config": "^8.9.0-alpha.16",
|
|
43
|
+
"@theholocron/cli": "5.0.0-alpha.424",
|
|
44
|
+
"@theholocron/eslint-config": "^8.9.0-alpha.17",
|
|
47
45
|
"@theholocron/misc-utils": "^1.17.0-alpha.4",
|
|
48
|
-
"@theholocron/
|
|
49
|
-
"@theholocron/
|
|
50
|
-
"@theholocron/
|
|
46
|
+
"@theholocron/vercel-client": "^1.58.0-alpha.29",
|
|
47
|
+
"@theholocron/vitest-config": "^8.9.0-alpha.17",
|
|
48
|
+
"@theholocron/tsdown-config": "^8.9.0-alpha.17",
|
|
49
|
+
"@theholocron/tsconfig": "^8.9.0-alpha.17",
|
|
50
|
+
"@theholocron/http-client": "^1.58.0-alpha.29"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@theholocron/misc-utils": "^1.16.0",
|
|
54
54
|
"@theholocron/vercel-client": "^1.43.1",
|
|
55
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
55
|
+
"@theholocron/cli": "5.0.0-alpha.424"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"@theholocron/vercel-client": {}
|