@supernovaio/cli-next 2.3.5 → 2.3.7

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 (71) hide show
  1. package/dist/commands/components-import.d.ts +1 -0
  2. package/dist/commands/components-import.d.ts.map +1 -1
  3. package/dist/commands/components-import.js +10 -2
  4. package/dist/commands/components-import.js.map +1 -1
  5. package/dist/commands/describe-design-system.d.ts +1 -1
  6. package/dist/commands/describe-design-system.d.ts.map +1 -1
  7. package/dist/commands/describe-design-system.js +1 -1
  8. package/dist/commands/describe-design-system.js.map +1 -1
  9. package/dist/commands/describe-workspaces.d.ts +1 -1
  10. package/dist/commands/describe-workspaces.d.ts.map +1 -1
  11. package/dist/commands/describe-workspaces.js +1 -3
  12. package/dist/commands/describe-workspaces.js.map +1 -1
  13. package/dist/commands/publish-documentation.d.ts +1 -1
  14. package/dist/commands/publish-documentation.d.ts.map +1 -1
  15. package/dist/commands/publish-documentation.js +3 -6
  16. package/dist/commands/publish-documentation.js.map +1 -1
  17. package/dist/commands/run-local-exporter.d.ts +44 -0
  18. package/dist/commands/run-local-exporter.d.ts.map +1 -0
  19. package/dist/commands/run-local-exporter.js +223 -0
  20. package/dist/commands/run-local-exporter.js.map +1 -0
  21. package/dist/commands/storybook-import.d.ts +9 -3
  22. package/dist/commands/storybook-import.d.ts.map +1 -1
  23. package/dist/commands/storybook-import.js +57 -43
  24. package/dist/commands/storybook-import.js.map +1 -1
  25. package/dist/commands/sync-tokens.d.ts +1 -1
  26. package/dist/commands/sync-tokens.d.ts.map +1 -1
  27. package/dist/commands/sync-tokens.js +1 -1
  28. package/dist/commands/sync-tokens.js.map +1 -1
  29. package/dist/commands/template-upload.d.ts +28 -0
  30. package/dist/commands/template-upload.d.ts.map +1 -0
  31. package/dist/commands/template-upload.js +225 -0
  32. package/dist/commands/template-upload.js.map +1 -0
  33. package/dist/docker-scripts/extract-private-packages.js +72 -0
  34. package/dist/services/auth.service.d.ts.map +1 -1
  35. package/dist/services/auth.service.js +6 -1
  36. package/dist/services/auth.service.js.map +1 -1
  37. package/dist/services/user.service.d.ts +17 -2
  38. package/dist/services/user.service.d.ts.map +1 -1
  39. package/dist/services/vault.service.d.ts.map +1 -1
  40. package/dist/services/vault.service.js +0 -1
  41. package/dist/services/vault.service.js.map +1 -1
  42. package/dist/types/base-command.d.ts.map +1 -1
  43. package/dist/types/base-command.js +6 -2
  44. package/dist/types/base-command.js.map +1 -1
  45. package/dist/types/config.d.ts +7 -0
  46. package/dist/types/config.d.ts.map +1 -1
  47. package/dist/types/config.js +2 -0
  48. package/dist/types/config.js.map +1 -1
  49. package/dist/types/environment.d.ts +1 -1
  50. package/dist/types/environment.d.ts.map +1 -1
  51. package/dist/types/environment.js +2 -2
  52. package/dist/types/environment.js.map +1 -1
  53. package/dist/types/sentry-command.d.ts.map +1 -1
  54. package/dist/types/sentry-command.js +23 -1
  55. package/dist/types/sentry-command.js.map +1 -1
  56. package/dist/types/types.d.ts +14 -0
  57. package/dist/types/types.d.ts.map +1 -1
  58. package/dist/types/types.js.map +1 -1
  59. package/dist/utils/figma-tokens-data-loader.d.ts +1 -1
  60. package/dist/utils/figma-tokens-data-loader.d.ts.map +1 -1
  61. package/dist/utils/figma-tokens-data-loader.js +1 -1
  62. package/dist/utils/figma-tokens-data-loader.js.map +1 -1
  63. package/dist/utils/run-exporter/exporter-utils.d.ts +13 -1
  64. package/dist/utils/run-exporter/exporter-utils.d.ts.map +1 -1
  65. package/dist/utils/run-exporter/exporter-utils.js +15 -1
  66. package/dist/utils/run-exporter/exporter-utils.js.map +1 -1
  67. package/dist/utils/sdk.d.ts.map +1 -1
  68. package/dist/utils/sdk.js +4 -2
  69. package/dist/utils/sdk.js.map +1 -1
  70. package/oclif.manifest.json +168 -5
  71. package/package.json +15 -10
