Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to yarn berry (v4.2.2) #2051

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions .github/workflows/nodejs-ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Node.js CI
on:
push:
branches: ['master']
pull_request:
branches: ['master']
branches: [ "master" ]
push:
branches: [ "master" ]

jobs:

Expand All @@ -19,11 +19,11 @@ jobs:
with:
node-version: 22.x

- name: Install production dependencies, check node engine compatibility
run: yarn install --production=true
- name: Enable Corepack
run: corepack enable

- name: Install development dependencies
run: yarn install --production=false --ignore-engines
- name: Yarn install
run: yarn install

- name: Build & Code analysis
run: yarn run lint
Expand All @@ -48,6 +48,9 @@ jobs:

needs: build

env:
YARN_IGNORE_NODE: 1

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

- name: Enable Corepack
run: corepack enable

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

- name: Download build
uses: actions/download-artifact@v4
Expand Down
17 changes: 14 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Project
node_modules/
.idea/
*.iml
src/
test/**/*.js
test/**/*.js.map
test/**/*.d.ts
Expand All @@ -15,3 +13,16 @@ test/_test-issues.ts
coverage/
.nyc_output/
test/samples/zeroes.flac

#IntelliJ IDEA:
.idea
*.iml

# Yarn:
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
894 changes: 894 additions & 0 deletions .yarn/releases/yarn-4.3.1.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-4.3.1.cjs
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Test against the latest version of this Node.js version
environment:
nodejs_version: "16"
nodejs_version: "22"

version: $(package_version)-{build}

Expand All @@ -11,7 +11,7 @@ install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version
# install modules
- yarn install --ignore-engines
- yarn install

build_script:
- yarn run lint
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@
"bwf"
],
"scripts": {
"clean": "del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts src/**/*.d.ts test/**/*.js test/**/*.js.map test/**/*.js test/**/*.js.map doc-gen/**/*.js doc-gen/**/*.js.map",
"clean": "del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'src/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map' 'test/**/*.js' 'test/**/*.js.map' 'doc-gen/**/*.js' 'doc-gen/**/*.js.map'",
"compile-src": "tsc -p lib",
"compile-test": "tsc -p test",
"compile-doc": "tsc -p doc-gen",
"compile": "npm run compile-src && npm run compile-test && npm run compile-doc",
"eslint": "npx eslint lib/**/*.ts --ignore-pattern lib/**/*.d.ts example/typescript/**/*.ts test/**/*.ts doc-gen/**/*.ts",
"eslint": "eslint lib/**/*.ts --ignore-pattern lib/**/*.d.ts example/typescript/**/*.ts test/**/*.ts doc-gen/**/*.ts",
"lint-md": "remark -u preset-lint-markdown-style-guide .",
"lint": "npm run lint-md && npm run eslint",
"test": "mocha",
Expand Down Expand Up @@ -143,5 +143,6 @@
"license": "MIT",
"bugs": {
"url": "https://github.com/Borewit/music-metadata/issues"
}
},
"packageManager": "[email protected]"
}
Loading
Loading