Skip to content

Commit a895df3

Browse files
committed
refactor: lerna-lite
& bump yarn, turbo, codecov
1 parent 3235455 commit a895df3

File tree

7 files changed

+2853
-4418
lines changed

7 files changed

+2853
-4418
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@ on:
44
branches:
55
- main
66
pull_request:
7-
branches:
8-
- "**"
97
jobs:
108
ci:
119
name: CI
1210
runs-on: ubuntu-latest
1311
steps:
1412
- uses: actions/checkout@v4
13+
- name: Install Corepack
14+
run: npm install -g corepack
1515
- uses: actions/setup-node@v4
1616
with:
17-
node-version: 18.16.1
17+
node-version-file: .nvmrc
18+
cache: "yarn"
1819
- name: Install
19-
run: yarn install --immutable
20+
run: yarn install
2021
- name: Build
2122
run: yarn build
2223
- name: Lint
@@ -32,9 +33,8 @@ jobs:
3233
- name: Check Types
3334
run: yarn check:ts
3435
- name: Code coverage report
35-
uses: codecov/codecov-action@v2
36+
uses: codecov/codecov-action@v5
3637
with:
37-
yml: ./codecov.yml
3838
token: ${{ secrets.CODECOV_TOKEN }}
3939
flags: unittest
4040
name: codecov
@@ -43,11 +43,14 @@ jobs:
4343
runs-on: ubuntu-latest
4444
steps:
4545
- uses: actions/checkout@v4
46+
- name: Install Corepack
47+
run: npm install -g corepack
4648
- uses: actions/setup-node@v4
4749
with:
48-
node-version: 18.16.1
50+
node-version-file: .nvmrc
51+
cache: "yarn"
4952
- name: Install
50-
run: yarn install --immutable
53+
run: yarn install
5154
- name: Build
5255
run: yarn build
5356
- name: Test

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18.16.1

.yarn/releases/yarn-4.0.2.cjs

Lines changed: 0 additions & 893 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
yarnPath: .yarn/releases/yarn-4.0.2.cjs
21
nodeLinker: node-modules

lerna.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
2-
"packages": [
3-
"packages/*"
4-
],
2+
"$schema": "node_modules/@lerna-lite/cli/schemas/lerna-schema.json",
53
"version": "0.40.3",
6-
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
7-
"npmClient": "yarn"
8-
}
4+
"npmClient": "yarn",
5+
"useWorkspaces": true
6+
}

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "@html-eslint/html-eslint",
3-
"version": "0.4.0",
4-
"description": "",
5-
"main": "index.js",
3+
"version": "0.0.0",
64
"private": true,
5+
"license": "MIT",
6+
"author": "yeonjuan",
77
"scripts": {
88
"test": "turbo run test",
99
"test:legacy": "turbo run test:legacy",
@@ -23,9 +23,9 @@
2323
"new-rule": "node ./tools/add-new-rule.js",
2424
"baseline": "node ./tools/base-line/generate-baseline.mjs"
2525
},
26-
"author": "yeonjuan",
27-
"license": "MIT",
2826
"devDependencies": {
27+
"@lerna-lite/cli": "^4.1.2",
28+
"@lerna-lite/publish": "^4.1.2",
2929
"@mdn/browser-compat-data": "^6.0.10",
3030
"@parcel/transformer-sass": "2.15.0",
3131
"@types/jest": "^29.5.14",
@@ -36,17 +36,16 @@
3636
"eslint-plugin-n": "^17.15.1",
3737
"husky": "^9.1.4",
3838
"jest": "^29.7.0",
39-
"lerna": "^8.1.9",
4039
"prettier": "^3.5.2",
4140
"rimraf": "^6.0.1",
4241
"svgo": "^3",
43-
"turbo": "^2.0.11",
42+
"turbo": "^2.5.3",
4443
"typescript": "^5.8.3"
4544
},
4645
"engines": {
4746
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
4847
},
49-
"packageManager": "yarn@4.0.2",
48+
"packageManager": "yarn@4.9.1",
5049
"workspaces": [
5150
"packages/**"
5251
]

0 commit comments

Comments
 (0)