Skip to content

Commit

Permalink
feature: update build to include sample rest file (#17)
Browse files Browse the repository at this point in the history
* feature: update build to include sample rest file

* fix
  • Loading branch information
levivilet authored Jan 13, 2025
1 parent c5eb220 commit a26a378
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/build/src/build-static.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,8 @@ const extensionJson = JSON.parse(extensionJsonContent)
extensionJson.webViews[0].path = `${commitHash}/extensions/${extensionJson.id}/${extensionJson.webViews[0].path}`
extensionJson.webViews[0].remotePath = `${pathPrefix}/${commitHash}/extensions/${extensionJson.id}`
await writeFile(webViewsPath, JSON.stringify(extensionJson.webViews, null, 2) + '\n')

const fileMapPath = join(root, 'dist', commitHash, 'config', 'fileMap.json')
await writeFile(fileMapPath, JSON.stringify(['/playground/index.rest']))

await writeFile(join(root, 'dist', commitHash, 'playground', 'index.rest'), `GET https://example.com`)

0 comments on commit a26a378

Please sign in to comment.