Skip to content

Commit

Permalink
feat: set up workspaces
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew den Hertog <[email protected]>
  • Loading branch information
andrewhertog committed Sep 4, 2024
1 parent 61d0dbf commit d61bdcb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
- feat/ci
- main

env:
NODE_ENV: production

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -33,7 +30,7 @@ jobs:
jq -r '.version = '\"${new_version}\"'' package.json > package.json.tmp && mv package.json.tmp package.json
- name: Install dependencies
run: npx pnpm install
run: npx pnpm -r install

- name: Publish to OpenVSX
run: |
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@
]
},
"scripts": {
"vscode:prepublish": "npm run build:webviews && npm run compile",
"vscode:prepublish": "npm run build:ci && npm run compile",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
Expand All @@ -691,7 +691,8 @@
"format": "prettier --write .",
"build:table": "cd webviews/editable-react-table && npm run build",
"build:dictionary-side": "cd webviews/dictionary-side-panel && npm run build",
"build:webviews": "cd webviews/codex-webviews && pnpm run build:all && cd ../dictionary-side-panel && pnpm run build && cd ../editable-react-table && pnpm run build && cd ../usfm-viewer && pnpm run build && cd ../.."
"build:webviews": "cd webviews/codex-webviews && pnpm run build:all && cd ../dictionary-side-panel && pnpm run build && cd ../editable-react-table && pnpm run build && cd ../usfm-viewer && pnpm run build && cd ../..",
"build:ci": "pnpm -r --filter='./webviews/*' run build"
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.16.7",
Expand Down
2 changes: 2 additions & 0 deletions pnpm-workspaces.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- 'webviews/*'

0 comments on commit d61bdcb

Please sign in to comment.