Skip to content

Commit

Permalink
fix(TDOPS-5502): Prepare scripts-config-babel for pnpm and fix circul…
Browse files Browse the repository at this point in the history
…ar dependencies (#4952)
  • Loading branch information
smouillour authored Oct 25, 2023
1 parent 5f1bef9 commit 3f9c8a7
Show file tree
Hide file tree
Showing 116 changed files with 609 additions and 324 deletions.
7 changes: 7 additions & 0 deletions .changeset/angry-cows-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@talend/react-cmf': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
fix import of scripts-config-jest
6 changes: 6 additions & 0 deletions .changeset/chilled-boats-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@talend/scripts-config-babel': minor
---

adapt code to be compatible with pnpm
add missing deps
8 changes: 8 additions & 0 deletions .changeset/cold-mirrors-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@talend/storybook-docs': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
remove ref to design-system and icons(circular dep)
adapt code for pnpm
7 changes: 7 additions & 0 deletions .changeset/eight-dryers-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@talend/scripts-config-react-webpack': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
adapt code for pnpm
6 changes: 6 additions & 0 deletions .changeset/fast-elephants-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@talend/eslint-config': minor
---

remove link to scripts-utils (circular dep)
add missing deps
7 changes: 7 additions & 0 deletions .changeset/forty-chefs-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@talend/http': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
fix tsconfig
7 changes: 7 additions & 0 deletions .changeset/fuzzy-bulldogs-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@talend/react-containers': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
add a tsconfig.build.json to exclude test files
6 changes: 6 additions & 0 deletions .changeset/gorgeous-rings-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@talend/react-sagas': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
6 changes: 6 additions & 0 deletions .changeset/grumpy-bulldogs-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@talend/react-cmf-cqrs': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
7 changes: 7 additions & 0 deletions .changeset/lemon-moons-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@talend/design-system': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
remove useless cypress config (toto.cypress.config.js)
8 changes: 8 additions & 0 deletions .changeset/little-bikes-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@talend/icons': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
prepare scripts for pnpm
adapt scripts following changes made in scripts-config-babel
6 changes: 6 additions & 0 deletions .changeset/lovely-parrots-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@talend/react-forms': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
7 changes: 7 additions & 0 deletions .changeset/modern-phones-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@talend/design-docs': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
remove link to design system (circular dep)
8 changes: 8 additions & 0 deletions .changeset/orange-eyes-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@talend/scripts-utils': minor
---

fix test to use package existing in the package.json
remove link to scripts-core (circular dep)
add missing deps
adapt code for pnpm
6 changes: 6 additions & 0 deletions .changeset/sharp-swans-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@talend/react-storybook-cmf': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
6 changes: 6 additions & 0 deletions .changeset/sharp-vans-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@talend/scripts-core': minor
---

update babel config to use babel.config.js instead of .babelrc.json
update scripts following changes made in scripts-config-babel
6 changes: 6 additions & 0 deletions .changeset/smooth-doors-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@talend/router-bridge': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
6 changes: 6 additions & 0 deletions .changeset/sweet-rockets-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@talend/ui-playground': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
6 changes: 6 additions & 0 deletions .changeset/ten-crabs-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@talend/react-cmf-router': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
8 changes: 8 additions & 0 deletions .changeset/tender-pans-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@talend/react-dataviz': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
remove useless config of jest (use the common)
fix config issue in tsconfig.json
6 changes: 6 additions & 0 deletions .changeset/thirty-pillows-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@talend/react-cmf-webpack-plugin': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
7 changes: 7 additions & 0 deletions .changeset/three-pigs-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@talend/module-to-cdn': minor
---
remove babel config: there is no build task on this package
remove link to scripts-core to run lint (circular dependency),
remove link to tools/eslint-config and add it's own eslint config (circular dependency: fork/module-to-cdn > tools/eslint-config > tools/scripts-config-cdn > fork/module-to-cdn)
add missing deps
7 changes: 7 additions & 0 deletions .changeset/tidy-laws-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@talend/ui-storybook-one': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
fix for pnpm (not possible to ref a package to itself)
8 changes: 8 additions & 0 deletions .changeset/tidy-lemons-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@talend/react-stepper': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
add tsconfig.build.json to exclude test
fix prettier config
6 changes: 6 additions & 0 deletions .changeset/violet-comics-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@talend/react-bootstrap': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
7 changes: 7 additions & 0 deletions .changeset/wild-turkeys-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@talend/react-components': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
add a tsconfig.build.json to exclude test files
6 changes: 6 additions & 0 deletions .changeset/wise-pans-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@talend/react-faceted-search': minor
---

update babel config to use babel.config.js instead of .babelrc.json
add missing deps
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"prettier.prettierPath": "./node_modules/prettier/index.cjs",
"prettier.configPath": ".prettierrc.js",
"eslint.workingDirectories": [
{
"pattern": "packages/**"
Expand Down
3 changes: 0 additions & 3 deletions fork/module-to-cdn/.babelrc

This file was deleted.

14 changes: 13 additions & 1 deletion fork/module-to-cdn/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
{
"root": true,
"extends": "@talend"
"extends": ["eslint:recommended", "plugin:prettier/recommended", "plugin:import/recommended"],
"env": {
"es6": true,
"node": true,
"jasmine": true,
"jest": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"requireConfigFile": false
}
}
4 changes: 3 additions & 1 deletion fork/module-to-cdn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"scripts": {
"test": "jest index.test.js",
"test:cron": "jest modules.test.js",
"lint": "talend-scripts lint ./"
"lint": "eslint ./"
},
"files": [
"index.js",
Expand All @@ -38,6 +38,8 @@
"semver": "^7.5.4"
},
"devDependencies": {
"@babel/eslint-parser": "^7.22.15",
"eslint": "^7.32.0",
"jest": "^29.7.0"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion fork/react-bootstrap/.babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@talend/scripts-config-babel/.babelrc.json"
"extends": "@talend/scripts-config-babel/babel.config.js"
}
3 changes: 3 additions & 0 deletions fork/react-bootstrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@
"react-dom": ">=16.3.0"
},
"devDependencies": {
"@talend/eslint-config": "^12.1.1",
"@talend/eslint-plugin": "^1.0.1",
"@talend/scripts-core": "^16.0.0",
"@talend/scripts-config-babel": "^13.0.0",
"@talend/scripts-config-react-webpack": "^16.0.0",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^12.1.5",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"husky": "^8.0.3",
"i18next-scanner": "^4.4.0",
"lint-staged": "^13.3.0",
"prettier": "^2.8.8"
"prettier": "^3.0.3"
},
"scripts": {
"postinstall": "talend-yarn-workspace run build:lib",
Expand Down
2 changes: 1 addition & 1 deletion packages/cmf-cqrs/.babelrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@talend/scripts-config-babel/.babelrc.json"
"extends": "@talend/scripts-config-babel/babel.config.js"
}
5 changes: 5 additions & 0 deletions packages/cmf-cqrs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,13 @@
"redux-saga": "^1.2.3"
},
"devDependencies": {
"@talend/eslint-config": "^12.1.1",
"@talend/eslint-plugin": "^1.0.1",
"@talend/scripts-core": "^16.0.0",
"@talend/scripts-config-babel": "^13.0.0",
"@talend/scripts-config-react-webpack": "^16.0.0",
"@talend/scripts-config-typescript": "^11.1.0",
"@testing-library/react": "^12.1.5",
"@testing-library/react-hooks": "^8.0.1",
"mock-socket": "^9.3.1",
"prop-types": "^15.8.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/cmf-router/.babelrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@talend/scripts-config-babel/.babelrc.json"
"extends": "@talend/scripts-config-babel/babel.config.js"
}
3 changes: 3 additions & 0 deletions packages/cmf-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
},
"devDependencies": {
"@redux-saga/testing-utils": "^1.1.5",
"@talend/eslint-config": "^12.1.1",
"@talend/eslint-plugin": "^1.0.1",
"@talend/scripts-core": "^16.0.0",
"@talend/scripts-config-babel": "^13.0.0",
"@talend/scripts-config-react-webpack": "^16.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cmf/.babelrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@talend/scripts-config-babel/.babelrc.json"
"extends": "@talend/scripts-config-babel/babel.config.js"
}
2 changes: 1 addition & 1 deletion packages/cmf/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const defaults = require('../../node_modules/@talend/scripts-config-jest/jest.config.js');
const defaults = require('@talend/scripts-config-jest/jest.config.js');

module.exports = {
...defaults,
Expand Down
4 changes: 4 additions & 0 deletions packages/cmf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@
},
"devDependencies": {
"@redux-saga/testing-utils": "^1.1.5",
"@talend/eslint-config": "^12.1.1",
"@talend/eslint-plugin": "^1.0.1",
"@talend/scripts-core": "^16.0.0",
"@talend/scripts-config-babel": "^13.0.0",
"@talend/scripts-config-jest": "^13.0.0",
"@talend/scripts-config-react-webpack": "^16.0.0",
"@testing-library/react": "^12.1.5",
"jest-in-case": "^1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/components/.babelrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@talend/scripts-config-babel/.babelrc.json"
"extends": "@talend/scripts-config-babel/babel.config.js"
}
Loading

0 comments on commit 3f9c8a7

Please sign in to comment.