Skip to content

Commit

Permalink
fix(package.json): fix exports (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge authored Jul 18, 2022
1 parent 876b1e2 commit 2a368d1
Show file tree
Hide file tree
Showing 16 changed files with 128 additions and 33 deletions.
10 changes: 8 additions & 2 deletions packages/babel-plugin-add-jsx-attribute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
"description": "Add JSX attribute",
"version": "6.0.0",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"typings": "./dist/index.d.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-add-jsx-attribute",
"author": "Greg Bergé <berge.greg@gmail.com>",
"publishConfig": {
Expand Down
10 changes: 8 additions & 2 deletions packages/babel-plugin-remove-jsx-attribute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
"description": "Remove JSX attribute",
"version": "6.0.0",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"typings": "./dist/index.d.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-remove-jsx-attribute",
"author": "Greg Bergé <berge.greg@gmail.com>",
"publishConfig": {
Expand Down
10 changes: 8 additions & 2 deletions packages/babel-plugin-remove-jsx-empty-expression/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
"description": "Remove JSX empty expression",
"version": "6.0.0",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"typings": "./dist/index.d.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-remove-jsx-empty-expression",
"author": "Greg Bergé <berge.greg@gmail.com>",
"publishConfig": {
Expand Down
10 changes: 8 additions & 2 deletions packages/babel-plugin-replace-jsx-attribute-value/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
"description": "Replace JSX attribute value",
"version": "6.0.0",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"typings": "./dist/index.d.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-replace-jsx-attribute-value",
"author": "Greg Bergé <berge.greg@gmail.com>",
"publishConfig": {
Expand Down
10 changes: 8 additions & 2 deletions packages/babel-plugin-svg-dynamic-title/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
"description": "Transform SVG by adding a dynamic title element",
"version": "6.0.0",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"typings": "./dist/index.d.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-svg-dynamic-title",
"author": "Greg Bergé <berge.greg@gmail.com>",
"publishConfig": {
Expand Down
10 changes: 8 additions & 2 deletions packages/babel-plugin-svg-em-dimensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
"description": "Transform SVG to use em-based dimensions",
"version": "6.0.0",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"typings": "./dist/index.d.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-svg-em-dimensions",
"author": "Greg Bergé <berge.greg@gmail.com>",
"publishConfig": {
Expand Down
10 changes: 8 additions & 2 deletions packages/babel-plugin-transform-react-native-svg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
"description": "Transform DOM elements into react-native-svg components",
"version": "6.0.0",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"typings": "./dist/index.d.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-transform-react-native-svg",
"author": "Greg Bergé <berge.greg@gmail.com>",
"publishConfig": {
Expand Down
10 changes: 8 additions & 2 deletions packages/babel-plugin-transform-svg-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
"description": "Transform SVG into component",
"version": "6.2.0",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"typings": "./dist/index.d.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-plugin-transform-svg-component",
"author": "Greg Bergé <berge.greg@gmail.com>",
"publishConfig": {
Expand Down
10 changes: 8 additions & 2 deletions packages/babel-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
"description": "SVGR preset that apply transformations from config",
"version": "6.2.0",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"typings": "./dist/index.d.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"repository": "https://github.com/gregberge/svgr/tree/master/packages/babel-preset",
"author": "Greg Bergé <berge.greg@gmail.com>",
"publishConfig": {
Expand Down
11 changes: 8 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
"description": "Transform SVG into React Components.",
"version": "6.2.1",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"typings": "./dist/index.d.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"repository": "https://github.com/gregberge/svgr/tree/master/packages/core",
"author": "Greg Bergé <berge.greg@gmail.com>",
"publishConfig": {
Expand All @@ -20,7 +26,6 @@
"engines": {
"node": ">=10"
},
"types": "./dist/index.d.ts",
"homepage": "https://react-svgr.com",
"funding": {
"type": "github",
Expand Down
10 changes: 8 additions & 2 deletions packages/hast-util-to-babel-ast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
"description": "Transform HAST to Babel AST (JSX)",
"version": "6.2.1",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"typings": "./dist/index.d.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"repository": "https://github.com/gregberge/svgr/tree/master/packages/hast-util-to-babel-ast",
"author": "Greg Bergé <berge.greg@gmail.com>",
"publishConfig": {
Expand Down
10 changes: 8 additions & 2 deletions packages/plugin-jsx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
"description": "Transform SVG into JSX",
"version": "6.2.1",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"typings": "./dist/index.d.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"repository": "https://github.com/gregberge/svgr/tree/master/packages/plugin-jsx",
"author": "Greg Bergé <berge.greg@gmail.com>",
"publishConfig": {
Expand Down
10 changes: 8 additions & 2 deletions packages/plugin-prettier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
"description": "Format code using Prettier",
"version": "6.1.2",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"typings": "./dist/index.d.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"repository": "https://github.com/gregberge/svgr/tree/master/packages/plugin-prettier",
"author": "Greg Bergé <berge.greg@gmail.com>",
"publishConfig": {
Expand Down
10 changes: 8 additions & 2 deletions packages/plugin-svgo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
"description": "Optimize SVG",
"version": "6.2.0",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"typings": "./dist/index.d.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"repository": "https://github.com/gregberge/svgr/tree/master/packages/plugin-svgo",
"author": "Greg Bergé <berge.greg@gmail.com>",
"publishConfig": {
Expand Down
10 changes: 8 additions & 2 deletions packages/rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
"description": "SVGR Rollup plugin.",
"version": "6.2.1",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"typings": "./dist/index.d.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"repository": "https://github.com/gregberge/svgr/tree/master/packages/rollup",
"author": "Greg Bergé <berge.greg@gmail.com>",
"publishConfig": {
Expand Down
10 changes: 8 additions & 2 deletions packages/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
"description": "SVGR webpack loader.",
"version": "6.2.1",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"typings": "./dist/index.d.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"repository": "https://github.com/gregberge/svgr/tree/master/packages/webpack",
"author": "Greg Bergé <berge.greg@gmail.com>",
"publishConfig": {
Expand Down

1 comment on commit 2a368d1

@vercel
Copy link

@vercel vercel bot commented on 2a368d1 Jul 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.