1
0
mirror of synced 2026-05-22 14:43:19 +00:00

Update to yarn berry

This commit is contained in:
Borewit
2024-07-16 19:30:42 +02:00
parent 0587ce328c
commit 56bc3f032d
7 changed files with 7237 additions and 5044 deletions
+14 -8
View File
@@ -1,9 +1,9 @@
name: Node.js CI
on:
push:
branches: ['master']
pull_request:
branches: ['master']
branches: [ "master" ]
push:
branches: [ "master" ]
jobs:
@@ -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
@@ -48,6 +48,9 @@ jobs:
needs: build
env:
YARN_IGNORE_NODE: 1
strategy:
matrix:
node-version: [16.x, 18.x, 20.x, 22.x]
@@ -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
+14 -3
View File
@@ -1,7 +1,5 @@
# Project
node_modules/
.idea/
*.iml
src/
test/**/*.js
test/**/*.js.map
test/**/*.d.ts
@@ -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
BIN
View File
Binary file not shown.
+3
View File
@@ -0,0 +1,3 @@
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.3.1.cjs
+2 -2
View File
@@ -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}
@@ -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
+4 -3
View File
@@ -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",
@@ -143,5 +143,6 @@
"license": "MIT",
"bugs": {
"url": "https://github.com/Borewit/music-metadata/issues"
}
},
"packageManager": "yarn@4.3.1"
}
+7200 -5028
View File
File diff suppressed because it is too large Load Diff