Skip to content

Commit d9d36dd

Browse files
committed
Introduce heft-suppress-browserslist-warning-plugin.
1 parent 1aa5eed commit d9d36dd

File tree

22 files changed

+225
-56
lines changed

22 files changed

+225
-56
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,7 @@ jobs:
3030
run: node common/scripts/install-run-rush.js install
3131
- name: Rush retest (install-run-rush)
3232
run: node common/scripts/install-run-rush.js retest --verbose --production
33-
env:
34-
# Prevent time-based browserslist update warning
35-
# See https://github.com/microsoft/rushstack/issues/2981
36-
BROWSERSLIST_IGNORE_OLD_DATA: 1
3733
- name: Rush test (rush-lib)
3834
run: node apps/rush/lib/start-dev.js test --verbose --production --timeline
39-
env:
40-
# Prevent time-based browserslist update warning
41-
# See https://github.com/microsoft/rushstack/issues/2981
42-
BROWSERSLIST_IGNORE_OLD_DATA: 1
4335
- name: Ensure repo README is up-to-date
4436
run: node repo-scripts/repo-toolbox/lib/start.js readme --verify

build-tests/install-test-workspace/workspace/common/pnpm-lock.yaml

Lines changed: 30 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@rushstack/heft-suppress-browserslist-warning-plugin",
5+
"comment": "Inital project creation.",
6+
"type": "minor"
7+
}
8+
],
9+
"packageName": "@rushstack/heft-suppress-browserslist-warning-plugin"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@rushstack/heft-web-rig",
5+
"comment": "Include @rushstack/heft-suppress-browserslist-warning-plugin to suppress the warning printed when the `browserslist` package decides it's out of date.",
6+
"type": "minor"
7+
}
8+
],
9+
"packageName": "@rushstack/heft-web-rig"
10+
}

common/config/azure-pipelines/templates/build.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,7 @@ steps:
1414
displayName: 'Rush Install'
1515
- script: 'node common/scripts/install-run-rush.js retest --verbose --production'
1616
displayName: 'Rush retest (install-run-rush)'
17-
env:
18-
# Prevent time-based browserslist update warning
19-
# See https://github.com/microsoft/rushstack/issues/2981
20-
BROWSERSLIST_IGNORE_OLD_DATA: 1
2117
- script: 'node apps/rush/lib/start-dev.js test --verbose --production --timeline'
2218
displayName: 'Rush test (rush-lib)'
23-
env:
24-
# Prevent time-based browserslist update warning
25-
# See https://github.com/microsoft/rushstack/issues/2981
26-
BROWSERSLIST_IGNORE_OLD_DATA: 1
2719
- script: 'node repo-scripts/repo-toolbox/lib/start.js readme --verify'
2820
displayName: 'Ensure repo README is up-to-date'

common/config/rush/browser-approved-packages.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
"name": "@reduxjs/toolkit",
1515
"allowedCategories": [ "libraries" ]
1616
},
17+
{
18+
"name": "@rushstack/heft-suppress-browserslist-warning-plugin",
19+
"allowedCategories": [ "libraries" ]
20+
},
1721
{
1822
"name": "axios",
1923
"allowedCategories": [ "libraries" ]

common/config/rush/pnpm-lock.yaml

Lines changed: 17 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/config/rush/repo-state.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// DO NOT MODIFY THIS FILE MANUALLY BUT DO COMMIT IT. It is generated and used by Rush.
22
{
3-
"pnpmShrinkwrapHash": "19975bf7cfd9dfef0de7b4b7767ac445a97816a4",
3+
"pnpmShrinkwrapHash": "adc5b5a0ce95a89b21b2e0cd908aea53c399ffc8",
44
"preferredVersionsHash": "5222ca779ae69ebfd201e39c17f48ce9eaf8c3c2"
55
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## API Report File for "@rushstack/heft-suppress-browserslist-warning-plugin"
2+
3+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4+
5+
```ts
6+
7+
import type { IHeftPlugin } from '@rushstack/heft';
8+
9+
// @public (undocumented)
10+
const _default: IHeftPlugin<void>;
11+
export default _default;
12+
13+
// (No @packageDocumentation comment for this package)
14+
15+
```
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2+
require('@rushstack/eslint-config/patch/modern-module-resolution');
3+
4+
module.exports = {
5+
extends: [
6+
'@rushstack/eslint-config/profile/node-trusted-tool',
7+
'@rushstack/eslint-config/mixins/friendly-locals'
8+
],
9+
parserOptions: { tsconfigRootDir: __dirname }
10+
};

0 commit comments

Comments
 (0)