Skip to content

Commit e829f7a

Browse files
committed
Fix apidocs generation
1 parent abe93b6 commit e829f7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/res/GenApiDocs.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let version = switch Fs.readFileSync(packagePath, ~encoding="utf8")->JSON.parseO
1515
| Object(dict{"version": JSON.String(version)}) => version
1616
| _ => JsError.panic("Invalid package.json format")
1717
}
18-
let version = Semver.parse(version)->Option.getExn
18+
let version = Semver.parse(version)->Option.getExn
1919
let version = Semver.toString({...version, preRelease: None}) // Remove pre-release identifiers for API docs
2020
let dirVersion = Path.join([Node.dirname, "apiDocs", version])
2121
if !Fs.existsSync(dirVersion) {
@@ -46,7 +46,7 @@ let env = Process.env
4646

4747
let docsDecoded = entryPointFiles->Array.map(libFile =>
4848
try {
49-
let entryPointFile = Path.join([Node.dirname, "..", "..", "runtime", libFile])
49+
let entryPointFile = Path.join([Node.dirname, "..", "..", "packages", "@rescript", "runtime", libFile])
5050

5151
let rescriptToolsPath = Path.join([Node.dirname, "..", "..", "cli", "rescript-tools.js"])
5252
let output = ChildProcess.execSync(

0 commit comments

Comments
 (0)