@@ -45,6 +45,7 @@
45
45
  }
46
46
  },
47
47
  "hasDynamicHelp": false,
48
+ "hidden": true,
48
49
  "hiddenAliases": [],
49
50
  "id": "components-import",
50
51
  "pluginAlias": "@supernovaio/cli-next",
@@ -59,7 +60,9 @@
59
60
  ]
60
61
  },
61
62
  "describe-design-system": {
62
- "aliases": [],
63
+ "aliases": [
64
+ "describe-design-system"
65
+ ],
63
66
  "args": {},
64
67
  "description": "Describe structure of single design system by provided ID",
65
68
  "examples": [
@@ -107,7 +110,9 @@
107
110
  ]
108
111
  },
109
112
  "describe-workspaces": {
110
- "aliases": [],
113
+ "aliases": [
114
+ "describe-workspaces"
115
+ ],
111
116
  "args": {},
112
117
  "description": "Describe structure of all workspaces and design systems available under those workspaces available for specified API key",
113
118
  "examples": [
@@ -191,7 +196,9 @@
191
196
  ]
192
197
  },
193
198
  "publish-documentation": {
194
- "aliases": [],
199
+ "aliases": [
200
+ "publish-documentation"
201
+ ],
195
202
  "args": {},
196
203
  "description": "Publish latest version of the documentation",
197
204
  "examples": [
@@ -260,6 +267,95 @@
260
267
  "publish-documentation.js"
261
268
  ]
262
269
  },
270
+ "run-local-exporter": {
271
+ "aliases": [
272
+ "run-local-exporter"
273
+ ],
274
+ "args": {},
275
+ "description": "Run local exporter package",
276
+ "examples": [
277
+ "$ @supernovaio/cli run-local-exporter --apiKey=\"[API_KEY]\" --designSystemId=\"[DESIGN_SYSTEM_ID]\" --themeId=\"[THEME_ID]\" --brandId=\"[BRAND_ID]\" --exporterDir=\"[./path/to/exporter/dir]\" --outputDir=\"[./path/to/output/dir]\" --allowOverridingOutput\n "
278
+ ],
279
+ "flags": {
280
+ "allowOverridingOutput": {
281
+ "description": "When enabled, CLI will override output in the output directory if same files where present. When disabled, encountering the same file with throw an error.",
282
+ "name": "allowOverridingOutput",
283
+ "required": false,
284
+ "allowNo": false,
285
+ "type": "boolean"
286
+ },
287
+ "apiKey": {
288
+ "description": "API key to use for accessing Supernova instance",
289
+ "name": "apiKey",
290
+ "required": true,
291
+ "hasDynamicHelp": false,
292
+ "multiple": false,
293
+ "type": "option"
294
+ },
295
+ "brandId": {
296
+ "description": "Brand to export. Will only be used when exporter has usesBrands: true, but then it is required to be provided",
297
+ "name": "brandId",
298
+ "required": false,
299
+ "hasDynamicHelp": false,
300
+ "multiple": false,
301
+ "type": "option"
302
+ },
303
+ "designSystemId": {
304
+ "description": "Design System to export from",
305
+ "name": "designSystemId",
306
+ "required": true,
307
+ "hasDynamicHelp": false,
308
+ "multiple": false,
309
+ "type": "option"
310
+ },
311
+ "exporterDir": {
312
+ "description": "Path to exporter package",
313
+ "name": "exporterDir",
314
+ "required": true,
315
+ "hasDynamicHelp": false,
316
+ "multiple": false,
317
+ "type": "option"
318
+ },
319
+ "outputDir": {
320
+ "description": "Path to output folder. Must be empty, unless `forceClearOutputDir` is set",
321
+ "name": "outputDir",
322
+ "required": true,
323
+ "hasDynamicHelp": false,
324
+ "multiple": false,
325
+ "type": "option"
326
+ },
327
+ "proxyUrl": {
328
+ "description": "When set, CLI will use provided proxy URL for all requests",
329
+ "hidden": true,
330
+ "name": "proxyUrl",
331
+ "required": false,
332
+ "hasDynamicHelp": false,
333
+ "multiple": false,
334
+ "type": "option"
335
+ },
336
+ "themeId": {
337
+ "description": "Theme to export. Will only be used when exporter has usesThemes: true, and is optional",
338
+ "name": "themeId",
339
+ "required": false,
340
+ "hasDynamicHelp": false,
341
+ "multiple": false,
342
+ "type": "option"
343
+ }
344
+ },
345
+ "hasDynamicHelp": false,
346
+ "hiddenAliases": [],
347
+ "id": "run-local-exporter",
348
+ "pluginAlias": "@supernovaio/cli-next",
349
+ "pluginName": "@supernovaio/cli-next",
350
+ "pluginType": "core",
351
+ "strict": true,
352
+ "isESM": true,
353
+ "relativePath": [
354
+ "dist",
355
+ "commands",
356
+ "run-local-exporter.js"
357
+ ]
358
+ },
263
359
  "storybook-import": {
264
360
  "aliases": [],
265
361
  "args": {},
@@ -307,6 +403,13 @@
307
403
  "hasDynamicHelp": false,
308
404
  "multiple": false,
309
405
  "type": "option"
406
+ },
407
+ "publicAccess": {
408
+ "description": "Allow public access to the published Storybook website. Can be used in combination with public documentation.",
409
+ "name": "publicAccess",
410
+ "required": false,
411
+ "allowNo": false,
412
+ "type": "boolean"
310
413
  }
