Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/init/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
src/lib/build-config.ts
.agents/
.claude/skills/
skills-lock.json
bin/
Binary file added packages/init/neon-init-0.14.0.tgz
Binary file not shown.
7 changes: 5 additions & 2 deletions packages/init/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@
"package.json"
],
"scripts": {
"build": "tsc --noEmit && tsdown",
"build": "node scripts/set-vsx-gallery.mjs && tsc --noEmit && tsdown",
"build:internal": "node scripts/set-vsx-gallery.mjs https://cursor-vsx-proxy.cloud.databricks.com/gallery && tsc --noEmit && tsdown",
"pretest": "node scripts/set-vsx-gallery.mjs",
"test": "vitest --passWithNoTests",
"test:ci": "vitest run --passWithNoTests",
"tsc": "tsc"
"tsc": "node scripts/set-vsx-gallery.mjs && tsc"
},
"devDependencies": {
"@types/node": "catalog:",
Expand All @@ -52,6 +54,7 @@
"@clack/prompts": "0.10.1",
"add-mcp": "^1.5.1",
"execa": "^9.5.2",
"picocolors": "^1.1.1",
"yargs": "^18.0.0",
"yoctocolors": "^2.1.2"
},
Expand Down
11 changes: 11 additions & 0 deletions packages/init/scripts/set-vsx-gallery.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Generates src/lib/build-config.ts with the VSX gallery URL baked in.
// Usage:
// node scripts/set-vsx-gallery.mjs → empty (external release)
// node scripts/set-vsx-gallery.mjs https://proxy.example.com/gallery → baked in (internal)
import { writeFileSync } from "node:fs";

const url = process.argv[2] || "";
writeFileSync(
"src/lib/build-config.ts",
`// Auto-generated by scripts/set-vsx-gallery.mjs — do not edit\nexport const INTERNAL_VSX_GALLERY = ${JSON.stringify(url)};\n`,
);
Loading