Carlos Cuesta 8fd367f259
Export gitmojis as CJS and ESM (#1280)
*  Install `unbuild` dependency
* 🚚 Rename `gitmojis.d.ts` to `index.d.ts`
*  Export `cjs` and `esm` with `unbuild`
* 👷 Add `build` step to publish action
* 🔧 Add `gitmojis` build output to turborepo config
* 🔧 Add `build` as a dependency for `lint`, `tscheck` and `build`
*  Add `assert { type: json }` for JSON imports
* 🧑‍💻 Watch changes on `gitmojis` to rebuild deps for website (#1282)

Co-authored-by: Vinícius Hoyer <contact@vhoyer.dev>
2023-01-18 19:33:43 +01:00

6 lines
189 B
JavaScript

import gitmojisJson from './gitmojis.json' assert { type: 'json' }
export { default as schema } from './schema.json' assert { type: 'json' }
export const gitmojis = gitmojisJson.gitmojis