2
0
mirror of https://github.com/iconify/iconify.git synced 2024-11-09 23:00:56 +00:00

Fix main entry in library builder

This commit is contained in:
Vjacheslav Trushkin 2021-11-06 22:53:42 +02:00
parent ee240278fa
commit 3863a7e2fa
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
"name": "@iconify/library-builder",
"description": "Build script to compile TypeScript files to both ES and CommonJS modules.",
"author": "Vjacheslav Trushkin",
"version": "1.0.3",
"version": "1.0.4",
"license": "MIT",
"bugs": "https://github.com/iconify/iconify/issues",
"homepage": "https://iconify.design/",

View File

@ -29,7 +29,7 @@ export async function updatePackageJSON(
'./*': './*',
};
if (packageData.main && packageData.module) {
data['./'] = {
data['.'] = {
require: formatExport(packageData.main),
import: formatExport(packageData.module),
};