Skip to content

Commit

Permalink
build(deps): update zextras dependencies
Browse files Browse the repository at this point in the history
Refs: (#540)
  • Loading branch information
beawar authored Nov 8, 2024
1 parent 35d9f41 commit cf232ae
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 51 deletions.
19 changes: 0 additions & 19 deletions babel.config.jest.js

This file was deleted.

35 changes: 22 additions & 13 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,27 @@
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
module.exports = {
presets: [
[
'@babel/preset-env',
{
modules: false,
useBuiltIns: 'usage',
corejs: 3.31
}
module.exports = (api) => {
let presetEnvOptions;
const plugins = ['babel-plugin-styled-components'];
if (api.env('test')) {
presetEnvOptions = {
modules: 'commonjs'
};
plugins.push('babel-plugin-transform-import-meta');
} else {
presetEnvOptions = {
modules: false,
useBuiltIns: 'usage',
corejs: 3.31
};
}
return {
presets: [
['@babel/preset-env', presetEnvOptions],
'@babel/preset-react',
'@babel/preset-typescript'
],
'@babel/preset-react',
'@babel/preset-typescript'
],
plugins: ['babel-plugin-styled-components']
plugins
};
};
5 changes: 2 additions & 3 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,9 @@ const config: Config = {

// A map from regular expressions to paths to transformers
transform: {
'^.+\\.[t|j]sx?$': ['babel-jest', { configFile: './babel.config.jest.js' }],
'^.+\\.(m?[t|j]sx?)$': 'babel-jest',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'./__mocks__/fileTransformer.js',
'\\.mjs?$': ['babel-jest', { configFile: './babel.config.jest.js' }]
'./__mocks__/fileTransformer.js'
},

// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@
"prebuild:lib": "rm -rf lib",
"build:lib": "tsc -p tsconfig.lib.json && npx api-extractor run --verbose",
"build:lib:local": "tsc -p tsconfig.lib.json && npx api-extractor run --verbose --local",
"predeploy": "npm run prebuild:pkg",
"postdeploy": "npm run postbuild:pkg",
"deploy": "sdk install",
"deploy": "npm run build:pkg && sdk deploy",
"deploy:dev": "npm run build:pkg -- -d && sdk deploy",
"prestart": "npm run prebuild:pkg",
"start": "sdk watch",
"poststart": "npm run postbuild:pkg",
"packTo": "npm pack --pack-destination $PKG_PATH && cd $PKG_PATH && npm i zextras-carbonio-shell-ui-$npm_package_version.tgz",
"packTo:noBuild": "cp zextras-carbonio-shell-ui-$npm_package_version.tgz $PKG_PATH/ && cd $PKG_PATH && npm i zextras-carbonio-shell-ui-$npm_package_version.tgz",
"deploy-on-module": "npm pack && rm -rf $PKG_PATH/node_modules/@zextras/carbonio-shell-ui/* && tar -xf zextras-carbonio-shell-ui-$npm_package_version.tgz -C $PKG_PATH/node_modules/@zextras/carbonio-shell-ui/ --strip-components 1"
},
"files": [
Expand Down Expand Up @@ -75,7 +73,7 @@
"@types/webpack": "^5.28.5",
"@types/webpack-env": "^1.18.4",
"@zextras/carbonio-ui-configs": "^1.0.3",
"@zextras/carbonio-ui-sdk": "^1.7.9",
"@zextras/carbonio-ui-sdk": "^1.7.10",
"autoprefixer": "^10.4.17",
"babel-loader": "^9.1.3",
"babel-plugin-styled-components": "^2.1.4",
Expand Down Expand Up @@ -108,7 +106,7 @@
"@fontsource/roboto": "^5.0.8",
"@sentry/browser": "^7.103.0",
"@tinymce/tinymce-react": "^4.3.2",
"@zextras/carbonio-design-system": "^8.0.0",
"@zextras/carbonio-design-system": "^8.1.0",
"@zextras/carbonio-ui-preview": "^3.0.0",
"darkreader": "^4.9.79",
"history": "^5.3.0",
Expand All @@ -127,7 +125,7 @@
"zustand": "^4.5.1"
},
"peerDependencies": {
"@zextras/carbonio-design-system": "^8.0.0",
"@zextras/carbonio-design-system": "^8.1.0",
"@zextras/carbonio-ui-preview": "^3.0.0",
"core-js": "^3.31.1",
"lodash": "^4.17.21",
Expand Down

0 comments on commit cf232ae

Please sign in to comment.