FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sim/scripts/check-openapi.ts at main · simstudioai/sim · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
simstudioai
/
sim
Public
Notifications
You must be signed in to change notification settings
Fork
3.8k
Star
29.5k
Code
Issues
119
Pull requests
194
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
sim
/
scripts
/
check-openapi.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (17 loc) · 571 Bytes
Breadcrumbs
sim
/
scripts
/
check-openapi.ts
Copy path
File metadata and controls
19 lines (17 loc) · 571 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
#!/usr/bin/env bun
import
{
spawnSync
}
from
'node:child_process'
import
path
from
'node:path'
const
ROOT
=
path
.
resolve
(
import
.
meta
.
dir
,
'..'
)
const
CHECKS
=
[
[
'run'
,
'scripts/generate-openapi.ts'
,
'--check'
]
,
[
'x'
,
'vitest'
,
'run'
,
'--config'
,
'scripts/openapi/vitest.config.ts'
]
,
[
'run'
,
'scripts/check-openapi-specs.ts'
]
,
]
as
const
for
(
const
args
of
CHECKS
)
{
const
result
=
spawnSync
(
process
.
execPath
,
args
,
{
cwd
:
ROOT
,
stdio
:
'inherit'
,
}
)
if
(
result
.
error
)
throw
result
.
error
if
(
result
.
status
!==
0
)
process
.
exit
(
result
.
status
??
1
)
}
Back
|
FazBrowse Home
|
New Git URL