Skip to content

Commit

Permalink
Update to yarn berry
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed Jul 16, 2024
1 parent c21dd57 commit 4c6273e
Show file tree
Hide file tree
Showing 7 changed files with 8,131 additions and 5,044 deletions.
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

0 comments on commit 4c6273e

Please sign in to comment.