311
414
  },
312
415
  "hasDynamicHelp": false,
@@ -324,7 +427,9 @@
324
427
  ]
325
428
  },
326
429
  "sync-tokens": {
327
- "aliases": [],
430
+ "aliases": [
431
+ "sync-tokens"
432
+ ],
328
433
  "args": {},
329
434
  "description": "Synchronize tokens from Figma Tokens plugin to Supernova workspaces",
330
435
  "examples": [
@@ -403,6 +508,64 @@
403
508
  "sync-tokens.js"
404
509
  ]
405
510
  },
511
+ "template-upload": {
512
+ "aliases": [],
513
+ "args": {},
514
+ "description": "Upload component container template to Supernova",
515
+ "examples": [
516
+ "<%= config.bin %> <%= command.id %> TemplateUpload "
517
+ ],
518
+ "flags": {
519
+ "workspaceId": {
520
+ "char": "w",
521
+ "description": "Workspace ID to upload the template to",
522
+ "name": "workspaceId",
523
+ "required": true,
524
+ "hasDynamicHelp": false,
525
+ "multiple": false,
526
+ "type": "option"
527
+ },
528
+ "designSystemId": {
529
+ "char": "d",
530
+ "description": "Design system ID to upload the template to",
531
+ "name": "designSystemId",
532
+ "required": true,
533
+ "hasDynamicHelp": false,
534
+ "multiple": false,
535
+ "type": "option"
536
+ },
537
+ "force": {
538
+ "char": "f",
539
+ "description": "Allows overwriting already published version of this template if it exists. This flag has no effect on new versions.",
540
+ "name": "force",
541
+ "required": false,
542
+ "allowNo": false,
543
+ "type": "boolean"
544
+ },
545
+ "npmToken": {
546
+ "description": "Allows passing NPM token as a Docker secret. The token will be available as a NPM_TOKEN env variable",
547
+ "name": "npmToken",
548
+ "required": false,
549
+ "hasDynamicHelp": false,
550
+ "multiple": false,
551
+ "type": "option"
552
+ }
553
+ },
554
+ "hasDynamicHelp": false,
555
+ "hidden": false,
556
+ "hiddenAliases": [],
557
+ "id": "template-upload",
558
+ "pluginAlias": "@supernovaio/cli-next",
559
+ "pluginName": "@supernovaio/cli-next",
560
+ "pluginType": "core",
561
+ "strict": true,
562
+ "isESM": true,
563
+ "relativePath": [
564
+ "dist",
565
+ "commands",
566
+ "template-upload.js"
567
+ ]
568
+ },
406
569
  "whoami": {
407
570
  "aliases": [],
408
571
  "args": {},
@@ -426,5 +589,5 @@
426
589
  ]
