Skip to content

Commit 53f7b15

Browse files
committed
fix(package.json): fix exports
1 parent 876b1e2 commit 53f7b15

File tree

16 files changed

+112
-33
lines changed

16 files changed

+112
-33
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
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+
},
813
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-add-jsx-attribute",
914
"author": "Greg Bergé <berge.greg@gmail.com>",
1015
"publishConfig": {

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
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+
},
813
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-remove-jsx-attribute",
914
"author": "Greg Bergé <berge.greg@gmail.com>",
1015
"publishConfig": {

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
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+
},
813
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-remove-jsx-empty-expression",
914
"author": "Greg Bergé <berge.greg@gmail.com>",
1015
"publishConfig": {

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
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+
},
813
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-replace-jsx-attribute-value",
914
"author": "Greg Bergé <berge.greg@gmail.com>",
1015
"publishConfig": {

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
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+
},
813
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-svg-dynamic-title",
914
"author": "Greg Bergé <berge.greg@gmail.com>",
1015
"publishConfig": {

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
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+
},
813
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-svg-em-dimensions",
914
"author": "Greg Bergé <berge.greg@gmail.com>",
1015
"publishConfig": {

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
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+
},
813
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-transform-react-native-svg",
914
"author": "Greg Bergé <berge.greg@gmail.com>",
1015
"publishConfig": {

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
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+
},
813
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-transform-svg-component",
914
"author": "Greg Bergé <berge.greg@gmail.com>",
1015
"publishConfig": {

packages/babel-preset/package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
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+
},
813
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-preset",
914
"author": "Greg Bergé <berge.greg@gmail.com>",
1015
"publishConfig": {

packages/core/package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
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+
},
813
"repository": "https://github.com/gregberge/svgr/tree/master/packages/core",
914
"author": "Greg Bergé <berge.greg@gmail.com>",
1015
"publishConfig": {
@@ -20,7 +25,6 @@
2025
"engines": {
2126
"node": ">=10"
2227
},
23-
"types": "./dist/index.d.ts",
2428
"homepage": "https://react-svgr.com",
2529
"funding": {
2630
"type": "github",

0 commit comments

Comments
 (0)