Skip to content

Commit 2a368d1

Browse files
authoredJul 18, 2022
fix(package.json): fix exports (#745)
1 parent 876b1e2 commit 2a368d1

File tree

16 files changed

+128
-33
lines changed

16 files changed

+128
-33
lines changed
 

‎packages/babel-plugin-add-jsx-attribute/package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"description": "Add JSX attribute",
44
"version": "6.0.0",
55
"main": "./dist/index.js",
6-
"exports": "./dist/index.js",
7-
"typings": "./dist/index.d.ts",
6+
"types": "./dist/index.d.ts",
7+
"exports": {
8+
".": {
9+
"require": "./dist/index.js",
10+
"types": "./dist/index.d.ts"
11+
},
12+
"./package.json": "./package.json"
13+
},
814
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-add-jsx-attribute",
915
"author": "Greg Bergé <berge.greg@gmail.com>",
1016
"publishConfig": {

‎packages/babel-plugin-remove-jsx-attribute/package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"description": "Remove JSX attribute",
44
"version": "6.0.0",
55
"main": "./dist/index.js",
6-
"exports": "./dist/index.js",
7-
"typings": "./dist/index.d.ts",
6+
"types": "./dist/index.d.ts",
7+
"exports": {
8+
".": {
9+
"require": "./dist/index.js",
10+
"types": "./dist/index.d.ts"
11+
},
12+
"./package.json": "./package.json"
13+
},
814
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-remove-jsx-attribute",
915
"author": "Greg Bergé <berge.greg@gmail.com>",
1016
"publishConfig": {

‎packages/babel-plugin-remove-jsx-empty-expression/package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"description": "Remove JSX empty expression",
44
"version": "6.0.0",
55
"main": "./dist/index.js",
6-
"exports": "./dist/index.js",
7-
"typings": "./dist/index.d.ts",
6+
"types": "./dist/index.d.ts",
7+
"exports": {
8+
".": {
9+
"require": "./dist/index.js",
10+
"types": "./dist/index.d.ts"
11+
},
12+
"./package.json": "./package.json"
13+
},
814
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-remove-jsx-empty-expression",
915
"author": "Greg Bergé <berge.greg@gmail.com>",
1016
"publishConfig": {

‎packages/babel-plugin-replace-jsx-attribute-value/package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"description": "Replace JSX attribute value",
44
"version": "6.0.0",
55
"main": "./dist/index.js",
6-
"exports": "./dist/index.js",
7-
"typings": "./dist/index.d.ts",
6+
"types": "./dist/index.d.ts",
7+
"exports": {
8+
".": {
9+
"require": "./dist/index.js",
10+
"types": "./dist/index.d.ts"
11+
},
12+
"./package.json": "./package.json"
13+
},
814
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-replace-jsx-attribute-value",
915
"author": "Greg Bergé <berge.greg@gmail.com>",
1016
"publishConfig": {

‎packages/babel-plugin-svg-dynamic-title/package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"description": "Transform SVG by adding a dynamic title element",
44
"version": "6.0.0",
55
"main": "./dist/index.js",
6-
"exports": "./dist/index.js",
7-
"typings": "./dist/index.d.ts",
6+
"types": "./dist/index.d.ts",
7+
"exports": {
8+
".": {
9+
"require": "./dist/index.js",
10+
"types": "./dist/index.d.ts"
11+
},
12+
"./package.json": "./package.json"
13+
},
814
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-svg-dynamic-title",
915
"author": "Greg Bergé <berge.greg@gmail.com>",
1016
"publishConfig": {

‎packages/babel-plugin-svg-em-dimensions/package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"description": "Transform SVG to use em-based dimensions",
44
"version": "6.0.0",
55
"main": "./dist/index.js",
6-
"exports": "./dist/index.js",
7-
"typings": "./dist/index.d.ts",
6+
"types": "./dist/index.d.ts",
7+
"exports": {
8+
".": {
9+
"require": "./dist/index.js",
10+
"types": "./dist/index.d.ts"
11+
},
12+
"./package.json": "./package.json"
13+
},
814
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-svg-em-dimensions",
915
"author": "Greg Bergé <berge.greg@gmail.com>",
1016
"publishConfig": {

‎packages/babel-plugin-transform-react-native-svg/package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"description": "Transform DOM elements into react-native-svg components",
44
"version": "6.0.0",
55
"main": "./dist/index.js",
6-
"exports": "./dist/index.js",
7-
"typings": "./dist/index.d.ts",
6+
"types": "./dist/index.d.ts",
7+
"exports": {
8+
".": {
9+
"require": "./dist/index.js",
10+
"types": "./dist/index.d.ts"
11+
},
12+
"./package.json": "./package.json"
13+
},
814
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-transform-react-native-svg",
915
"author": "Greg Bergé <berge.greg@gmail.com>",
1016
"publishConfig": {

‎packages/babel-plugin-transform-svg-component/package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"description": "Transform SVG into component",
44
"version": "6.2.0",
55
"main": "./dist/index.js",
6-
"exports": "./dist/index.js",
7-
"typings": "./dist/index.d.ts",
6+
"types": "./dist/index.d.ts",
7+
"exports": {
8+
".": {
9+
"require": "./dist/index.js",
10+
"types": "./dist/index.d.ts"
11+
},
12+
"./package.json": "./package.json"
13+
},
814
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-transform-svg-component",
915
"author": "Greg Bergé <berge.greg@gmail.com>",
1016
"publishConfig": {

‎packages/babel-preset/package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"description": "SVGR preset that apply transformations from config",
44
"version": "6.2.0",
55
"main": "./dist/index.js",
6-
"exports": "./dist/index.js",
7-
"typings": "./dist/index.d.ts",
6+
"types": "./dist/index.d.ts",
7+
"exports": {
8+
".": {
9+
"require": "./dist/index.js",
10+
"types": "./dist/index.d.ts"
11+
},
12+
"./package.json": "./package.json"
13+
},
814
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-preset",
915
"author": "Greg Bergé <berge.greg@gmail.com>",
1016
"publishConfig": {

‎packages/core/package.json

+8-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"description": "Transform SVG into React Components.",
44
"version": "6.2.1",
55
"main": "./dist/index.js",
6-
"exports": "./dist/index.js",
7-
"typings": "./dist/index.d.ts",
6+
"types": "./dist/index.d.ts",
7+
"exports": {
8+
".": {
9+
"require": "./dist/index.js",
10+
"types": "./dist/index.d.ts"
11+
},
12+
"./package.json": "./package.json"
13+
},
814
"repository": "https://github.com/gregberge/svgr/tree/master/packages/core",
915
"author": "Greg Bergé <berge.greg@gmail.com>",
1016
"publishConfig": {
@@ -20,7 +26,6 @@
2026
"engines": {
2127
"node": ">=10"
2228
},
23-
"types": "./dist/index.d.ts",
2429
"homepage": "https://react-svgr.com",
2530
"funding": {
2631
"type": "github",

‎packages/hast-util-to-babel-ast/package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"description": "Transform HAST to Babel AST (JSX)",
44
"version": "6.2.1",
55
"main": "./dist/index.js",
6-
"exports": "./dist/index.js",
7-
"typings": "./dist/index.d.ts",
6+
"types": "./dist/index.d.ts",
7+
"exports": {
8+
".": {
9+
"require": "./dist/index.js",
10+
"types": "./dist/index.d.ts"
11+
},
12+
"./package.json": "./package.json"
13+
},
814
"repository": "https://github.com/gregberge/svgr/tree/master/packages/hast-util-to-babel-ast",
915
"author": "Greg Bergé <berge.greg@gmail.com>",
1016
"publishConfig": {

‎packages/plugin-jsx/package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"description": "Transform SVG into JSX",
44
"version": "6.2.1",
55
"main": "./dist/index.js",
6-
"exports": "./dist/index.js",
7-
"typings": "./dist/index.d.ts",
6+
"types": "./dist/index.d.ts",
7+
"exports": {
8+
".": {
9+
"require": "./dist/index.js",
10+
"types": "./dist/index.d.ts"
11+
},
12+
"./package.json": "./package.json"
13+
},
814
"repository": "https://github.com/gregberge/svgr/tree/master/packages/plugin-jsx",
915
"author": "Greg Bergé <berge.greg@gmail.com>",
1016
"publishConfig": {

‎packages/plugin-prettier/package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"description": "Format code using Prettier",
44
"version": "6.1.2",
55
"main": "./dist/index.js",
6-
"exports": "./dist/index.js",
7-
"typings": "./dist/index.d.ts",
6+
"types": "./dist/index.d.ts",
7+
"exports": {
8+
".": {
9+
"require": "./dist/index.js",
10+
"types": "./dist/index.d.ts"
11+
},
12+
"./package.json": "./package.json"
13+
},
814
"repository": "https://github.com/gregberge/svgr/tree/master/packages/plugin-prettier",
915
"author": "Greg Bergé <berge.greg@gmail.com>",
1016
"publishConfig": {

‎packages/plugin-svgo/package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"description": "Optimize SVG",
44
"version": "6.2.0",
55
"main": "./dist/index.js",
6-
"exports": "./dist/index.js",
7-
"typings": "./dist/index.d.ts",
6+
"types": "./dist/index.d.ts",
7+
"exports": {
8+
".": {
9+
"require": "./dist/index.js",
10+
"types": "./dist/index.d.ts"
11+
},
12+
"./package.json": "./package.json"
13+
},
814
"repository": "https://github.com/gregberge/svgr/tree/master/packages/plugin-svgo",
915
"author": "Greg Bergé <berge.greg@gmail.com>",
1016
"publishConfig": {

‎packages/rollup/package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"description": "SVGR Rollup plugin.",
44
"version": "6.2.1",
55
"main": "./dist/index.js",
6-
"exports": "./dist/index.js",
7-
"typings": "./dist/index.d.ts",
6+
"types": "./dist/index.d.ts",
7+
"exports": {
8+
".": {
9+
"require": "./dist/index.js",
10+
"types": "./dist/index.d.ts"
11+
},
12+
"./package.json": "./package.json"
13+
},
814
"repository": "https://github.com/gregberge/svgr/tree/master/packages/rollup",
915
"author": "Greg Bergé <berge.greg@gmail.com>",
1016
"publishConfig": {

‎packages/webpack/package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"description": "SVGR webpack loader.",
44
"version": "6.2.1",
55
"main": "./dist/index.js",
6-
"exports": "./dist/index.js",
7-
"typings": "./dist/index.d.ts",
6+
"types": "./dist/index.d.ts",
7+
"exports": {
8+
".": {
9+
"require": "./dist/index.js",
10+
"types": "./dist/index.d.ts"
11+
},
12+
"./package.json": "./package.json"
13+
},
814
"repository": "https://github.com/gregberge/svgr/tree/master/packages/webpack",
915
"author": "Greg Bergé <berge.greg@gmail.com>",
1016
"publishConfig": {

1 commit comments

Comments
 (1)

vercel[bot] commented on Jul 18, 2022

@vercel[bot]

Successfully deployed to the following URLs:

svgr – ./

svgr-gregberge.vercel.app
svgr-git-main-gregberge.vercel.app
api.react-svgr.com

Please sign in to comment.