427
590
  }
428
591
  },
429
- "version": "2.3.5"
592
+ "version": "2.3.7"
430
593
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@supernovaio/cli-next",
3
3
  "description": "Supernova.io Command Line Interface",
4
- "version": "2.3.5",
4
+ "version": "2.3.7",
5
5
  "author": "Supernova.io",
6
6
  "bin": {
7
- "supernova-next": "./bin/run"
7
+ "supernova": "./bin/run"
8
8
  },
9
9
  "bugs": "https://github.com/Supernova-Studio/cli/issues",
10
10
  "dependencies": {
@@ -16,13 +16,19 @@
16
16
  "@sentry/node": "^9.9.0",
17
17
  "@sentry/profiling-node": "^9.9.0",
18
18
  "@sindresorhus/slugify": "^2.2.1",
19
- "@supernova-studio/client": "1.6.3",
20
- "@supernovaio/sdk": "2.0.36",
19
+ "@supernova-studio/client": "1.72.2",
20
+ "@supernova-studio/pulsar-core": "2.7.10",
21
+ "@supernova-studio/pulsar-language": "2.7.10",
22
+ "@supernovaio/code-analyzer": "^1.0.1-alpha.2",
23
+ "@supernovaio/sdk": "2.2.54",
24
+ "@types/fs-extra": "^11.0.4",
21
25
  "adm-zip": "^0.5.16",
22
- "axios": "^1.8.4",
26
+ "axios": "^1.13.4",
23
27
  "cli-progress": "^3.12.0",
24
28
  "colors": "^1.4.0",
25
29
  "dotenv": "^16.4.7",
30
+ "fs-extra": "^11.3.2",
31
+ "https-proxy-agent": "^7.0.6",
26
32
  "inquirer": "^12.5.2",
27
33
  "ip-cidr": "^4.0.2",
28
34
  "jwt-decode": "^4.0.0",
@@ -93,8 +99,8 @@
93
99
  "types": "dist/index.d.ts",
94
100
  "type": "module",
95
101
  "oclif": {
96
- "bin": "supernova-next",
97
- "dirname": "supernova-next",
102
+ "bin": "supernova",
103
+ "dirname": "supernova",
98
104
  "commands": "./dist/commands",
99
105
  "plugins": [
100
106
  "@oclif/plugin-help",
@@ -127,19 +133,18 @@
127
133
  },
128
134
  "repository": "https://github.com/Supernova-Studio/cli",
129
135
  "scripts": {
130
- "build": "npx shx rm -rf dist && tsc -b",
136
+ "build": "npx shx rm -rf dist && tsc -b && cp -R ./src/docker-scripts ./dist",
131
137
  "check-types": "tsc --noEmit",
132
138
  "lint": "eslint",
133
139
  "lint:ci": "eslint . --quiet",
134
140
  "lint:fix": "eslint . --fix",
135
141
  "postpack": "shx rm -f oclif.manifest.json",
136
- "posttest": "yarn lint",
137
142
  "prepack": "oclif manifest && oclif readme",
138
143
  "test": "NODE_OPTIONS='--loader=ts-node/esm --no-warnings' vitest --config vitest.config.ts",
139
144
  "test:ci": "NODE_OPTIONS='--loader=ts-node/esm --no-warnings' vitest run --config vitest.config.ts",
140
145
  "typecheck": "tsc --noEmit",
141
146
  "version": "oclif readme && git add README.md",
142
- "publish-package": "yarn run build && yarn sentry:sourcemaps && yarn run prepack && yarn publish --access public && yarn run postpack",
147
+ "publish-package": "npm run build && npm run sentry:sourcemaps && npm run prepack && npm publish --access public && npm run postpack",
143
148
  "sentry:sourcemaps": "sentry-cli sourcemaps inject --org supernova-studio --project cli ./dist && sentry-cli sourcemaps upload --org supernova-studio --project cli ./dist"
144
149
  }
145
150
  }