@theholocron/holocron-plugin-netlify 5.0.0-alpha.269 → 5.0.0-alpha.271
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/dist/index.d.mts +4 -2
- package/dist/index.mjs +3 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { AuthError, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, DnsRecordRequest, ResolveTokenInput, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess } from "@theholocron/cli";
|
|
1
|
+
import { AuthError, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, DnsRecordRequest, PluginToken, ResolveTokenInput, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess } from "@theholocron/cli";
|
|
2
2
|
import { NetlifyClient } from "@theholocron/netlify-client";
|
|
3
|
-
export declare const resolveToken: (
|
|
3
|
+
export declare const resolveToken: import("@theholocron/cli").TokenResolver;
|
|
4
|
+
/** Every token this plugin takes, for `holocron doctor tokens`. */
|
|
5
|
+
export declare const tokens: PluginToken[];
|
|
4
6
|
interface NetlifyDeploymentOptions {
|
|
5
7
|
/**
|
|
6
8
|
* Required for `ensureProject` / `listProjects` (create/list use
|
package/dist/index.mjs
CHANGED
|
@@ -9,6 +9,8 @@ const resolveToken = createResolveToken({
|
|
|
9
9
|
keyringService: "netlify",
|
|
10
10
|
errorMessage: "no Netlify token found. Pass --token <TOKEN>, set HOLOCRON_NETLIFY_TOKEN / NETLIFY_AUTH_TOKEN, or run: holocron auth set netlify <TOKEN>"
|
|
11
11
|
});
|
|
12
|
+
/** Every token this plugin takes, for `holocron doctor tokens`. */
|
|
13
|
+
const tokens = [resolveToken.token];
|
|
12
14
|
// src/capabilities/deployment.ts
|
|
13
15
|
const TERMINAL_READY = /* @__PURE__ */ new Set(["ready", "current"]);
|
|
14
16
|
const TERMINAL_ERROR = /* @__PURE__ */ new Set(["error"]);
|
|
@@ -186,4 +188,4 @@ function createPlugin(options) {
|
|
|
186
188
|
* supplied or the supplied token is rejected.
|
|
187
189
|
*/
|
|
188
190
|
const AUTH_HINT = "generate a Netlify Personal Access Token at https://app.netlify.com/user/applications#personal-access-tokens, then run: holocron auth set netlify <TOKEN>";
|
|
189
|
-
export { AUTH_HINT, AuthError, NetlifyDeployment, createContext, createPlugin, deployment, resolveToken, verifyToken };
|
|
191
|
+
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.271",
|
|
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.0.5",
|
|
41
|
+
"@theholocron/http-client": "^1.58.0-alpha.2",
|
|
41
42
|
"@theholocron/misc-utils": "^1.16.1-alpha.1",
|
|
42
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
43
|
-
"@theholocron/netlify-client": "^1.58.0-alpha.2",
|
|
43
|
+
"@theholocron/cli": "5.0.0-alpha.271",
|
|
44
44
|
"@theholocron/tsconfig": "^8.9.0-alpha.3",
|
|
45
|
-
"@theholocron/
|
|
45
|
+
"@theholocron/netlify-client": "^1.58.0-alpha.2"
|
|
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.271"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
53
53
|
"@theholocron/netlify-client": {}
|