this repo has no description

CLI build command

seth.computer 58d86eb3 9ba6e7b6

verified
+18 -16
+2 -1
package.json
··· 17 17 "lint": "biome lint packages/ --write", 18 18 "lint:check": "biome lint packages/", 19 19 "typecheck": "bun run --workspaces typecheck", 20 - "import": "bun run scripts/import-content.ts" 20 + "import": "bun run scripts/import-content.ts", 21 + "build:cli": "bun run --filter ./packages/cli build" 21 22 }, 22 23 "dependencies": { 23 24 "@atproto/api": "^0.18.16"
+14 -13
packages/cli/package.json
··· 1 1 { 2 - "name": "@sitebase/cli", 3 - "type": "module", 4 - "version": "0.0.1", 5 - "bin": { 6 - "sitebase": "./src/index.ts" 7 - }, 8 - "scripts": { 9 - "typecheck": "tsc --noEmit" 10 - }, 11 - "dependencies": { 12 - "@sitebase/core": "workspace:*", 13 - "commander": "^12.1.0" 14 - } 2 + "name": "@sitebase/cli", 3 + "type": "module", 4 + "version": "0.0.1", 5 + "bin": { 6 + "sitebase": "./bin/sitebase" 7 + }, 8 + "scripts": { 9 + "typecheck": "tsc --noEmit", 10 + "build": "bun build --target node --outfile ./bin/sitebase ./src/index.ts" 11 + }, 12 + "dependencies": { 13 + "@sitebase/core": "workspace:*", 14 + "commander": "^12.1.0" 15 + } 15 16 }
+2 -2
packages/core/src/config.ts
··· 28 28 configPath: string, 29 29 ): Promise<ExportConfig> { 30 30 const configUrl = pathToFileURL(configPath).href; 31 - const module = await import(configUrl); 32 - const config = module.default as ExportConfig; 31 + const configModule = await import(configUrl); 32 + const config = configModule.default as ExportConfig; 33 33 34 34 // Validate required fields 35 35 if (!config.publicationUri) {