chore: update yarn

This commit is contained in:
Nolan Lawson 2024-03-23 09:55:40 -07:00
parent c067cbab29
commit a20f3bf2ac
8 changed files with 10472 additions and 7498 deletions

View File

@ -19,24 +19,11 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '20'
# via https://github.com/actions/cache/blob/0638051/examples.md#node---yarn
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: 'yarn'
- name: yarn install
if: steps.cache.outputs.cache-hit != 'true'
run: |
yarn --immutable --ignore-scripts
yarn --immutable
# install the chromedriver corresponding to whatever version of chrome is installed
yarn add --ignore-scripts chromedriver@^$(google-chrome --version | awk '{print $3}' | cut -d. -f1)
PERF=1 yarn build:rollup

View File

@ -12,20 +12,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '20'
# via https://github.com/actions/cache/blob/0638051/examples.md#node---yarn
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: 'yarn'
- uses: preactjs/compressed-size-action@v2
with:
build-script: benchmark:bundle

View File

@ -14,7 +14,6 @@ jobs:
node-version: '20'
cache: 'yarn'
- run: sudo apt-get install fonts-noto-color-emoji
- run: yarn --frozen-lockfile
- run: yarn lint
- run: yarn benchmark:bundlesize
- run: yarn cover

16
.gitignore vendored
View File

@ -108,13 +108,6 @@ dist
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.pnp.*
/database.js
/database.js.map
/picker.js
@ -134,3 +127,12 @@ dist
/test/benchmark/picker.js
/test/benchmark/*.tachometer.json
/i18n
# yarn v2+
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

1
.yarnrc.yml Normal file
View File

@ -0,0 +1 @@
nodeLinker: node-modules

View File

@ -76,6 +76,7 @@
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-strip": "^3.0.4",
"@rollup/plugin-terser": "^0.4.4",
"@testing-library/dom": "^9.3.4",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/user-event": "^14.5.2",
@ -111,7 +112,6 @@
"recursive-readdir": "^2.2.3",
"rollup": "^4.13.0",
"rollup-plugin-analyzer": "^4.0.0",
"rollup-plugin-terser": "^7.0.2",
"sass": "^1.72.0",
"standard": "^17.1.0",
"stylelint": "^16.2.1",
@ -187,6 +187,6 @@
},
"volta": {
"node": "20.11.1",
"yarn": "1.22.22"
"yarn": "4.1.1"
}
}

View File

@ -1,4 +1,4 @@
import { terser } from 'rollup-plugin-terser'
import terser from '@rollup/plugin-terser'
export default {
input: './index.js',

17914
yarn.lock

File diff suppressed because it is too large Load Diff