diff --git a/docs/resources/changelog.md b/docs/resources/changelog.md index 40446091..8fdfe439 100644 --- a/docs/resources/changelog.md +++ b/docs/resources/changelog.md @@ -9,6 +9,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti ## Next - Fixed a bug in `` where the play and pause buttons were transposed [#1147](https://github.com/shoelace-style/shoelace/issues/1147) +- Fixed a bug that prevented `web-types.json` from being generated [#1154](https://github.com/shoelace-style/shoelace/discussions/1154) ## 2.0.0 diff --git a/scripts/make-web-types.js b/scripts/make-web-types.js index 25d468ca..4e0c6c74 100644 --- a/scripts/make-web-types.js +++ b/scripts/make-web-types.js @@ -64,6 +64,7 @@ const jsonataExprString = `{ // Run the conversion const expression = jsonata(jsonataExprString); +const result = await expression.evaluate(metadata); console.log('Generating web types'); -fs.writeFileSync(path.join(outdir, 'web-types.json'), JSON.stringify(expression.evaluate(metadata), null, 2), 'utf8'); +fs.writeFileSync(path.join(outdir, 'web-types.json'), JSON.stringify(result, null, 2), 'utf8');