Skip to content

Commit 0763b36

Browse files
committed
ci: remove @lerna-lite/exec
1 parent 0291008 commit 0763b36

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/get-matrix.mjs

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ const packagesPath = join(__dirname, '../../packages')
1010

1111
for (const packagePath of await readdir(packagesPath)) {
1212
const pkg = join(packagesPath, packagePath, 'package.json')
13-
const { name } = JSON.parse(await readFile(pkg))
14-
packages.push(name)
13+
const { name, scripts } = JSON.parse(await readFile(pkg))
14+
if (scripts && scripts.test && scripts.test !== 'exit 0') {
15+
packages.push(name)
16+
}
1517
}
1618

1719
console.log(`{"package":${JSON.stringify(packages)}}`)

.github/workflows/pull_request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
version: latest
4747
run_install: true
4848
- name: Test
49-
run: pnpm run test --scope "${{ matrix.package }}"
49+
run: pnpm --filter "${{ matrix.package }}" exec c8 pnpm test
5050
env:
5151
PROXY_USERNAME: ${{ secrets.PROXY_USERNAME }}
5252
PROXY_PASSWORD: ${{ secrets.PROXY_PASSWORD }}

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@
9090
"@commitlint/config-conventional": "latest",
9191
"@ksmithut/prettier-standard": "latest",
9292
"@lerna-lite/cli": "latest",
93-
"@lerna-lite/exec": "latest",
9493
"@lerna-lite/publish": "latest",
9594
"browser-sync": "latest",
9695
"c8": "latest",
@@ -115,7 +114,7 @@
115114
},
116115
"scripts": {
117116
"build": "gulp build",
118-
"clean": "pnpm -r exec -- rm -rf node_modules",
117+
"clean": "pnpm --recursive exec -- rm -rf node_modules",
119118
"contributors": "pnpm run contributors:add && pnpm run contributors:commit",
120119
"contributors:add": "pnpm --recursive --parallel exec -- finepack",
121120
"contributors:commit": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
@@ -127,7 +126,7 @@
127126
"prerelease": "pnpm run update:check",
128127
"pretest": "pnpm run lint",
129128
"release": "lerna publish --yes --sort --conventional-commits -m \"chore(release): %s\" --create-release github",
130-
"test": "c8 lerna exec pnpm run test",
129+
"test": "c8 pnpm --recursive --sequential test",
131130
"update": "pnpm --recursive --parallel exec ncu -u",
132131
"update:check": "pnpm --recursive --parallel exec ncu -errorLevel 2"
133132
},

0 commit comments

Comments
 (0)