Skip to content

Commit

Permalink
add tslib warning script (#402)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Sanders <alex@sndrs.dev>
  • Loading branch information
joecowton1 and sndrs authored Feb 2, 2023
1 parent a897441 commit 2c503bf
Show file tree
Hide file tree
Showing 29 changed files with 412 additions and 90 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ e2e: env
lint: install
$(call log,"Linting projects")
@corepack pnpm nx run-many --target=lint --all=true --skip-nx-cache=$(SKIP_NX_CACHE)
@node ./tools/scripts/check-packages-for-tslib.mjs

# attemps to fix lint errors across all projects
.PHONY: fix
Expand Down
4 changes: 4 additions & 0 deletions libs/@csnx/hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"jest": "29.3.1",
"jest-environment-jsdom": "29.3.1",
"ts-jest": "29.0.3",
"tslib": "2.4.1",
"typescript": "4.3.2"
},
"peerDependencies": {
"tslib": "^2.4.1"
}
}
6 changes: 6 additions & 0 deletions libs/@guardian/ab-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @guardian/ab-core

## 3.0.0

### Major Changes

- c6366dd: Add `tslib@^2.4.1` to peerDependencies

## 2.0.1

### Patch Changes
Expand Down
4 changes: 3 additions & 1 deletion libs/@guardian/ab-core/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"name": "@guardian/ab-core",
"version": "2.0.1",
"version": "3.0.0",
"private": false,
"description": "A client-side library for A/B & multivariate testing",
"license": "Apache-2.0",
"sideEffects": false,
"devDependencies": {
"tslib": "2.4.1",
"typescript": "4.3.2"
},
"peerDependencies": {
"tslib": "^2.4.1",
"typescript": "^4.3.2"
},
"peerDependenciesMeta": {
Expand Down
11 changes: 11 additions & 0 deletions libs/@guardian/ab-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @guardian/ab-react

## 3.0.0

### Major Changes

- c6366dd: Add `tslib@^2.4.1` to peerDependencies

### Patch Changes

- Updated dependencies [c6366dd]
- @guardian/ab-core@3.0.0

## 2.0.1

### Patch Changes
Expand Down
8 changes: 5 additions & 3 deletions libs/@guardian/ab-react/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
{
"name": "@guardian/ab-react",
"version": "2.0.1",
"version": "3.0.0",
"private": false,
"description": "A React library for A/B & multivariate testing",
"license": "Apache-2.0",
"sideEffects": false,
"devDependencies": {
"@emotion/react": "11.0.0",
"@guardian/ab-core": "2.0.0",
"@guardian/ab-core": "3.0.0",
"@testing-library/react": "11.2.2",
"@types/react": "~17.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"tslib": "2.4.1",
"typescript": "4.3.2"
},
"peerDependencies": {
"@guardian/ab-core": "^2.0.0",
"@guardian/ab-core": "^3.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"tslib": "^2.4.1",
"typescript": "^4.3.2"
},
"peerDependenciesMeta": {
Expand Down
15 changes: 15 additions & 0 deletions libs/@guardian/atoms-rendering/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @guardian/atoms-rendering

## 26.0.0

### Major Changes

- c6366dd: Add `tslib@^2.4.1` to peerDependencies

### Patch Changes

- Updated dependencies [c6366dd]
- Updated dependencies [b4104c1]
- Updated dependencies [05a5836]
- @guardian/source-foundations@9.0.0
- @guardian/source-react-components@11.0.0
- @guardian/libs@13.0.0

## 25.1.6

### Patch Changes
Expand Down
17 changes: 9 additions & 8 deletions libs/@guardian/atoms-rendering/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "@guardian/atoms-rendering",
"version": "25.1.6",
"version": "26.0.0",
"dependencies": {
"is-mobile": "^3.1.1"
},
"devDependencies": {
"@babel/core": "7.20.5",
"@emotion/eslint-plugin": "11.7.0",
"@emotion/react": "11.1.5",
"@guardian/ab-core": "2.0.1",
"@guardian/ab-core": "3.0.0",
"@guardian/commercial-core": "5.0.0",
"@guardian/consent-management-platform": "11.0.0",
"@guardian/eslint-plugin-source-foundations": "9.0.3",
"@guardian/eslint-plugin-source-react-components": "11.0.3",
"@guardian/eslint-plugin-source-foundations": "10.0.0",
"@guardian/eslint-plugin-source-react-components": "11.0.0",
"@guardian/libs": "12.0.0",
"@guardian/source-foundations": "8.0.0",
"@guardian/source-react-components": "10.0.1",
"@guardian/source-foundations": "9.0.0",
"@guardian/source-react-components": "11.0.0",
"@storybook/addon-viewport": "6.5.14",
"@testing-library/dom": "7.29.1",
"@testing-library/jest-dom": "5.16.3",
Expand All @@ -37,11 +37,12 @@
"@guardian/commercial-core": "^5.0.0",
"@guardian/consent-management-platform": "^11.0.0",
"@guardian/libs": "^12.0.0",
"@guardian/source-foundations": "^8.0.0",
"@guardian/source-react-components": "^10.0.0",
"@guardian/source-foundations": "^9.0.0",
"@guardian/source-react-components": "^11.0.0",
"lodash.debounce": "^4.0.6",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"tslib": "^2.4.1",
"typescript": "^4.8.4"
},
"peerDependenciesMeta": {
Expand Down
6 changes: 6 additions & 0 deletions libs/@guardian/browserslist-config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @guardian/browserslist-config

## 4.0.0

### Major Changes

- c6366dd: Add `tslib@^2.4.1` to peerDependencies

## 3.0.0

### Major Changes
Expand Down
8 changes: 5 additions & 3 deletions libs/@guardian/browserslist-config/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{
"name": "@guardian/browserslist-config",
"version": "3.0.0",
"version": "4.0.0",
"description": "Browserslist config for Guardian websites",
"main": "browserslist.js",
"scripts": {
"update-readme": "node ./scripts/update-readme.mjs"
},
"devDependencies": {
"@guardian/browserslist-config": "workspace:*",
"browserslist": "4.21.4"
"browserslist": "4.21.4",
"tslib": "2.4.1"
},
"peerDependencies": {
"browserslist": "^4.21.4"
"browserslist": "^4.21.4",
"tslib": "^2.4.1"
},
"publishConfig": {
"access": "public"
Expand Down
11 changes: 11 additions & 0 deletions libs/@guardian/eslint-config-typescript/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @guardian/eslint-config-typescript

## 4.0.0

### Major Changes

- c6366dd: Add `tslib@^2.4.1` to peerDependencies

### Patch Changes

- Updated dependencies [c6366dd]
- @guardian/eslint-config@3.0.0

## 3.0.0

### Major Changes
Expand Down
4 changes: 3 additions & 1 deletion libs/@guardian/eslint-config-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@guardian/eslint-config-typescript",
"version": "3.0.0",
"version": "4.0.0",
"description": "ESLint config for Guardian TypeScript projects",
"main": "index.js",
"dependencies": {
Expand All @@ -13,10 +13,12 @@
},
"devDependencies": {
"eslint": "8.0.0",
"tslib": "2.4.1",
"typescript": "4.2.2"
},
"peerDependencies": {
"eslint": "^8.0.0",
"tslib": "^2.4.1",
"typescript": "^4.2.2"
}
}
6 changes: 6 additions & 0 deletions libs/@guardian/eslint-config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @guardian/eslint-config

## 3.0.0

### Major Changes

- c6366dd: Add `tslib@^2.4.1` to peerDependencies

## 2.0.3

### Patch Changes
Expand Down
8 changes: 5 additions & 3 deletions libs/@guardian/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@guardian/eslint-config",
"version": "2.0.3",
"version": "3.0.0",
"description": "ESLint config for Guardian JavaScript projects",
"main": "index.js",
"dependencies": {
Expand All @@ -9,9 +9,11 @@
"eslint-plugin-import": "2.26.0"
},
"devDependencies": {
"eslint": "8.0.0"
"eslint": "8.0.0",
"tslib": "^2.4.1"
},
"peerDependencies": {
"eslint": "^8.0.0"
"eslint": "^8.0.0",
"tslib": "^2.4.1"
}
}
14 changes: 14 additions & 0 deletions libs/@guardian/eslint-plugin-source-foundations/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @guardian/eslint-plugin-source-foundations

## 10.0.0

### Major Changes

- c6366dd: Add `tslib@^2.4.1` to peerDependencies

### Patch Changes

- Updated dependencies [c6366dd]
- Updated dependencies [b4104c1]
- Updated dependencies [05a5836]
- @guardian/source-foundations@9.0.0
- @guardian/libs@13.0.0

## 9.0.3

### Patch Changes
Expand Down
7 changes: 4 additions & 3 deletions libs/@guardian/eslint-plugin-source-foundations/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@guardian/eslint-plugin-source-foundations",
"version": "9.0.3",
"version": "10.0.0",
"description": "ESLint plugin for Guardian projects using the `@guardian/source-foundations` package.",
"dependencies": {
"@typescript-eslint/eslint-plugin": "5.46.1",
Expand All @@ -9,7 +9,7 @@
},
"devDependencies": {
"@guardian/libs": "12.0.0",
"@guardian/source-foundations": "8.0.0",
"@guardian/source-foundations": "9.0.0",
"@types/eslint": "8.4.6",
"@types/estree": "0.0.51",
"eslint": "8.0.0",
Expand All @@ -18,8 +18,9 @@
},
"peerDependencies": {
"@guardian/libs": "^12.0.0",
"@guardian/source-foundations": "^8.0.0",
"@guardian/source-foundations": "^9.0.0",
"eslint": "^8.0.0",
"tslib": "^2.4.1",
"typescript": "^4.3.2"
},
"peerDependenciesMeta": {
Expand Down
14 changes: 14 additions & 0 deletions libs/@guardian/eslint-plugin-source-react-components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @guardian/eslint-plugin-source-react-components

## 12.0.0

### Major Changes

- c6366dd: Add `tslib@^2.4.1` to peerDependencies

### Patch Changes

- Updated dependencies [c6366dd]
- Updated dependencies [b4104c1]
- Updated dependencies [05a5836]
- @guardian/source-react-components@11.0.0
- @guardian/libs@13.0.0

## 11.0.3

### Patch Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@guardian/eslint-plugin-source-react-components",
"version": "11.0.3",
"version": "12.0.0",
"description": "ESLint plugin for Guardian projects using the `@guardian/source-react-components` package.",
"dependencies": {
"@typescript-eslint/eslint-plugin": "5.46.1",
Expand All @@ -9,8 +9,8 @@
"devDependencies": {
"@emotion/react": "11.0.0",
"@guardian/libs": "12.0.0",
"@guardian/source-foundations": "8.0.0",
"@guardian/source-react-components": "10.0.1",
"@guardian/source-foundations": "9.0.0",
"@guardian/source-react-components": "11.0.0",
"@types/eslint": "8.4.6",
"@types/estree": "0.0.51",
"eslint": "8.0.0",
Expand All @@ -20,8 +20,9 @@
},
"peerDependencies": {
"@guardian/libs": "^12.0.0",
"@guardian/source-react-components": "^10.0.1",
"@guardian/source-react-components": "^11.0.0",
"eslint": "^8.0.0",
"tslib": "^2.4.1",
"typescript": "^4.3.2"
},
"peerDependenciesMeta": {
Expand Down
6 changes: 6 additions & 0 deletions libs/@guardian/prettier/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @guardian/prettier

## 3.0.0

### Major Changes

- c6366dd: Add `tslib@^2.4.1` to peerDependencies

## 2.1.5

### Patch Changes
Expand Down
8 changes: 5 additions & 3 deletions libs/@guardian/prettier/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"name": "@guardian/prettier",
"version": "2.1.5",
"version": "3.0.0",
"description": "Prettier config for Guardian JavaScript & TypeScript projects",
"main": "index.js",
"devDependencies": {
"prettier": "2.4.0"
"prettier": "2.4.0",
"tslib": "2.4.1"
},
"peerDependencies": {
"prettier": "^2.4.0"
"prettier": "^2.4.0",
"tslib": "^2.4.1"
}
}
Loading

0 comments on commit 2c503bf

Please sign in to comment.