@@ -109,9 +109,8 @@ variable. For detailed instructions for each of our supported platforms, please
109
109
### Install
110
110
111
111
``` shell
112
- npm install -g lerna
113
- npm install -g typescript
114
112
npm run bootstrap
113
+ npm run compile-cli
115
114
```
116
115
117
116
### Running Tests
@@ -125,31 +124,28 @@ npm test
125
124
Run tests from a specific package:
126
125
127
126
``` shell
128
- lerna run test --scope @mongosh/cli-repl
129
- ```
130
-
131
- Run tests with all output from packages:
132
-
133
- ``` shell
134
- lerna run test --stream
127
+ npm -w @mongosh/cli-repl run test
135
128
```
136
129
137
130
To test against a specific version, the ` MONGOSH_SERVER_TEST_VERSION `
138
- environment variable can be set to a semver string specifying a server version.
131
+ environment variable can be set to a semver string specifying a server version,
132
+ e.g. ` MONGOSH_SERVER_TEST_VERSION='>= 7.0.0-rc0' npm -w @mongosh/cli-repl run test ` .
139
133
140
134
### Starting the CLI
141
135
142
136
Via npm:
143
137
144
138
``` shell
145
- npm run start
139
+ npm run start < ... connection string, CLI args, etc. >
146
140
```
147
141
142
+ This will compile all Typescript dependencies of the CLI package first.
143
+
148
144
Alternatively you can also run start inside the ` cli-repl ` package, if you're
149
145
sure everything else is compiled:
150
146
151
147
``` shell
152
- cd packages /cli-repl && npm run start
148
+ npm run -w @mongosh /cli-repl start < ... connection string, CLI args, etc. >
153
149
```
154
150
155
151
### Compiling
@@ -160,7 +156,7 @@ Compile all Typescript:
160
156
npm run compile-ts
161
157
```
162
158
163
- Compile just the CLI:
159
+ Compile just the CLI ands its dependencies :
164
160
165
161
``` shell
166
162
npm run compile-cli
0 commit comments