Skip to content

Commit

Permalink
chore: use npm workspaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 11, 2022
1 parent 7de781f commit 9179f5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16

- run: npm install
- run: npm run hoist
- run: npm install --workspaces
- run: npm run build
- run: npm run doc

Expand Down
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
"private": true,
"scripts": {
"⬇️⬇️⬇️⬇️⬇️ package ⬇️⬇️⬇️⬇️⬇️": "▼▼▼▼▼ package ▼▼▼▼▼",
"build": "npm run build:loader",
"build:loader": "lerna exec --scope markdown-react-code-preview-loader -- npm run build",
"watch:loader": "lerna exec --scope markdown-react-code-preview-loader -- npm run watch",
"watch": "npm run-script watch --workspace markdown-react-code-preview-loader",
"build": "npm run-script build --workspace markdown-react-code-preview-loader",
"doc": "npm run-script build --workspace website",
"start": "npm run-script start --workspace website",
"⬆️⬆️⬆️⬆️⬆️ package ⬆️⬆️⬆️⬆️⬆️": "▲▲▲▲▲ package ▲▲▲▲▲",
"start": "lerna exec --scope website -- npm run start",
"doc": "lerna exec --scope website -- npm run build",
"bootstrap": "lerna bootstrap",
"hoist": "lerna bootstrap --hoist",
"test": "tsbb test",
"coverage": "tsbb test --coverage --bail",
"prepare": "husky install",
Expand All @@ -24,6 +21,10 @@
"prettier --write"
]
},
"workspaces": [
"core",
"website"
],
"jest": {
"collectCoverageFrom": [
"<rootDir>/core/src/**/*.{js,jsx,ts,tsx}"
Expand Down

0 comments on commit 9179f5a

Please sign in to comment.