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

Switched playground to webpack 5 and other small fixes #2958

Merged
merged 3 commits into from
Jul 28, 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
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 14.x
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 16.x
- run: npm ci
- run: npm run build
- run: npm test
Expand Down
6,528 changes: 507 additions & 6,021 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
"ts-jest": "^27.1.5",
"ts-loader": "^8.4.0",
"tslib": "^2.4.0",
"typescript": "^4.7.4",
"webpack": "^4.46.0"
"typescript": "^4.7.4"
},
"husky": {
"hooks": {
Expand Down
2 changes: 1 addition & 1 deletion packages/antd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"module": "dist/antd.esm.js",
"scripts": {
"start": "dts watch",
"build": "rimraf dist && dts build --format cjs,es,umd",
"build": "rimraf dist && dts build --format cjs,esm,umd",
"cs-check": "prettier -l \"{src,test}/**/*.js\"",
"cs-format": "prettier \"{src,test}/**/*.js\" --write",
"lint": "eslint src test",
Expand Down
2 changes: 1 addition & 1 deletion packages/bootstrap-4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"scripts": {
"start": "dts watch",
"build": "rimraf dist && dts build --format cjs,es,umd",
"build": "rimraf dist && dts build --format cjs,esm,umd",
"cs-check": "prettier -l \"{src,test}/**/*.ts?(x)\"",
"cs-format": "prettier \"{src,test}/**/*.ts?(x)\" --write",
"lint": "eslint src test",
Expand Down
2 changes: 1 addition & 1 deletion packages/chakra-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"scripts": {
"start": "dts watch",
"build": "rimraf dist && dts build --format cjs,es,umd",
"build": "rimraf dist && dts build --format cjs,esm,umd",
"cs-check": "prettier -l \"{src,test}/**/*.ts?(x)\"",
"cs-format": "prettier \"{src,test}/**/*.ts?(x)\" --write",
"lint": "eslint src test",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "4.2.0",
"description": "A simple React component capable of building HTML forms out of a JSON schema.",
"scripts": {
"build": "rimraf dist && dts build --format cjs,es,umd",
"build": "rimraf dist && dts build --format cjs,esm,umd",
"cs-check": "prettier -l \"{src,test}/**/*.[jt]s?(x)\"",
"cs-format": "prettier \"{src,test}/**/*.[jt]s?(x)\" --write",
"lint": "eslint src test",
Expand Down
2 changes: 1 addition & 1 deletion packages/fluent-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"scripts": {
"start": "dts watch",
"build": "rimraf dist && dts build --format cjs,es,umd",
"build": "rimraf dist && dts build --format cjs,esm,umd",
"cs-check": "prettier -l \"{src,test}/**/*.ts?(x)\"",
"cs-format": "prettier \"{src,test}/**/*.ts?(x)\" --write",
"lint": "eslint src test",
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"scripts": {
"start": "dts watch",
"build": "rimraf dist && dts build",
"build": "rimraf dist && dts build --format cjs,esm,umd",
"cs-check": "prettier -l \"{src,test}/**/*.ts?(x)\"",
"cs-format": "prettier \"{src,test}/**/*.ts?(x)\" --write",
"lint": "eslint src test",
Expand Down
2 changes: 1 addition & 1 deletion packages/mui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"scripts": {
"start": "dts watch",
"build": "rimraf dist && dts build --format cjs,es,umd",
"build": "rimraf dist && dts build --format cjs,esm,umd",
"cs-check": "prettier -l \"{src,test}/**/*.ts?(x)\"",
"cs-format": "prettier \"{src,test}/**/*.ts?(x)\" --write",
"lint": "eslint src test",
Expand Down
11 changes: 8 additions & 3 deletions packages/playground/.babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"presets": [
"@babel/preset-react",
"@babel/preset-env"
["@babel/preset-env", {
"modules": false, // don't convert modules into CommonJS
"useBuiltIns": "usage", // use polyfill when needed
"corejs": 3
}],
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-syntax-dynamic-import",
Expand All @@ -10,7 +14,8 @@
[
"@babel/plugin-transform-runtime",
{
"corejs": 3
"corejs": 3,
"useESModules": true
}
]
],
Expand Down
Loading