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:
parent
2ca5eac92b
commit
07b879bfd8
@ -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');
|
||||
});
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user