@helloleo/plugins 0.2.10 → 0.2.11
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.js +1 -1
- package/package.json +1 -1
- package/src/tools/scaffold.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -24906,7 +24906,7 @@ var SCAFFOLD_TEMPLATES = {
|
|
|
24906
24906
|
};
|
|
24907
24907
|
var SCAFFOLD_VERSION = SCAFFOLD_TEMPLATES["tanstack-start"];
|
|
24908
24908
|
function resolveTemplateId() {
|
|
24909
|
-
const version3 = process.env.
|
|
24909
|
+
const version3 = process.env.PLUGINS_SCAFFOLD_VERSION;
|
|
24910
24910
|
const known = Object.values(SCAFFOLD_TEMPLATES);
|
|
24911
24911
|
if (version3 && known.includes(version3))
|
|
24912
24912
|
return version3;
|
package/package.json
CHANGED
package/src/tools/scaffold.ts
CHANGED
|
@@ -28,13 +28,13 @@ export type ScaffoldType = keyof typeof SCAFFOLD_TEMPLATES;
|
|
|
28
28
|
export const SCAFFOLD_VERSION = SCAFFOLD_TEMPLATES["tanstack-start"];
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* The container can pin the template via
|
|
31
|
+
* The container can pin the template via PLUGINS_SCAFFOLD_VERSION (a versioned
|
|
32
32
|
* template id, e.g. "tanstack-start-2026-06-18"). Unset or unknown values
|
|
33
33
|
* fall back to the tanstack-router template, so a stale env var can never
|
|
34
34
|
* reproduce the ENOENT-on-missing-template failure.
|
|
35
35
|
*/
|
|
36
36
|
export function resolveTemplateId(): string {
|
|
37
|
-
const version = process.env.
|
|
37
|
+
const version = process.env.PLUGINS_SCAFFOLD_VERSION;
|
|
38
38
|
const known: string[] = Object.values(SCAFFOLD_TEMPLATES);
|
|
39
39
|
if (version && known.includes(version)) return version;
|
|
40
40
|
return SCAFFOLD_TEMPLATES["tanstack-router"];
|
|
@@ -53,7 +53,7 @@ export function projectUuidFromDir(dir: string): string {
|
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* Integration-proxy base URL, provided by the opencode container via
|
|
56
|
-
* PLUGINS_INTEGRATION_PROXY_URL (like
|
|
56
|
+
* PLUGINS_INTEGRATION_PROXY_URL (like PLUGINS_SCAFFOLD_VERSION) so each deployment
|
|
57
57
|
* (dev | preprod | prod) bakes its own proxy host into proxy.ts at scaffold
|
|
58
58
|
* time -- previews and published apps use the same value. Unset falls back
|
|
59
59
|
* to prod so a missing env var can never break production scaffolds.
|