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

Fix sourcemaps support with TS #7818

Merged
merged 4 commits into from
Jun 14, 2022
Merged
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
15 changes: 8 additions & 7 deletions examples/data-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,24 @@
"homepage": "https://github.com/marmelab/react-admin/tree/master/examples/data-generator",
"bugs": "https://github.com/marmelab/react-admin/issues",
"license": "MIT",
"main": "dist/index",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"types": "dist/cjs/index.d.ts",
"scripts": {
"build": "tsup --external react-hook-form src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output",
"watch": "tsup --external react-hook-form src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output --watch"
"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"
},
"dependencies": {
"date-fns": "^2.19.0",
"faker": "^4.1.0"
},
"devDependencies": {
"cross-env": "^5.2.0",
"npm-dts": "^1.3.10",
"ra-core": "^4.1.3",
"rimraf": "^2.6.3",
"tsup": "^6.1.0"
"rimraf": "^3.0.2",
"typescript": "^4.4.0"
},
"peerDependencies": {
"ra-core": "^4.0.0"
Expand Down
13 changes: 7 additions & 6 deletions packages/ra-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"dist",
"src"
],
"main": "dist/index",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"types": "dist/cjs/index.d.ts",
"sideEffects": false,
"authors": [
"François Zaninotto",
Expand All @@ -20,8 +20,10 @@
"bugs": "https://github.com/marmelab/react-admin/issues",
"license": "MIT",
"scripts": {
"build": "tsup --external react-hook-form src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output",
"watch": "tsup --external react-hook-form src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output --watch"
"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"
},
"devDependencies": {
"@hookform/resolvers": "^2.8.8",
Expand All @@ -35,14 +37,13 @@
"expect": "^27.4.6",
"history": "^5.1.0",
"ignore-styles": "~5.0.1",
"npm-dts": "^1.3.10",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react-hook-form": "^7.31.0",
"react-router": "^6.1.0",
"react-router-dom": "^6.1.0",
"react-test-renderer": "^16.9.0 || ^17.0.0",
"tsup": "^6.1.0",
"rimraf": "^3.0.2",
"typescript": "^4.4.0",
"yup": "^0.32.11"
},
Expand Down
15 changes: 8 additions & 7 deletions packages/ra-data-fakerest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "ra-data-fakerest",
"version": "4.1.3",
"description": "JSON Server data provider for react-admin",
"main": "dist/index",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"types": "dist/cjs/index.d.ts",
"sideEffects": false,
"files": [
"LICENSE",
Expand All @@ -31,18 +31,19 @@
},
"homepage": "https://github.com/marmelab/react-admin#readme",
"scripts": {
"build": "tsup src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output",
"watch": "tsup src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output --watch"
"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"
},
"dependencies": {
"fakerest": "^3.0.0"
},
"devDependencies": {
"cross-env": "^5.2.0",
"npm-dts": "^1.3.10",
"ra-core": "^4.1.3",
"rimraf": "^2.6.3",
"tsup": "^6.1.0"
"rimraf": "^3.0.2",
"typescript": "^4.4.0"
},
"peerDependencies": {
"ra-core": "^4.0.0"
Expand Down
15 changes: 8 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,9 @@
"name": "ra-data-graphql-simple",
"version": "4.1.3",
"description": "A GraphQL simple data provider for react-admin",
"main": "dist/index",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"types": "dist/cjs/index.d.ts",
"sideEffects": false,
"repository": {
"type": "git",
Expand All @@ -27,8 +27,10 @@
],
"license": "MIT",
"scripts": {
"build": "tsup src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output",
"watch": "tsup src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output --watch"
"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"
},
"dependencies": {
"@apollo/client": "^3.3.19",
Expand All @@ -44,8 +46,7 @@
"devDependencies": {
"cross-env": "^5.2.0",
"graphql": "^15.6.0",
"npm-dts": "^1.3.10",
"rimraf": "^2.6.3",
"tsup": "^6.1.0"
"rimraf": "^3.0.2",
"typescript": "^4.4.0"
}
}
15 changes: 8 additions & 7 deletions packages/ra-data-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "ra-data-graphql",
"version": "4.1.3",
"description": "A GraphQL data provider for react-admin",
"main": "dist/index",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"types": "dist/cjs/index.d.ts",
"sideEffects": false,
"repository": {
"type": "git",
Expand All @@ -27,8 +27,10 @@
],
"license": "MIT",
"scripts": {
"build": "tsup src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output",
"watch": "tsup src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output --watch"
"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"
},
"dependencies": {
"@apollo/client": "^3.3.19",
Expand All @@ -42,8 +44,7 @@
"devDependencies": {
"cross-env": "^5.2.0",
"graphql": "^15.6.0",
"npm-dts": "^1.3.10",
"rimraf": "^2.6.3",
"tsup": "^6.1.0"
"rimraf": "^3.0.2",
"typescript": "^4.4.0"
}
}
15 changes: 8 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,9 @@
"name": "ra-data-json-server",
"version": "4.1.3",
"description": "JSON Server data provider for react-admin",
"main": "dist/index",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"types": "dist/cjs/index.d.ts",
"sideEffects": false,
"files": [
"*.md",
Expand All @@ -19,17 +19,18 @@
"bugs": "https://github.com/marmelab/react-admin/issues",
"license": "MIT",
"scripts": {
"build": "tsup src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output",
"watch": "tsup src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output --watch"
"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"
},
"dependencies": {
"query-string": "^7.1.1",
"ra-core": "^4.1.3"
},
"devDependencies": {
"cross-env": "^5.2.0",
"npm-dts": "^1.3.10",
"rimraf": "^2.6.3",
"tsup": "^6.1.0"
"rimraf": "^3.0.2",
"typescript": "^4.4.0"
}
}
15 changes: 8 additions & 7 deletions packages/ra-data-localstorage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "ra-data-local-storage",
"version": "4.1.3",
"description": "Local storage data provider for react-admin",
"main": "dist/index",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"types": "dist/cjs/index.d.ts",
"sideEffects": false,
"files": [
"LICENSE",
Expand All @@ -31,18 +31,19 @@
},
"homepage": "https://github.com/marmelab/react-admin#readme",
"scripts": {
"build": "tsup src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output",
"watch": "tsup src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output --watch"
"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"
},
"dependencies": {
"lodash": "~4.17.5",
"ra-data-fakerest": "^4.1.3"
},
"devDependencies": {
"cross-env": "^5.2.0",
"npm-dts": "^1.3.10",
"rimraf": "^2.6.3",
"tsup": "^6.1.0"
"rimraf": "^3.0.2",
"typescript": "^4.4.0"
},
"peerDependencies": {
"ra-core": "*"
Expand Down
15 changes: 8 additions & 7 deletions packages/ra-data-simple-rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "ra-data-simple-rest",
"version": "4.1.3",
"description": "Simple REST data provider for react-admin",
"main": "dist/index",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"types": "dist/cjs/index.d.ts",
"sideEffects": false,
"files": [
"*.md",
Expand All @@ -19,18 +19,19 @@
"bugs": "https://github.com/marmelab/react-admin/issues",
"license": "MIT",
"scripts": {
"build": "tsup src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output",
"watch": "tsup src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output --watch"
"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"
},
"dependencies": {
"query-string": "^7.1.1"
},
"devDependencies": {
"cross-env": "^5.2.0",
"npm-dts": "^1.3.10",
"ra-core": "^4.1.3",
"rimraf": "^2.6.3",
"tsup": "^6.1.0"
"rimraf": "^3.0.2",
"typescript": "^4.4.0"
},
"peerDependencies": {
"ra-core": "^4.0.0"
Expand Down
15 changes: 8 additions & 7 deletions packages/ra-i18n-polyglot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "ra-i18n-polyglot",
"version": "4.1.3",
"description": "Polyglot i18n provider for react-admin",
"main": "dist/index",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"types": "dist/cjs/index.d.ts",
"sideEffects": false,
"files": [
"*.md",
Expand All @@ -19,17 +19,18 @@
"bugs": "https://github.com/marmelab/react-admin/issues",
"license": "MIT",
"scripts": {
"build": "tsup src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output",
"watch": "tsup src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output --watch"
"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"
},
"dependencies": {
"node-polyglot": "^2.2.2",
"ra-core": "^4.1.3"
},
"devDependencies": {
"cross-env": "^5.2.0",
"npm-dts": "^1.3.10",
"rimraf": "^2.6.3",
"tsup": "^6.1.0"
"rimraf": "^3.0.2",
"typescript": "^4.4.0"
}
}
13 changes: 8 additions & 5 deletions packages/ra-input-rich-text/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
"dist",
"src"
],
"main": "dist/index",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"types": "dist/cjs/index.d.ts",
"sideEffects": false,
"scripts": {
"build": "tsup src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output",
"watch": "tsup src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output --watch"
"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"
},
"dependencies": {
"@tiptap/extension-link": "^2.0.0-beta.20",
Expand Down Expand Up @@ -48,6 +50,7 @@
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react-hook-form": "^7.31.0",
"tsup": "^6.1.0"
"rimraf": "^3.0.2",
"typescript": "^4.4.0"
}
}
14 changes: 8 additions & 6 deletions packages/ra-language-english/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,21 @@
"dist",
"src"
],
"main": "dist/index",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"types": "dist/cjs/index.d.ts",
"scripts": {
"build": "tsup src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output",
"watch": "tsup src/index.ts --silent --clean --format cjs,esm --minify --keep-names --metafile --sourcemap --dts --legacy-output --watch"
"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"
},
"dependencies": {
"ra-core": "^4.1.3"
},
"devDependencies": {
"npm-dts": "^1.3.10",
"tsup": "^6.1.0"
"rimraf": "^3.0.2",
"typescript": "^4.4.0"
},
"keywords": [
"react",
Expand Down
Loading