fix web-types.json

pull/1170/head
Cory LaViska 2023-01-26 09:47:33 -05:00
rodzic 0793a219a2
commit 223ef32b70
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -9,6 +9,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti
## Next
- Fixed a bug in `<sl-animated-image>` 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

Wyświetl plik

@ -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');