@theholocron/holocron-plugin-netlify 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 +4 -4
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Netlify plugin for [Holocron](../cli). Implements the
|
|
6
6
|
`deployment` capability against [`@theholocron/netlify-client`](https://github.com/theholocron/holocron/tree/alpha/clients/netlify-client),
|
|
7
|
-
plus exports `verifyToken` + `AUTH_HINT` for use by `holocron
|
|
7
|
+
plus exports `verifyToken` + `AUTH_HINT` for use by `holocron check token`.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -27,8 +27,8 @@ Token resolution order (matches the standard 4-step precedence set by
|
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
29
|
# Generate a Netlify API token (see vendor docs), then:
|
|
30
|
-
holocron
|
|
31
|
-
holocron
|
|
30
|
+
holocron new token netlify <TOKEN>
|
|
31
|
+
holocron check token netlify # verify
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
## Config
|
|
@@ -57,7 +57,7 @@ Plugin options, via the tuple form:
|
|
|
57
57
|
// Non-secret identifier, safe to commit (same status as
|
|
58
58
|
// Vercel's teamId / Cloudflare's accountId elsewhere in this org).
|
|
59
59
|
"accountId": "6ac41cd9a87355ef3d13d261",
|
|
60
|
-
// Custom domain `holocron
|
|
60
|
+
// Custom domain `holocron setup` attaches to the site.
|
|
61
61
|
"domain": "sentinel.theholocron.dev",
|
|
62
62
|
},
|
|
63
63
|
],
|
package/dist/index.d.mts
CHANGED
|
@@ -16,7 +16,7 @@ interface NetlifyDeploymentOptions {
|
|
|
16
16
|
* scoped to `/accounts/{account_id}/env`, by id — not slug).
|
|
17
17
|
*/
|
|
18
18
|
accountId?: string;
|
|
19
|
-
/** Custom domain `holocron
|
|
19
|
+
/** Custom domain `holocron setup` should attach to the site. */
|
|
20
20
|
domain?: string;
|
|
21
21
|
}
|
|
22
22
|
/** `deployment` capability for Netlify, where a Holocron project is a Netlify site. */
|
|
@@ -108,7 +108,7 @@ export declare function createPlugin(options: NetlifyPluginOptions): {
|
|
|
108
108
|
};
|
|
109
109
|
};
|
|
110
110
|
/**
|
|
111
|
-
* One-line hint printed by `holocron
|
|
111
|
+
* One-line hint printed by `holocron new token netlify` when no token is
|
|
112
112
|
* supplied or the supplied token is rejected.
|
|
113
113
|
*/
|
|
114
114
|
export declare const AUTH_HINT: string;
|
package/dist/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ const resolveToken = createResolveToken({
|
|
|
8
8
|
envName: "HOLOCRON_NETLIFY_TOKEN",
|
|
9
9
|
vendorEnvName: "NETLIFY_AUTH_TOKEN",
|
|
10
10
|
keyringService: "netlify",
|
|
11
|
-
errorMessage: "no Netlify token found. Pass --token <TOKEN>, set HOLOCRON_NETLIFY_TOKEN / NETLIFY_AUTH_TOKEN, or run: holocron
|
|
11
|
+
errorMessage: "no Netlify token found. Pass --token <TOKEN>, set HOLOCRON_NETLIFY_TOKEN / NETLIFY_AUTH_TOKEN, or run: holocron new token netlify <TOKEN>"
|
|
12
12
|
});
|
|
13
13
|
/** Every token this plugin takes, for `holocron doctor tokens`. */
|
|
14
14
|
const tokens = [resolveToken.token];
|
|
@@ -196,8 +196,8 @@ function createPlugin(options) {
|
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
198
|
/**
|
|
199
|
-
* One-line hint printed by `holocron
|
|
199
|
+
* One-line hint printed by `holocron new token netlify` when no token is
|
|
200
200
|
* supplied or the supplied token is rejected.
|
|
201
201
|
*/
|
|
202
|
-
const AUTH_HINT = "generate a Netlify Personal Access Token at https://app.netlify.com/user/applications#personal-access-tokens, then run: holocron
|
|
202
|
+
const AUTH_HINT = "generate a Netlify Personal Access Token at https://app.netlify.com/user/applications#personal-access-tokens, then run: holocron new token netlify <TOKEN>";
|
|
203
203
|
export { AUTH_HINT, AuthError, NetlifyDeployment, createContext, createPlugin, deployment, resolveToken, tokens, verifyToken };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-netlify",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.424",
|
|
4
4
|
"description": "Holocron plugin for Netlify. Implements the deployment capability against Netlify's REST API, plus exports verifyToken + AUTH_HINT for `holocron auth`.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deployment",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
"tsx": "4.23.15",
|
|
39
39
|
"typescript": "^5.9.3",
|
|
40
40
|
"vitest": "^5.1.0",
|
|
41
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
42
|
-
"@theholocron/http-client": "^1.58.0-alpha.
|
|
43
|
-
"@theholocron/tsconfig": "^8.9.0-alpha.16",
|
|
41
|
+
"@theholocron/cli": "5.0.0-alpha.424",
|
|
42
|
+
"@theholocron/http-client": "^1.58.0-alpha.29",
|
|
44
43
|
"@theholocron/misc-utils": "^1.17.0-alpha.4",
|
|
45
|
-
"@theholocron/
|
|
44
|
+
"@theholocron/tsconfig": "^8.9.0-alpha.17",
|
|
45
|
+
"@theholocron/netlify-client": "^1.58.0-alpha.29"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@theholocron/misc-utils": "^1.16.0",
|
|
49
49
|
"@theholocron/netlify-client": "^1.43.0",
|
|
50
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
50
|
+
"@theholocron/cli": "5.0.0-alpha.424"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
53
53
|
"@theholocron/netlify-client": {}
|