@travetto/repo 6.0.0-rc.0 → 6.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -94
- package/__index__.ts +2 -2
- package/package.json +3 -3
- package/support/bin/exec.ts +1 -1
- package/support/bin/package-manager.ts +2 -2
- package/support/cli.repo_exec.ts +1 -1
- package/support/cli.repo_list.ts +1 -1
- package/support/cli.repo_publish.ts +2 -2
- package/support/cli.repo_version-sync.ts +1 -1
- package/support/cli.repo_version.ts +1 -1
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ Author: Travetto Framework <travetto.framework@gmail.com>
|
|
|
53
53
|
Date: Thu Feb 23 17:51:37 2023 -0500
|
|
54
54
|
Date: Thu Feb 23 17:51:37 2023 -0500
|
|
55
55
|
|
|
56
|
-
Publish @travetto/asset,@travetto/asset-
|
|
56
|
+
Publish @travetto/asset,@travetto/asset-web,@travetto/auth,@travetto/auth-model,@travetto/auth-web,@travetto/auth-web-jwt,@travetto/auth-web-passport,@travetto/auth-web-session,...
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
## CLI - Publish
|
|
@@ -104,23 +104,18 @@ Options:
|
|
|
104
104
|
```bash
|
|
105
105
|
$ trv repo:list
|
|
106
106
|
|
|
107
|
-
global-test/auth-rest
|
|
108
|
-
global-test/auth-rest-session_rest
|
|
109
107
|
global-test/model_auth-model
|
|
110
108
|
global-test/model_auth-session
|
|
111
109
|
global-test/model_cache
|
|
112
|
-
global-test/
|
|
113
|
-
global-test/openapi
|
|
110
|
+
global-test/model_web-upload
|
|
114
111
|
global-test/pack_app
|
|
115
|
-
global-test/rest-client
|
|
116
|
-
global-test/rest-upload
|
|
117
112
|
global-test/transformer-test
|
|
118
113
|
module/auth
|
|
119
114
|
module/auth-model
|
|
120
|
-
module/auth-rest
|
|
121
|
-
module/auth-rest-passport
|
|
122
|
-
module/auth-rest-session
|
|
123
115
|
module/auth-session
|
|
116
|
+
module/auth-web
|
|
117
|
+
module/auth-web-passport
|
|
118
|
+
module/auth-web-session
|
|
124
119
|
module/cache
|
|
125
120
|
module/cli
|
|
126
121
|
module/compiler
|
|
@@ -134,7 +129,6 @@ module/email-inky
|
|
|
134
129
|
module/email-nodemailer
|
|
135
130
|
module/eslint
|
|
136
131
|
module/image
|
|
137
|
-
module/jwt
|
|
138
132
|
module/log
|
|
139
133
|
module/manifest
|
|
140
134
|
module/model
|
|
@@ -156,17 +150,6 @@ module/openapi
|
|
|
156
150
|
module/pack
|
|
157
151
|
module/registry
|
|
158
152
|
module/repo
|
|
159
|
-
module/rest
|
|
160
|
-
module/rest-aws-lambda
|
|
161
|
-
module/rest-client
|
|
162
|
-
module/rest-express
|
|
163
|
-
module/rest-express-lambda
|
|
164
|
-
module/rest-fastify
|
|
165
|
-
module/rest-fastify-lambda
|
|
166
|
-
module/rest-koa
|
|
167
|
-
module/rest-koa-lambda
|
|
168
|
-
module/rest-rpc
|
|
169
|
-
module/rest-upload
|
|
170
153
|
module/runtime
|
|
171
154
|
module/scaffold
|
|
172
155
|
module/schema
|
|
@@ -174,6 +157,13 @@ module/schema-faker
|
|
|
174
157
|
module/terminal
|
|
175
158
|
module/test
|
|
176
159
|
module/transformer
|
|
160
|
+
module/web
|
|
161
|
+
module/web-aws-lambda
|
|
162
|
+
module/web-connect
|
|
163
|
+
module/web-http-server
|
|
164
|
+
module/web-node
|
|
165
|
+
module/web-rpc
|
|
166
|
+
module/web-upload
|
|
177
167
|
module/worker
|
|
178
168
|
related/todo-app
|
|
179
169
|
```
|
|
@@ -201,76 +191,66 @@ The standard format includes prefixed output to help identify which module produ
|
|
|
201
191
|
```bash
|
|
202
192
|
$ trv repo:exec -w 1 pwd
|
|
203
193
|
|
|
204
|
-
global-test/
|
|
205
|
-
global-test/
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
module/
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
module/
|
|
250
|
-
|
|
251
|
-
module/
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
module/
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
module/rest-upload <workspace-root>/module/rest-upload
|
|
267
|
-
module/runtime <workspace-root>/module/runtime
|
|
268
|
-
module/scaffold <workspace-root>/module/scaffold
|
|
269
|
-
module/schema <workspace-root>/module/schema
|
|
270
|
-
module/schema-faker <workspace-root>/module/schema-faker
|
|
271
|
-
module/terminal <workspace-root>/module/terminal
|
|
272
|
-
module/test <workspace-root>/module/test
|
|
273
|
-
related/todo-app <workspace-root>/related/todo-app
|
|
274
|
-
module/transformer <workspace-root>/module/transformer
|
|
275
|
-
module/worker <workspace-root>/module/worker
|
|
194
|
+
global-test/model_auth-model <workspace-root>/global-test/model_auth-model
|
|
195
|
+
global-test/model_auth-session <workspace-root>/global-test/model_auth-session
|
|
196
|
+
global-test/model_cache <workspace-root>/global-test/model_cache
|
|
197
|
+
global-test/model_web-upload <workspace-root>/global-test/model_web-upload
|
|
198
|
+
global-test/pack_app <workspace-root>/global-test/pack_app
|
|
199
|
+
global-test/transformer-test <workspace-root>/global-test/transformer-test
|
|
200
|
+
module/auth <workspace-root>/module/auth
|
|
201
|
+
module/auth-model <workspace-root>/module/auth-model
|
|
202
|
+
module/auth-session <workspace-root>/module/auth-session
|
|
203
|
+
module/auth-web <workspace-root>/module/auth-web
|
|
204
|
+
module/auth-web-passport <workspace-root>/module/auth-web-passport
|
|
205
|
+
module/auth-web-session <workspace-root>/module/auth-web-session
|
|
206
|
+
module/cache <workspace-root>/module/cache
|
|
207
|
+
module/cli <workspace-root>/module/cli
|
|
208
|
+
module/compiler <workspace-root>/module/compiler
|
|
209
|
+
module/config <workspace-root>/module/config
|
|
210
|
+
module/context <workspace-root>/module/context
|
|
211
|
+
module/di <workspace-root>/module/di
|
|
212
|
+
module/doc <workspace-root>/module/doc
|
|
213
|
+
module/email <workspace-root>/module/email
|
|
214
|
+
module/email-compiler <workspace-root>/module/email-compiler
|
|
215
|
+
module/email-inky <workspace-root>/module/email-inky
|
|
216
|
+
module/email-nodemailer <workspace-root>/module/email-nodemailer
|
|
217
|
+
module/eslint <workspace-root>/module/eslint
|
|
218
|
+
module/image <workspace-root>/module/image
|
|
219
|
+
module/log <workspace-root>/module/log
|
|
220
|
+
module/manifest <workspace-root>/module/manifest
|
|
221
|
+
module/model <workspace-root>/module/model
|
|
222
|
+
module/model-dynamodb <workspace-root>/module/model-dynamodb
|
|
223
|
+
module/model-elasticsearch <workspace-root>/module/model-elasticsearch
|
|
224
|
+
module/model-file <workspace-root>/module/model-file
|
|
225
|
+
module/model-firestore <workspace-root>/module/model-firestore
|
|
226
|
+
module/model-memory <workspace-root>/module/model-memory
|
|
227
|
+
module/model-mongo <workspace-root>/module/model-mongo
|
|
228
|
+
module/model-mysql <workspace-root>/module/model-mysql
|
|
229
|
+
module/model-postgres <workspace-root>/module/model-postgres
|
|
230
|
+
module/model-query <workspace-root>/module/model-query
|
|
231
|
+
module/model-query-language <workspace-root>/module/model-query-language
|
|
232
|
+
module/model-redis <workspace-root>/module/model-redis
|
|
233
|
+
module/model-s3 <workspace-root>/module/model-s3
|
|
234
|
+
module/model-sql <workspace-root>/module/model-sql
|
|
235
|
+
module/model-sqlite <workspace-root>/module/model-sqlite
|
|
236
|
+
module/openapi <workspace-root>/module/openapi
|
|
237
|
+
module/pack <workspace-root>/module/pack
|
|
238
|
+
module/registry <workspace-root>/module/registry
|
|
239
|
+
module/repo .
|
|
240
|
+
module/runtime <workspace-root>/module/runtime
|
|
241
|
+
module/scaffold <workspace-root>/module/scaffold
|
|
242
|
+
module/schema <workspace-root>/module/schema
|
|
243
|
+
module/schema-faker <workspace-root>/module/schema-faker
|
|
244
|
+
module/terminal <workspace-root>/module/terminal
|
|
245
|
+
module/test <workspace-root>/module/test
|
|
246
|
+
related/todo-app <workspace-root>/related/todo-app
|
|
247
|
+
module/transformer <workspace-root>/module/transformer
|
|
248
|
+
module/web <workspace-root>/module/web
|
|
249
|
+
module/web-aws-lambda <workspace-root>/module/web-aws-lambda
|
|
250
|
+
module/web-connect <workspace-root>/module/web-connect
|
|
251
|
+
module/web-http-server <workspace-root>/module/web-http-server
|
|
252
|
+
module/web-node <workspace-root>/module/web-node
|
|
253
|
+
module/web-rpc <workspace-root>/module/web-rpc
|
|
254
|
+
module/web-upload <workspace-root>/module/web-upload
|
|
255
|
+
module/worker <workspace-root>/module/worker
|
|
276
256
|
```
|
package/__index__.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './support/bin/exec';
|
|
2
|
-
export * from './support/bin/package-manager';
|
|
1
|
+
export * from './support/bin/exec.ts';
|
|
2
|
+
export * from './support/bin/package-manager.ts';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/repo",
|
|
3
|
-
"version": "6.0.0-rc.
|
|
3
|
+
"version": "6.0.0-rc.2",
|
|
4
4
|
"description": "Monorepo utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"travetto",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"directory": "module/repo"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@travetto/cli": "^6.0.0-rc.
|
|
26
|
-
"@travetto/worker": "^6.0.0-rc.
|
|
25
|
+
"@travetto/cli": "^6.0.0-rc.2",
|
|
26
|
+
"@travetto/worker": "^6.0.0-rc.2"
|
|
27
27
|
},
|
|
28
28
|
"peerDependenciesMeta": {
|
|
29
29
|
"@travetto/cli": {
|
package/support/bin/exec.ts
CHANGED
|
@@ -11,7 +11,7 @@ const COLORS = ([...[
|
|
|
11
11
|
'#afffd7', '#afffff', '#d787ff', '#d7afaf', '#d7afd7', '#d7afff', '#d7d7af', '#d7d7d7', '#d7d7ff', '#d7ff87', '#d7ffaf', '#d7ffd7', '#d7ffff', '#ff8787', '#ff87af',
|
|
12
12
|
'#ff87d7', '#ff87ff', '#ffaf87', '#ffafaf', '#ffafd7', '#ffafff', '#ffd787', '#ffd7af', '#ffd7d7', '#ffd7ff', '#ffff87', '#ffffaf', '#ffffd7', '#ffffff', '#bcbcbc',
|
|
13
13
|
'#c6c6c6', '#d0d0d0', '#dadada', '#e4e4e4', '#eeeeee'
|
|
14
|
-
] as const]).
|
|
14
|
+
] as const]).toSorted(() => Math.random() < .5 ? -1 : 1).map(x => StyleUtil.getStyle(x));
|
|
15
15
|
|
|
16
16
|
type ModuleRunConfig<T = ExecutionResult<string>> = {
|
|
17
17
|
progressMessage?: (mod: IndexedModule | undefined) => string;
|
|
@@ -45,8 +45,8 @@ export class PackageManager {
|
|
|
45
45
|
return !!found && found === mod.version;
|
|
46
46
|
}
|
|
47
47
|
case 'yarn': {
|
|
48
|
-
const
|
|
49
|
-
return
|
|
48
|
+
const parsed = JSON.parse(result.stdout);
|
|
49
|
+
return parsed.data !== undefined;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
}
|
package/support/cli.repo_exec.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { WorkPool } from '@travetto/worker';
|
|
|
5
5
|
import { Env } from '@travetto/runtime';
|
|
6
6
|
import { Ignore, Max, Min } from '@travetto/schema';
|
|
7
7
|
|
|
8
|
-
import { RepoExecUtil } from './bin/exec';
|
|
8
|
+
import { RepoExecUtil } from './bin/exec.ts';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Repo execution
|
package/support/cli.repo_list.ts
CHANGED
|
@@ -32,7 +32,7 @@ export class ListModuleCommand implements CliCommandShape {
|
|
|
32
32
|
const mods = await CliModuleUtil.findModules(this.changed ? 'changed' : 'workspace', this.fromHash, this.toHash);
|
|
33
33
|
switch (this.format) {
|
|
34
34
|
case 'list': {
|
|
35
|
-
for (const mod of mods.map(x => x.sourceFolder).
|
|
35
|
+
for (const mod of mods.map(x => x.sourceFolder).toSorted()) {
|
|
36
36
|
await write(mod);
|
|
37
37
|
}
|
|
38
38
|
break;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CliCommandShape, CliCommand } from '@travetto/cli';
|
|
2
2
|
import { Runtime } from '@travetto/runtime';
|
|
3
3
|
|
|
4
|
-
import { PackageManager } from './bin/package-manager';
|
|
5
|
-
import { RepoExecUtil } from './bin/exec';
|
|
4
|
+
import { PackageManager } from './bin/package-manager.ts';
|
|
5
|
+
import { RepoExecUtil } from './bin/exec.ts';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Publish all pending modules
|
|
@@ -3,7 +3,7 @@ import fs from 'node:fs/promises';
|
|
|
3
3
|
import { CliModuleUtil, CliCommandShape, CliCommand, CliScmUtil, CliValidationError } from '@travetto/cli';
|
|
4
4
|
import { Runtime } from '@travetto/runtime';
|
|
5
5
|
|
|
6
|
-
import { PackageManager, SemverLevel } from './bin/package-manager';
|
|
6
|
+
import { PackageManager, SemverLevel } from './bin/package-manager.ts';
|
|
7
7
|
|
|
8
8
|
const CHANGE_LEVELS = new Set<SemverLevel>(['prerelease', 'patch', 'prepatch']);
|
|
9
9
|
|