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

ci: update build configuration #2341

Merged
merged 2 commits into from
Jan 13, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: '18.13.0'
registry-url: 'https://registry.npmjs.org'

- name: Install Dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16.13.2'
node-version: '18.13.0'

- name: Install Dependencies
run: yarn install
Expand Down
50 changes: 0 additions & 50 deletions .size-snapshot.json

This file was deleted.

45 changes: 22 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,18 @@
"react-dom": "^16.14.0 || ^17 || ^18"
},
"devDependencies": {
"@babel/cli": "^7.18.6",
"@babel/core": "^7.18.6",
"@babel/eslint-parser": "^7.18.2",
"@babel/cli": "^7.20.7",
"@babel/core": "^7.20.12",
"@babel/eslint-parser": "^7.19.1",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-transform-runtime": "^7.18.6",
"@babel/preset-env": "^7.18.6",
"@commitlint/cli": "^17.4.0",
"@commitlint/config-conventional": "^17.4.0",
"@rollup/plugin-babel": "5.3.1",
"@rollup/plugin-commonjs": "22.0.1",
"@rollup/plugin-node-resolve": "13.3.0",
"@rollup/plugin-replace": "4.0.0",
"@babel/plugin-transform-runtime": "^7.19.6",
"@babel/preset-env": "^7.20.2",
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
"@rollup/plugin-babel": "6.0.3",
"@rollup/plugin-commonjs": "24.0.0",
"@rollup/plugin-node-resolve": "15.0.1",
"@rollup/plugin-replace": "5.0.2",
"@semantic-release/changelog": "^6.0.2",
"@semantic-release/git": "^10.0.1",
"@storybook/addon-actions": "^6.5.15",
Expand All @@ -69,7 +69,7 @@
"@storybook/preset-scss": "1.0.3",
"@storybook/react": "^6.5.15",
"@storybook/theming": "6.5.15",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"autoprefixer": "^10.4.13",
"babel-jest": "^29.3.1",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
Expand All @@ -79,33 +79,32 @@
"eslint-config-jason": "^8.2.2",
"eslint-config-prettier": "^8.6.0",
"eslint-import-resolver-webpack": "^0.13.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-import": "^2.27.4",
"eslint-plugin-react": "^7.32.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-storybook": "^0.6.8",
"eslint-plugin-storybook": "^0.6.10",
"husky": "^8.0.3",
"is-ci": "^3.0.1",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"lint-staged": "^13.1.0",
"postcss": "^8.4.20",
"postcss": "^8.4.21",
"postcss-cli": "^10.1.0",
"prettier": "^2.8.1",
"prettier": "^2.8.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-tackle-box": "^2.1.0",
"regenerator-runtime": "^0.13.9",
"rollup": "^2.75.7",
"regenerator-runtime": "^0.13.11",
"rollup": "^3.10.0",
"rollup-plugin-clear": "^2.0.7",
"rollup-plugin-size-snapshot": "^0.12.0",
"rollup-plugin-terser": "^7.0.2",
"sass": "1.57.1",
"sass-loader": "^13.2.0",
"semantic-release": "^19.0.5",
"semantic-release": "^20.0.2",
"zx": "^7.1.1"
},
"dependencies": {
"@babel/runtime": "^7.18.6",
"@babel/runtime": "^7.20.7",
"clsx": "^1.2.1",
"date-arithmetic": "^4.1.0",
"dayjs": "^1.11.7",
Expand All @@ -114,7 +113,7 @@
"invariant": "^2.2.4",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"luxon": "^3.2.0",
"luxon": "^3.2.1",
"memoize-one": "^6.0.0",
"moment": "^2.29.4",
"moment-timezone": "^0.5.40",
Expand Down
10 changes: 5 additions & 5 deletions rollup.config.js → rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import path from 'path'
import * as url from 'url'
import nodeResolve from '@rollup/plugin-node-resolve'
import babel from '@rollup/plugin-babel'
import commonjs from '@rollup/plugin-commonjs'
import replace from '@rollup/plugin-replace'
import clear from 'rollup-plugin-clear'
import { sizeSnapshot } from 'rollup-plugin-size-snapshot'
// removed sizeSnapshot, as it is not compatible with ESM
import { terser } from 'rollup-plugin-terser'
import pkg from './package.json'
import pkg from './package.json' assert { type: 'json' }

const __dirname = url.fileURLToPath(new URL('.', import.meta.url))

const input = './src/index.js'
const name = 'ReactBigCalendar'
Expand Down Expand Up @@ -48,7 +51,6 @@ export default [
nodeResolve(),
commonjs(commonjsOptions),
babel(babelOptions),
sizeSnapshot(),
],
},

Expand All @@ -71,7 +73,6 @@ export default [
commonjs(commonjsOptions),
babel(babelOptions),
terser(),
sizeSnapshot(),
],
},

Expand All @@ -89,7 +90,6 @@ export default [
...babelOptions,
configFile: path.join(__dirname, 'babel.config.esm.js'),
}),
sizeSnapshot(),
],
},
]
Loading