1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-09-01 01:52:00 +02:00

Merge pull request #116 from adambrgmn/build-update

Update package exports and peer dependencies
This commit is contained in:
Michał Wolny
2021-04-10 16:14:40 +02:00
committed by GitHub
2 changed files with 6 additions and 4 deletions

View File

@@ -6,8 +6,10 @@
"url": "git+https://github.com/tabler/tabler-icons.git" "url": "git+https://github.com/tabler/tabler-icons.git"
}, },
"main": "./icons-react/dist/index.cjs.js", "main": "./icons-react/dist/index.cjs.js",
"exports": "./icons-react/dist/index.esm.js",
"module": "./icons-react/dist/index.esm.js", "module": "./icons-react/dist/index.esm.js",
"browser": "./icons-react/dist/index.umd.js", "unpkg": "./icons-react/dist/index.umd.js",
"umd:main": "./icons-react/dist/index.umd.js",
"types": "./icons-react/index.d.ts", "types": "./icons-react/index.d.ts",
"sideEffects": false, "sideEffects": false,
"author": "codecalm", "author": "codecalm",
@@ -97,7 +99,7 @@
} }
}, },
"peerDependencies": { "peerDependencies": {
"react": "^16.13.1", "react": "^16.x || 17.x",
"react-dom": "^16.13.1" "react-dom": "^16.x || 17.x"
} }
} }

View File

@@ -83,7 +83,7 @@ export default [
{ {
input, input,
output: { output: {
file: minifyExtension(pkg.browser), file: minifyExtension(pkg['umd:main']),
format: "umd", format: "umd",
sourcemap: true, sourcemap: true,
name: "tablerIcons", name: "tablerIcons",