Skip to content

Commit

Permalink
fix: fix schema ids to point at unpkg raw file
Browse files Browse the repository at this point in the history
  • Loading branch information
jedrichards committed Oct 18, 2019
1 parent 49e3b2f commit eebc490
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/assemble.mjs
Expand Up @@ -162,9 +162,10 @@ const assemble = async entry => {
const abstractSchemas = await gatherDefinitions('**/*abstract*.schema.yaml')
const pkg = (await import('../package.json')).default
const $schema = 'http://json-schema.org/draft-07/schema#'
const $id = `https://unpkg.com/browse/${pkg.name}@${
pkg.version
}/dist/${basename(entry, '.yaml')}.json`
const $id = `https://unpkg.com/${pkg.name}@${pkg.version}/dist/${basename(
entry,
'.yaml',
)}.json`
let output = {
...(await loadSchema(entry)),
$schema,
Expand Down

0 comments on commit eebc490

Please sign in to comment.