Skip to content

Commit 9179f5a

Browse files
committed
chore: use npm workspaces.
1 parent 7de781f commit 9179f5a

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
- uses: actions/checkout@v3
1212
- uses: actions/setup-node@v2
1313
with:
14-
node-version: 14
14+
node-version: 16
1515

1616
- run: npm install
17-
- run: npm run hoist
17+
- run: npm install --workspaces
1818
- run: npm run build
1919
- run: npm run doc
2020

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
"private": true,
44
"scripts": {
55
"⬇️⬇️⬇️⬇️⬇️ package ⬇️⬇️⬇️⬇️⬇️": "▼▼▼▼▼ package ▼▼▼▼▼",
6-
"build": "npm run build:loader",
7-
"build:loader": "lerna exec --scope markdown-react-code-preview-loader -- npm run build",
8-
"watch:loader": "lerna exec --scope markdown-react-code-preview-loader -- npm run watch",
6+
"watch": "npm run-script watch --workspace markdown-react-code-preview-loader",
7+
"build": "npm run-script build --workspace markdown-react-code-preview-loader",
8+
"doc": "npm run-script build --workspace website",
9+
"start": "npm run-script start --workspace website",
910
"⬆️⬆️⬆️⬆️⬆️ package ⬆️⬆️⬆️⬆️⬆️": "▲▲▲▲▲ package ▲▲▲▲▲",
10-
"start": "lerna exec --scope website -- npm run start",
11-
"doc": "lerna exec --scope website -- npm run build",
12-
"bootstrap": "lerna bootstrap",
13-
"hoist": "lerna bootstrap --hoist",
1411
"test": "tsbb test",
1512
"coverage": "tsbb test --coverage --bail",
1613
"prepare": "husky install",
@@ -24,6 +21,10 @@
2421
"prettier --write"
2522
]
2623
},
24+
"workspaces": [
25+
"core",
26+
"website"
27+
],
2728
"jest": {
2829
"collectCoverageFrom": [
2930
"<rootDir>/core/src/**/*.{js,jsx,ts,tsx}"

0 commit comments

Comments
 (0)