Skip to content

Commit ffd1a03

Browse files
committed
Clean up root level npm commands
This adds some root-level npm commands which will run the -ws versions of the commands in a more convenient way. Issue #248 Add some root level convenience script
1 parent 6194e50 commit ffd1a03

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ Update values as needed (see [Environment Variables](#environment-variables).
3232

3333
```bash
3434
npm install
35-
npm install -ws
3635
```
3736

3837
4. `psql` needs to be installed for running tests
@@ -82,7 +81,7 @@ For these, simply fill in any fake value to prevent `require-env-variable` from
8281
Run
8382

8483
```bash
85-
npm run lint -ws
84+
npm run lint
8685
```
8786

8887
## Testing
@@ -96,7 +95,7 @@ docker compose up -d
9695
then run tests with
9796

9897
```bash
99-
npm run test -ws
98+
npm run test
10099
```
101100

102101
or, for a single project, specify the workspace

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
"version": "0.0.0",
44
"description": "A monolithic backend for Permanent.org",
55
"private": true,
6+
"scripts": {
7+
"build": "npm run build --ws",
8+
"lint": "npm run lint --ws",
9+
"test": "npm run test --ws --if-present"
10+
},
611
"workspaces": [
712
"./packages/logger",
813
"./packages/s3-utils",

0 commit comments

Comments
 (0)