Skip to content

Commit

Permalink
Merge pull request #1257 from Borewit/update-yarn-berry
Browse files Browse the repository at this point in the history
Update to Yarn Berry
  • Loading branch information
Borewit authored Aug 2, 2024
2 parents 1659343 + c30179e commit 97fe4e3
Show file tree
Hide file tree
Showing 7 changed files with 5,761 additions and 3,201 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.yarn/releases/** binary
/.yarn/plugins/** binary
9 changes: 8 additions & 1 deletion .github/workflows/nodejs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
with:
node-version: 20.x

- run: corepack enable yarn

- name: Install development dependencies
run: yarn install

Expand All @@ -55,6 +57,9 @@ jobs:
environment: AWS S3
needs: build

env:
YARN_IGNORE_NODE: 1

strategy:
matrix:
node-version: [16.x, 18.x, 20.x, 22.x]
Expand All @@ -81,8 +86,10 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- run: corepack enable yarn

- name: Install dependencies
run: yarn install --ignore-engines
run: yarn install

- name: Download build
uses: actions/download-artifact@v4
Expand Down
16 changes: 14 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
# Project:
node_modules/
lib/**/*.js
lib/**/*.js.map
lib/**/*.d.ts
test/**/*.js
test/**/*.js.map
test/**/*.d.ts
.idea/
*.iml
coverage/
.nyc_output/

# Intellij IDEA:
.idea/
*.iml

# Yarn Berry:
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
894 changes: 894 additions & 0 deletions .yarn/releases/yarn-berry.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-berry.cjs
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"lib/**/*.d.ts"
],
"scripts": {
"clean": "del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts test/**/*.js test/**/*.js.map coverage",
"clean": "del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map' 'coverage'",
"mocha": "mocha",
"test": "npm run lint && npm run mocha",
"test": "yarn run lint && yarn run mocha",
"compile-lib": "tsc -p lib/tsconfig.json",
"compile-test": "tsc -p test",
"compile": "npm run compile-lib && npm run compile-test",
"build": "npm run clean && yarn run compile",
"eslint": "eslint lib --ext .ts --ignore-pattern *.d.ts",
"lint": "npm run eslint"
"compile": "yarn run compile-lib && yarn run compile-test",
"build": "yarn run clean && yarn run compile",
"eslint": "eslint lib --ext .ts --ignore-pattern '*.d.ts'",
"lint": "yarn run eslint"
},
"keywords": [
"audio",
Expand Down
Loading

0 comments on commit 97fe4e3

Please sign in to comment.