2
0
mirror of https://github.com/iconify/iconify.git synced 2024-09-28 13:09:07 +00:00

chore(react): add .d.mts files

This commit is contained in:
Vjacheslav Trushkin 2024-05-24 17:26:41 +03:00
parent 2ca5eac92b
commit 07b879bfd8
2 changed files with 7 additions and 1 deletions

View File

@ -6,6 +6,7 @@ const text = "'use client'";
// List of files to fix
['iconify', 'offline'].forEach((prefix) => {
// Add 'use client' to files
['js', 'cjs', 'mjs'].forEach((ext) => {
const file = `dist/${prefix}.${ext}`;
try {
@ -18,4 +19,9 @@ const text = "'use client'";
//
}
});
// Copy .d.ts to .d.mts
const source = `dist/${prefix}.d.ts`;
const target = `dist/${prefix}.d.mts`;
writeFileSync(target, readFileSync(source, 'utf8'), 'utf8');
});

View File

@ -2,7 +2,7 @@
"name": "@iconify/react",
"description": "Iconify icon component for React.",
"author": "Vjacheslav Trushkin",
"version": "5.0.0-beta.3",
"version": "5.0.0-beta.4",
"publishConfig": {
"access": "public",
"tag": "next"