Skip to content

Commit

Permalink
Utilize npm workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
kurgm committed Jan 6, 2024
1 parent f19972d commit 316c806
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 19 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,10 @@ jobs:
with:
node-version: 20
cache: npm
cache-dependency-path: ./interactive/package-lock.json
- name: Install dependencies
run: npm ci
working-directory: ./interactive
- name: Build
run: npm run build
working-directory: ./interactive
run: npm run --workspace=interactive build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
Expand Down
3 changes: 2 additions & 1 deletion interactive/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "@kurgm/slim-font-interactive",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -10,6 +11,6 @@
"vite": "^5.0.11"
},
"dependencies": {
"@kurgm/slim-font": "file:../slim"
"@kurgm/slim-font": "*"
}
}
21 changes: 17 additions & 4 deletions interactive/package-lock.json → package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"private": true,
"workspaces": [
"slim",
"interactive"
]
}
10 changes: 0 additions & 10 deletions slim/package-lock.json

This file was deleted.

0 comments on commit 316c806

Please sign in to comment.