FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
browsercode/packages/opencode/script/build-node.ts at main · code2labgit/browsercode · GitHub
code2labgit
/
browsercode
Public
forked from
browser-use/browsercode
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
browsercode
/
packages
/
opencode
/
script
/
build-node.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
31 lines (25 loc) · 709 Bytes
Breadcrumbs
browsercode
/
packages
/
opencode
/
script
/
build-node.ts
Copy path
File metadata and controls
executable file
·
31 lines (25 loc) · 709 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bun
import
{
Script
}
from
"@opencode-ai/script"
import
path
from
"path"
import
{
fileURLToPath
}
from
"url"
const
__filename
=
fileURLToPath
(
import
.
meta
.
url
)
const
__dirname
=
path
.
dirname
(
__filename
)
const
dir
=
path
.
resolve
(
__dirname
,
".."
)
process
.
chdir
(
dir
)
const
generated
=
await
import
(
"./generate.ts"
)
await
Bun
.
build
(
{
target
:
"node"
,
entrypoints
:
[
"./src/node.ts"
]
,
outdir
:
"./dist/node"
,
format
:
"esm"
,
sourcemap
:
"linked"
,
external
:
[
"jsonc-parser"
,
"@lydell/node-pty"
]
,
define
:
{
OPENCODE_MODELS_DEV
:
generated
.
modelsData
,
OPENCODE_CHANNEL
:
`'
${
Script
.
channel
}
'`
,
}
,
files
:
{
"opencode-web-ui.gen.ts"
:
""
,
}
,
}
)
console
.
log
(
"Build complete"
)
Back
|
FazBrowse Home
|
New Git URL