Skip to content

Commit

Permalink
Make sure micro set is actually generated for React + Vue
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Dec 18, 2023
1 parent ec6d82a commit 74fdac4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,18 +204,23 @@ async function main(package) {
console.log(`Building ${package} package...`)

await Promise.all([
rimraf(`./${package}/16/solid/*`),
rimraf(`./${package}/20/solid/*`),
rimraf(`./${package}/24/outline/*`),
rimraf(`./${package}/24/solid/*`),
])

await Promise.all([
buildIcons(package, '16/solid', 'cjs'),
buildIcons(package, '16/solid', 'esm'),
buildIcons(package, '20/solid', 'cjs'),
buildIcons(package, '20/solid', 'esm'),
buildIcons(package, '24/outline', 'cjs'),
buildIcons(package, '24/outline', 'esm'),
buildIcons(package, '24/solid', 'cjs'),
buildIcons(package, '24/solid', 'esm'),
ensureWriteJson(`./${package}/16/solid/esm/package.json`, esmPackageJson),
ensureWriteJson(`./${package}/16/solid/package.json`, cjsPackageJson),
ensureWriteJson(`./${package}/20/solid/esm/package.json`, esmPackageJson),
ensureWriteJson(`./${package}/20/solid/package.json`, cjsPackageJson),
ensureWriteJson(`./${package}/24/outline/esm/package.json`, esmPackageJson),
Expand All @@ -226,7 +231,7 @@ async function main(package) {

let packageJson = JSON.parse(await fs.readFile(`./${package}/package.json`, 'utf8'))

packageJson.exports = await buildExports(['20/solid', '24/outline', '24/solid'])
packageJson.exports = await buildExports(['16/solid', '20/solid', '24/outline', '24/solid'])

await ensureWriteJson(`./${package}/package.json`, packageJson)

Expand Down

0 comments on commit 74fdac4

Please sign in to comment.