tangled
alpha
login
or
join now
seth.computer
/
sitebase
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
CLI build command
seth.computer
1 month ago
58d86eb3
9ba6e7b6
verified
This commit was signed with the committer's
known signature
.
seth.computer
SSH Key Fingerprint:
SHA256:utUtG8j2hgvZ0Rnm/rPJiqFu4NT5bjOnC26AUIBh500=
+18
-16
3 changed files
expand all
collapse all
unified
split
package.json
packages
cli
package.json
core
src
config.ts
+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
20
-
"import": "bun run scripts/import-content.ts"
20
20
+
"import": "bun run scripts/import-content.ts",
21
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
2
-
"name": "@sitebase/cli",
3
3
-
"type": "module",
4
4
-
"version": "0.0.1",
5
5
-
"bin": {
6
6
-
"sitebase": "./src/index.ts"
7
7
-
},
8
8
-
"scripts": {
9
9
-
"typecheck": "tsc --noEmit"
10
10
-
},
11
11
-
"dependencies": {
12
12
-
"@sitebase/core": "workspace:*",
13
13
-
"commander": "^12.1.0"
14
14
-
}
2
2
+
"name": "@sitebase/cli",
3
3
+
"type": "module",
4
4
+
"version": "0.0.1",
5
5
+
"bin": {
6
6
+
"sitebase": "./bin/sitebase"
7
7
+
},
8
8
+
"scripts": {
9
9
+
"typecheck": "tsc --noEmit",
10
10
+
"build": "bun build --target node --outfile ./bin/sitebase ./src/index.ts"
11
11
+
},
12
12
+
"dependencies": {
13
13
+
"@sitebase/core": "workspace:*",
14
14
+
"commander": "^12.1.0"
15
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
31
-
const module = await import(configUrl);
32
32
-
const config = module.default as ExportConfig;
31
31
+
const configModule = await import(configUrl);
32
32
+
const config = configModule.default as ExportConfig;
33
33
34
34
// Validate required fields
35
35
if (!config.publicationUri) {