Upgrade to Yarn 4 and fix vulnerability check (#3353)
This commit is contained in:
committed by
Harshavardhana
parent
779f2a86e5
commit
cfd60bdd91
1
web-app/.yarnrc.yml
Normal file
1
web-app/.yarnrc.yml
Normal file
@@ -0,0 +1 @@
|
||||
nodeLinker: node-modules
|
||||
@@ -5,5 +5,5 @@ then
|
||||
\. "$NVM_DIR/nvm.sh";
|
||||
nvm use;
|
||||
fi
|
||||
yarn install
|
||||
yarn install --no-check-resolutions
|
||||
yarn prettier --check .
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject",
|
||||
"playwright": "PORT=5005 USE_BABEL_PLUGIN_ISTANBUL=1 react-app-rewired start",
|
||||
"find-deadcode": "ts-prune -s consoleApi.ts | (! grep -v 'used in module')"
|
||||
"find-deadcode": "ts-prune -s consoleApi.ts | sh -c '(! grep -v \"used in module\")'"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "react-app",
|
||||
@@ -59,7 +59,7 @@
|
||||
"proxy": "http://localhost:9090/",
|
||||
"devDependencies": {
|
||||
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
||||
"@playwright/test": "^1.43.1",
|
||||
"@playwright/test": "^1.44.0",
|
||||
"@types/lodash": "^4.17.0",
|
||||
"@types/luxon": "^3.4.2",
|
||||
"@types/node": "20.12.8",
|
||||
@@ -89,20 +89,9 @@
|
||||
"nth-check": "^2.0.1",
|
||||
"yaml": "^2.4.2",
|
||||
"postcss": "^8.4.38",
|
||||
"react-scripts/**/node-forge": "^1.3.0",
|
||||
"react-scripts/**/async": "^2.6.4",
|
||||
"react-scripts/workbox-webpack-plugin/workbox-build/@surma/rollup-plugin-off-main-thread/ejs/jake/async": "^2.6.4",
|
||||
"react-scripts/webpack-dev-server/portfinder/async": "^2.6.4",
|
||||
"react-scripts/**/glob-parent": "^6.0.1",
|
||||
"react-scripts/**/minimatch": "^3.0.5",
|
||||
"react-scripts/**/loader-utils": "^2.0.4",
|
||||
"react-scripts/**/json5": "^2.2.2",
|
||||
"react-scripts/**/debug": "^3.1.0",
|
||||
"recharts/**/d3-color": "^3.1.0",
|
||||
"fast-xml-parser": "^4.3.6",
|
||||
"semver": "^7.5.2",
|
||||
"testcafe/**/tough-cookie": "^4.1.4",
|
||||
"styled-components/**/@babel/traverse": "^7.24.5"
|
||||
"semver": "^7.5.2"
|
||||
},
|
||||
"main": "index.js"
|
||||
"main": "index.js",
|
||||
"packageManager": "yarn@4.2.2"
|
||||
}
|
||||
|
||||
@@ -53,6 +53,8 @@ jobs:
|
||||
- name: Read .nvmrc
|
||||
id: node_version
|
||||
run: echo "$(cat .nvmrc)" && echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_ENV
|
||||
- name: Enable Corepack
|
||||
run: corepack enable
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ env.NVMRC }}
|
||||
@@ -69,7 +71,7 @@ jobs:
|
||||
working-directory: ./web-app
|
||||
continue-on-error: false
|
||||
run: |
|
||||
yarn install --frozen-lockfile --immutable
|
||||
yarn install --immutable --no-check-resolutions
|
||||
- name: Check for Warnings in build output
|
||||
working-directory: ./web-app
|
||||
continue-on-error: false
|
||||
@@ -171,6 +173,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Enable Corepack
|
||||
run: corepack enable
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
@@ -187,7 +191,7 @@ jobs:
|
||||
yarn add -D create-react-app
|
||||
yarn init -y
|
||||
echo "yarn install"
|
||||
yarn install
|
||||
yarn install --no-check-resolutions
|
||||
|
||||
- name: Install Playwright Browsers
|
||||
run: npx playwright install --with-deps
|
||||
|
||||
32734
web-app/yarn.lock
32734
web-app/yarn.lock
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user