Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exports to package.json in all packages #9457

Open
wants to merge 4 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions examples/data-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
"homepage": "https://github.com/marmelab/react-admin/tree/master/examples/data-generator",
"bugs": "https://github.com/marmelab/react-admin/issues",
"license": "MIT",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/cjs/index.d.ts",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"scripts": {
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./dist/cjs && tsc --outDir dist/cjs",
"build-esm": "rimraf ./dist/esm && tsc --outDir dist/esm --module es2015",
"watch": "tsc --outDir dist/esm --module es2015 --watch"
"build": "yarn tsup",
"watch": "yarn tsup --watch"
},
"dependencies": {
"date-fns": "^2.19.0",
Expand All @@ -21,6 +19,7 @@
"cross-env": "^5.2.0",
"ra-core": "^4.15.5",
"rimraf": "^3.0.2",
"tsup": "^8.0.0",
"typescript": "^5.1.3"
},
"peerDependencies": {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"react-dom": "^17.0.0",
"storybook": "^7.5.1",
"ts-jest": "^29.1.0",
"tsup": "^7.3.0",
"typescript": "^5.1.3",
"wait-on": "^3.2.0",
"whatwg-fetch": "^3.0.0"
Expand Down
20 changes: 13 additions & 7 deletions packages/ra-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@
"dist",
"src"
],
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/cjs/index.d.ts",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"sideEffects": false,
"authors": [
"François Zaninotto",
Expand All @@ -20,10 +27,8 @@
"bugs": "https://github.com/marmelab/react-admin/issues",
"license": "MIT",
"scripts": {
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./dist/cjs && tsc --outDir dist/cjs",
"build-esm": "rimraf ./dist/esm && tsc --outDir dist/esm --module es2015",
"watch": "tsc --outDir dist/esm --module es2015 --watch"
"build": "yarn tsup --onSuccess tsc",
"watch": "yarn tsup --watch"
},
"devDependencies": {
"@hookform/resolvers": "^3.2.0",
Expand All @@ -45,6 +50,7 @@
"react-test-renderer": "^16.9.0 || ^17.0.0",
"recharts": "^2.1.15",
"rimraf": "^3.0.2",
"tsup": "^8.0.0",
"typescript": "^5.1.3",
"yup": "^0.32.11",
"zod": "^3.22.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "lib",
"outDir": "dist",
"rootDir": "src",
"allowJs": false
},
Expand Down
20 changes: 13 additions & 7 deletions packages/ra-data-fakerest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@
"name": "ra-data-fakerest",
"version": "4.15.5",
"description": "JSON Server data provider for react-admin",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/cjs/index.d.ts",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"sideEffects": false,
"files": [
"LICENSE",
Expand All @@ -31,10 +38,8 @@
},
"homepage": "https://github.com/marmelab/react-admin#readme",
"scripts": {
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./dist/cjs && tsc --outDir dist/cjs",
"build-esm": "rimraf ./dist/esm && tsc --outDir dist/esm --module es2015",
"watch": "tsc --outDir dist/esm --module es2015 --watch"
"build": "yarn tsup --onSuccess tsc",
"watch": "yarn tsup --watch"
},
"dependencies": {
"fakerest": "^3.0.0"
Expand All @@ -45,6 +50,7 @@
"expect": "^27.4.6",
"ra-core": "^4.15.5",
"rimraf": "^3.0.2",
"tsup": "^8.0.0",
"typescript": "^5.1.3"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-data-fakerest/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "lib",
"outDir": "dist",
"rootDir": "src",
"allowJs": false
},
Expand Down
20 changes: 13 additions & 7 deletions packages/ra-data-graphql-simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@
"name": "ra-data-graphql-simple",
"version": "4.15.5",
"description": "A GraphQL simple data provider for react-admin",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/cjs/index.d.ts",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"sideEffects": false,
"repository": {
"type": "git",
Expand All @@ -27,10 +34,8 @@
],
"license": "MIT",
"scripts": {
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./dist/cjs && tsc --outDir dist/cjs",
"build-esm": "rimraf ./dist/esm && tsc --outDir dist/esm --module es2015",
"watch": "tsc --outDir dist/esm --module es2015 --watch"
"build": "yarn tsup --onSuccess tsc",
"watch": "yarn tsup --watch"
},
"dependencies": {
"@apollo/client": "^3.3.19",
Expand All @@ -47,6 +52,7 @@
"cross-env": "^5.2.0",
"graphql": "^15.6.0",
"rimraf": "^3.0.2",
"tsup": "^8.0.0",
"typescript": "^5.1.3"
},
"gitHead": "65189b7cea65cc57190f41f77b84fdb290b68e29"
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-data-graphql-simple/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "lib",
"outDir": "dist",
"rootDir": "src",
"allowJs": false
},
Expand Down
20 changes: 13 additions & 7 deletions packages/ra-data-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@
"name": "ra-data-graphql",
"version": "4.15.5",
"description": "A GraphQL data provider for react-admin",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/cjs/index.d.ts",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"sideEffects": false,
"repository": {
"type": "git",
Expand All @@ -27,10 +34,8 @@
],
"license": "MIT",
"scripts": {
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./dist/cjs && tsc --outDir dist/cjs",
"build-esm": "rimraf ./dist/esm && tsc --outDir dist/esm --module es2015",
"watch": "tsc --outDir dist/esm --module es2015 --watch"
"build": "yarn tsup --onSuccess tsc",
"watch": "yarn tsup --watch"
},
"dependencies": {
"@apollo/client": "^3.3.19",
Expand All @@ -45,6 +50,7 @@
"cross-env": "^5.2.0",
"graphql": "^15.6.0",
"rimraf": "^3.0.2",
"tsup": "^8.0.0",
"typescript": "^5.1.3"
},
"gitHead": "65189b7cea65cc57190f41f77b84fdb290b68e29"
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-data-graphql/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "lib",
"outDir": "dist",
"rootDir": "src",
"allowJs": false
},
Expand Down
20 changes: 13 additions & 7 deletions packages/ra-data-json-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@
"name": "ra-data-json-server",
"version": "4.15.5",
"description": "JSON Server data provider for react-admin",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/cjs/index.d.ts",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"sideEffects": false,
"files": [
"*.md",
Expand All @@ -19,10 +26,8 @@
"bugs": "https://github.com/marmelab/react-admin/issues",
"license": "MIT",
"scripts": {
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./dist/cjs && tsc --outDir dist/cjs",
"build-esm": "rimraf ./dist/esm && tsc --outDir dist/esm --module es2015",
"watch": "tsc --outDir dist/esm --module es2015 --watch"
"build": "yarn tsup --onSuccess tsc",
"watch": "yarn tsup --watch"
},
"dependencies": {
"query-string": "^7.1.1",
Expand All @@ -31,6 +36,7 @@
"devDependencies": {
"cross-env": "^5.2.0",
"rimraf": "^3.0.2",
"tsup": "^8.0.0",
"typescript": "^5.1.3"
},
"gitHead": "e936ff2c3f887d2e98ef136cf3b3f3d254725fc4"
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-data-json-server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "lib",
"outDir": "dist",
"rootDir": "src",
"allowJs": false
},
Expand Down
20 changes: 13 additions & 7 deletions packages/ra-data-localforage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@
"name": "ra-data-local-forage",
"version": "4.15.5",
"description": "LocalForage data provider for react-admin",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/cjs/index.d.ts",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"sideEffects": false,
"files": [
"LICENSE",
Expand Down Expand Up @@ -34,10 +41,8 @@
},
"homepage": "https://github.com/marmelab/react-admin#readme",
"scripts": {
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./dist/cjs && tsc --outDir dist/cjs",
"build-esm": "rimraf ./dist/esm && tsc --outDir dist/esm --module es2015",
"watch": "tsc --outDir dist/esm --module es2015 --watch"
"build": "yarn tsup --onSuccess tsc",
"watch": "yarn tsup --watch"
},
"dependencies": {
"localforage": "^1.7.1",
Expand All @@ -47,6 +52,7 @@
"devDependencies": {
"cross-env": "^5.2.0",
"rimraf": "^3.0.2",
"tsup": "^8.0.0",
"typescript": "^5.1.3"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-data-localforage/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "lib",
"outDir": "dist",
"rootDir": "src",
"declaration": true,
"declarationMap": true,
Expand Down
20 changes: 13 additions & 7 deletions packages/ra-data-localstorage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@
"name": "ra-data-local-storage",
"version": "4.15.5",
"description": "Local storage data provider for react-admin",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/cjs/index.d.ts",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"sideEffects": false,
"files": [
"LICENSE",
Expand All @@ -31,10 +38,8 @@
},
"homepage": "https://github.com/marmelab/react-admin#readme",
"scripts": {
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./dist/cjs && tsc --outDir dist/cjs",
"build-esm": "rimraf ./dist/esm && tsc --outDir dist/esm --module es2015",
"watch": "tsc --outDir dist/esm --module es2015 --watch"
"build": "yarn tsup --onSuccess tsc",
"watch": "yarn tsup --watch"
},
"dependencies": {
"lodash": "~4.17.5",
Expand All @@ -43,6 +48,7 @@
"devDependencies": {
"cross-env": "^5.2.0",
"rimraf": "^3.0.2",
"tsup": "^8.0.0",
"typescript": "^5.1.3"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-data-localstorage/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "lib",
"outDir": "dist",
"rootDir": "src",
"allowJs": false
},
Expand Down
Loading