mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-03-31 05:45:54 +08:00
add types
condition to the front of some exports
This commit is contained in:
parent
0698449d50
commit
c23495f6ab
@ -33,6 +33,7 @@
|
||||
"types": "./index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./index.d.ts",
|
||||
"module": "./index.mjs",
|
||||
"import": "./index.mjs",
|
||||
"require": "./index.js",
|
||||
@ -40,12 +41,14 @@
|
||||
"default": "./index.js"
|
||||
},
|
||||
"./index": {
|
||||
"types": "./index.d.ts",
|
||||
"module": "./index.mjs",
|
||||
"import": "./index.mjs",
|
||||
"require": "./index.js",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"./index.js": {
|
||||
"types": "./index.d.ts",
|
||||
"module": "./index.mjs",
|
||||
"import": "./index.mjs",
|
||||
"require": "./index.js",
|
||||
@ -70,4 +73,4 @@
|
||||
"scripts": {
|
||||
"postinstall": "node attribution.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -33,16 +33,19 @@
|
||||
"sideEffects": false,
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./index.d.ts",
|
||||
"import": "./index.mjs",
|
||||
"require": "./index.js",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"./index": {
|
||||
"types": "./index.d.ts",
|
||||
"import": "./index.mjs",
|
||||
"require": "./index.js",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"./index.js": {
|
||||
"types": "./index.d.ts",
|
||||
"import": "./index.mjs",
|
||||
"require": "./index.js",
|
||||
"default": "./index.js"
|
||||
@ -53,4 +56,4 @@
|
||||
"scripts": {
|
||||
"postinstall": "node attribution.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user