Skip to content

Commit d5ea3d9

Browse files
authored
Copy catalog to website directory (SchemaStore#4765)
1 parent 7cf184a commit d5ea3d9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cli.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ async function taskBuildWebsite() {
11371137
<div role="main" id="main" class="container">
11381138
${body}
11391139
</div>
1140-
1140+
11411141
<footer role="contentinfo" class="container">
11421142
<p>Open source on <a href="https://github.com/schemastore/schemastore/">GitHub</a></p>
11431143
</footer>
@@ -1147,6 +1147,12 @@ async function taskBuildWebsite() {
11471147
</html>
11481148
`,
11491149
)
1150+
1151+
await fs.mkdir('./website/api/json', { recursive: true })
1152+
await fs.copyFile(
1153+
'./src/api/json/catalog.json',
1154+
'./website/api/json/catalog.json',
1155+
)
11501156
}
11511157

11521158
async function assertFileSystemIsValid() {

0 commit comments

Comments
 (0)