@theholocron/holocron-plugin-vercel 5.0.0-alpha.554 → 5.0.0-alpha.555

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 CHANGED
@@ -30,7 +30,7 @@ export declare class VercelDeployment implements Deployment {
30
30
  listProjects(): Promise<DeploymentProject[]>;
31
31
  ensureProject(input: {
32
32
  name: string;
33
- framework?: string;
33
+ framework?: string | null;
34
34
  repo?: string;
35
35
  rootDirectory?: string;
36
36
  }): Promise<DeploymentProject>;
package/dist/index.mjs CHANGED
@@ -107,10 +107,13 @@ var VercelDeployment = class {
107
107
  }
108
108
  async ensureProject(input) {
109
109
  const existing = await this.getProjectByName(input.name);
110
- if (existing) return existing;
110
+ if (existing) {
111
+ if (input.framework !== void 0 && (existing.framework ?? null) !== input.framework) return mapProject(await this.client().projects.update(existing.id, { framework: input.framework }));
112
+ return existing;
113
+ }
111
114
  return mapProject(await this.client().projects.create({
112
115
  name: input.name,
113
- framework: input.framework ?? this.defaultFramework,
116
+ framework: input.framework === void 0 ? this.defaultFramework : input.framework,
114
117
  repo: input.repo,
115
118
  rootDirectory: input.rootDirectory
116
119
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-vercel",
3
- "version": "5.0.0-alpha.554",
3
+ "version": "5.0.0-alpha.555",
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": "^6.0.3",
42
42
  "vitest": "^5.1.1",
43
- "@theholocron/cli": "5.0.0-alpha.554",
43
+ "@theholocron/cli": "5.0.0-alpha.555",
44
44
  "@theholocron/eslint-config": "^8.9.0-alpha.24",
45
- "@theholocron/http-client": "^1.58.0-alpha.59",
45
+ "@theholocron/http-client": "^1.58.0-alpha.60",
46
46
  "@theholocron/misc-utils": "^1.17.0-alpha.8",
47
47
  "@theholocron/tsconfig": "^8.9.0-alpha.24",
48
48
  "@theholocron/tsdown-config": "^8.9.0-alpha.24",
49
- "@theholocron/vercel-client": "^1.58.0-alpha.59",
49
+ "@theholocron/vercel-client": "^1.58.0-alpha.60",
50
50
  "@theholocron/vitest-config": "^8.9.0-alpha.24"
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.554"
55
+ "@theholocron/cli": "5.0.0-alpha.555"
56
56
  },
57
57
  "peerDependenciesMeta": {
58
58
  "@theholocron/vercel-client": {}