Skip to content

Commit

Permalink
Use npm workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 8, 2021
1 parent 10686c4 commit a54c27b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
- uses: dcodeIO/setup-node-nvm@master
with:
node-version: ${{matrix.node}}
- run: npm install -g npm
- run: npm install
- run: npm test
- uses: codecov/codecov-action@v1
Expand Down
3 changes: 0 additions & 3 deletions lerna.json

This file was deleted.

12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@
"Rongjian Zhang <pd4d10@gmail.com>"
],
"type": "module",
"workspaces": [
"packages/remark-math",
"packages/remark-html-katex",
"packages/rehype-katex",
"packages/rehype-mathjax"
],
"devDependencies": {
"@types/tape": "^4.0.0",
"c8": "^7.0.0",
"lerna": "^4.0.0",
"prettier": "^2.0.0",
"rehype-parse": "^8.0.0",
"rehype-stringify": "^9.0.0",
Expand All @@ -40,10 +45,9 @@
"xo": "^0.45.0"
},
"scripts": {
"postinstall": "lerna bootstrap --no-ci",
"build": "lerna run build",
"build": "npm run build --workspaces",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"test-api": "lerna run test-api",
"test-api": "npm run test-api --workspaces",
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov --exclude \"packages/*/test.js\" --exclude \"packages/*/test/**/*.js\" npm run test-api",
"test": "npm run build && npm run format && npm run test-coverage"
},
Expand Down

0 comments on commit a54c27b

Please sign in to comment.