jsii-rosetta 1.71.0 → 1.72.0

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.
Files changed (2) hide show
  1. package/bin/jsii-rosetta.js +14 -13
  2. package/package.json +7 -7
@@ -56,8 +56,8 @@ function main() {
56
56
  .command('infuse [ASSEMBLY..]', '(EXPERIMENTAL) mutates one or more assemblies by adding documentation examples to top-level types', (command) => command
57
57
  .positional('ASSEMBLY', {
58
58
  type: 'string',
59
- string: true,
60
- default: new Array(),
59
+ array: true,
60
+ default: [],
61
61
  describe: 'Assembly or directory to mutate',
62
62
  })
63
63
  .option('log-file', {
@@ -114,8 +114,8 @@ function main() {
114
114
  .command(['extract [ASSEMBLY..]', '$0 [ASSEMBLY..]'], 'Extract code snippets from one or more assemblies into language tablets', (command) => command
115
115
  .positional('ASSEMBLY', {
116
116
  type: 'string',
117
- string: true,
118
- default: new Array(),
117
+ array: true,
118
+ default: [],
119
119
  describe: 'Assembly or directory to extract from',
120
120
  })
121
121
  .option('output', {
@@ -137,9 +137,10 @@ function main() {
137
137
  })
138
138
  .option('include', {
139
139
  alias: 'i',
140
- type: 'array',
140
+ type: 'string',
141
+ array: true,
141
142
  describe: 'Extract only snippets with given ids',
142
- default: new Array(),
143
+ default: [],
143
144
  })
144
145
  .option('infuse', {
145
146
  type: 'boolean',
@@ -240,16 +241,16 @@ function main() {
240
241
  .command('transliterate [ASSEMBLY..]', '(EXPERIMENTAL) Transliterates the designated assemblies', (command) => command
241
242
  .positional('ASSEMBLY', {
242
243
  type: 'string',
243
- string: true,
244
- default: new Array(),
244
+ array: true,
245
+ default: [],
245
246
  required: true,
246
247
  describe: 'Assembly to transliterate',
247
248
  })
248
249
  .option('language', {
249
250
  alias: 'l',
250
251
  type: 'string',
251
- string: true,
252
- default: new Array(),
252
+ array: true,
253
+ default: [],
253
254
  describe: 'Language ID to transliterate to',
254
255
  })
255
256
  .options('strict', {
@@ -289,8 +290,8 @@ function main() {
289
290
  })
290
291
  .positional('ASSEMBLY', {
291
292
  type: 'string',
292
- string: true,
293
- default: new Array(),
293
+ array: true,
294
+ default: [],
294
295
  describe: 'Assembly or directory to search',
295
296
  })
296
297
  .demandOption('TABLET'), wrapHandler(async (args) => {
@@ -301,7 +302,7 @@ function main() {
301
302
  }))
302
303
  .command('coverage [ASSEMBLY..]', 'Check the translation coverage of implicit tablets for the given assemblies', (command) => command.positional('ASSEMBLY', {
303
304
  type: 'string',
304
- string: true,
305
+ array: true,
305
306
  default: ['.'],
306
307
  describe: 'Assembly or directory to search',
307
308
  }), wrapHandler(async (args) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsii-rosetta",
3
- "version": "1.71.0",
3
+ "version": "1.72.0",
4
4
  "description": "Translate TypeScript code snippets to other languages",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
@@ -20,22 +20,22 @@
20
20
  "@types/mock-fs": "^4.13.1",
21
21
  "@types/workerpool": "^6.1.0",
22
22
  "@types/semver": "^7.3.13",
23
- "jsii-build-tools": "1.71.0",
23
+ "jsii-build-tools": "1.72.0",
24
24
  "memory-streams": "^0.1.3",
25
25
  "mock-fs": "^5.2.0"
26
26
  },
27
27
  "dependencies": {
28
- "@jsii/check-node": "1.71.0",
29
- "@jsii/spec": "1.71.0",
28
+ "@jsii/check-node": "1.72.0",
29
+ "@jsii/spec": "1.72.0",
30
30
  "commonmark": "^0.30.0",
31
31
  "typescript": "~3.9.10",
32
- "@xmldom/xmldom": "^0.8.5",
33
- "workerpool": "^6.3.0",
32
+ "@xmldom/xmldom": "^0.8.6",
33
+ "workerpool": "^6.3.1",
34
34
  "yargs": "^16.2.0",
35
35
  "semver": "^7.3.8",
36
36
  "semver-intersect": "^1.4.0",
37
37
  "fast-glob": "^3.2.12",
38
- "jsii": "1.71.0"
38
+ "jsii": "1.72.0"
39
39
  },
40
40
  "license": "Apache-2.0",
41
41
  "author": {