@supernovaio/cli-next 2.3.2 → 2.3.4-alpha0
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/dist/commands/components-import.js +4 -1
- package/dist/commands/components-import.js.map +1 -1
- package/dist/commands/describe-design-system.js +4 -1
- package/dist/commands/describe-design-system.js.map +1 -1
- package/dist/commands/describe-workspaces.js +4 -1
- package/dist/commands/describe-workspaces.js.map +1 -1
- package/dist/commands/login.js +4 -1
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/logout.js +4 -1
- package/dist/commands/logout.js.map +1 -1
- package/dist/commands/publish-documentation.js +4 -1
- package/dist/commands/publish-documentation.js.map +1 -1
- package/dist/commands/run-local-exporter.d.ts +44 -0
- package/dist/commands/run-local-exporter.d.ts.map +1 -0
- package/dist/commands/run-local-exporter.js +226 -0
- package/dist/commands/run-local-exporter.js.map +1 -0
- package/dist/commands/storybook-import.js +4 -1
- package/dist/commands/storybook-import.js.map +1 -1
- package/dist/commands/sync-tokens.js +4 -1
- package/dist/commands/sync-tokens.js.map +1 -1
- package/dist/commands/whoami.js +4 -1
- package/dist/commands/whoami.js.map +1 -1
- package/dist/hooks/postrun/save-config.js +4 -1
- package/dist/hooks/postrun/save-config.js.map +1 -1
- package/dist/hooks/prerun/load-config.js +4 -1
- package/dist/hooks/prerun/load-config.js.map +1 -1
- package/dist/hooks/prerun/sentry.js +4 -1
- package/dist/hooks/prerun/sentry.js.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/services/auth.service.js +4 -1
- package/dist/services/auth.service.js.map +1 -1
- package/dist/services/index.js +4 -1
- package/dist/services/index.js.map +1 -1
- package/dist/services/user.service.js +4 -1
- package/dist/services/user.service.js.map +1 -1
- package/dist/services/vault.service.js +4 -1
- package/dist/services/vault.service.js.map +1 -1
- package/dist/types/base-command.d.ts +0 -1
- package/dist/types/base-command.d.ts.map +1 -1
- package/dist/types/base-command.js +4 -5
- package/dist/types/base-command.js.map +1 -1
- package/dist/types/config.js +4 -1
- package/dist/types/config.js.map +1 -1
- package/dist/types/environment.js +4 -1
- package/dist/types/environment.js.map +1 -1
- package/dist/types/flags.js +4 -1
- package/dist/types/flags.js.map +1 -1
- package/dist/types/index.js +4 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/login.js +4 -1
- package/dist/types/login.js.map +1 -1
- package/dist/types/not-authorized.error.js +4 -1
- package/dist/types/not-authorized.error.js.map +1 -1
- package/dist/types/sentry-command.js +4 -1
- package/dist/types/sentry-command.js.map +1 -1
- package/dist/types/types.d.ts +14 -0
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/types.js +4 -1
- package/dist/types/types.js.map +1 -1
- package/dist/utils/api-client.js +4 -1
- package/dist/utils/api-client.js.map +1 -1
- package/dist/utils/common.js +4 -1
- package/dist/utils/common.js.map +1 -1
- package/dist/utils/config.service.js +4 -1
- package/dist/utils/config.service.js.map +1 -1
- package/dist/utils/figma-tokens-data-loader.js +4 -1
- package/dist/utils/figma-tokens-data-loader.js.map +1 -1
- package/dist/utils/index.js +4 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/run-exporter/exporter-utils.d.ts +13 -1
- package/dist/utils/run-exporter/exporter-utils.d.ts.map +1 -1
- package/dist/utils/run-exporter/exporter-utils.js +19 -2
- package/dist/utils/run-exporter/exporter-utils.js.map +1 -1
- package/dist/utils/sdk.js +4 -1
- package/dist/utils/sdk.js.map +1 -1
- package/oclif.manifest.json +89 -2
- package/package.json +4 -3
package/oclif.manifest.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"char": "r",
|
|
31
31
|
"description": "Root directory of the package where the import should resolve from. Defaults to the current directory",
|
|
32
32
|
"name": "rootDir",
|
|
33
|
-
"default": "/
|
|
33
|
+
"default": "/home/roman/WebstormProjects/Supernova/cli/packages/cli",
|
|
34
34
|
"hasDynamicHelp": false,
|
|
35
35
|
"multiple": false,
|
|
36
36
|
"type": "option"
|
|
@@ -260,6 +260,93 @@
|
|
|
260
260
|
"publish-documentation.js"
|
|
261
261
|
]
|
|
262
262
|
},
|
|
263
|
+
"run-local-exporter": {
|
|
264
|
+
"aliases": [],
|
|
265
|
+
"args": {},
|
|
266
|
+
"description": "Run local exporter package",
|
|
267
|
+
"examples": [
|
|
268
|
+
"$ @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 "
|
|
269
|
+
],
|
|
270
|
+
"flags": {
|
|
271
|
+
"allowOverridingOutput": {
|
|
272
|
+
"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.",
|
|
273
|
+
"name": "allowOverridingOutput",
|
|
274
|
+
"required": false,
|
|
275
|
+
"allowNo": false,
|
|
276
|
+
"type": "boolean"
|
|
277
|
+
},
|
|
278
|
+
"apiKey": {
|
|
279
|
+
"description": "API key to use for accessing Supernova instance",
|
|
280
|
+
"name": "apiKey",
|
|
281
|
+
"required": true,
|
|
282
|
+
"hasDynamicHelp": false,
|
|
283
|
+
"multiple": false,
|
|
284
|
+
"type": "option"
|
|
285
|
+
},
|
|
286
|
+
"brandId": {
|
|
287
|
+
"description": "Brand to export. Will only be used when exporter has usesBrands: true, but then it is required to be provided",
|
|
288
|
+
"name": "brandId",
|
|
289
|
+
"required": false,
|
|
290
|
+
"hasDynamicHelp": false,
|
|
291
|
+
"multiple": false,
|
|
292
|
+
"type": "option"
|
|
293
|
+
},
|
|
294
|
+
"designSystemId": {
|
|
295
|
+
"description": "Design System to export from",
|
|
296
|
+
"name": "designSystemId",
|
|
297
|
+
"required": true,
|
|
298
|
+
"hasDynamicHelp": false,
|
|
299
|
+
"multiple": false,
|
|
300
|
+
"type": "option"
|
|
301
|
+
},
|
|
302
|
+
"exporterDir": {
|
|
303
|
+
"description": "Path to exporter package",
|
|
304
|
+
"name": "exporterDir",
|
|
305
|
+
"required": true,
|
|
306
|
+
"hasDynamicHelp": false,
|
|
307
|
+
"multiple": false,
|
|
308
|
+
"type": "option"
|
|
309
|
+
},
|
|
310
|
+
"outputDir": {
|
|
311
|
+
"description": "Path to output folder. Must be empty, unless `forceClearOutputDir` is set",
|
|
312
|
+
"name": "outputDir",
|
|
313
|
+
"required": true,
|
|
314
|
+
"hasDynamicHelp": false,
|
|
315
|
+
"multiple": false,
|
|
316
|
+
"type": "option"
|
|
317
|
+
},
|
|
318
|
+
"proxyUrl": {
|
|
319
|
+
"description": "When set, CLI will use provided proxy URL for all requests",
|
|
320
|
+
"hidden": true,
|
|
321
|
+
"name": "proxyUrl",
|
|
322
|
+
"required": false,
|
|
323
|
+
"hasDynamicHelp": false,
|
|
324
|
+
"multiple": false,
|
|
325
|
+
"type": "option"
|
|
326
|
+
},
|
|
327
|
+
"themeId": {
|
|
328
|
+
"description": "Theme to export. Will only be used when exporter has usesThemes: true, and is optional",
|
|
329
|
+
"name": "themeId",
|
|
330
|
+
"required": false,
|
|
331
|
+
"hasDynamicHelp": false,
|
|
332
|
+
"multiple": false,
|
|
333
|
+
"type": "option"
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"hasDynamicHelp": false,
|
|
337
|
+
"hiddenAliases": [],
|
|
338
|
+
"id": "run-local-exporter",
|
|
339
|
+
"pluginAlias": "@supernovaio/cli-next",
|
|
340
|
+
"pluginName": "@supernovaio/cli-next",
|
|
341
|
+
"pluginType": "core",
|
|
342
|
+
"strict": true,
|
|
343
|
+
"isESM": true,
|
|
344
|
+
"relativePath": [
|
|
345
|
+
"dist",
|
|
346
|
+
"commands",
|
|
347
|
+
"run-local-exporter.js"
|
|
348
|
+
]
|
|
349
|
+
},
|
|
263
350
|
"storybook-import": {
|
|
264
351
|
"aliases": [],
|
|
265
352
|
"args": {},
|
|
@@ -426,5 +513,5 @@
|
|
|
426
513
|
]
|
|
427
514
|
}
|
|
428
515
|
},
|
|
429
|
-
"version": "2.3.
|
|
516
|
+
"version": "2.3.4-alpha0"
|
|
430
517
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supernovaio/cli-next",
|
|
3
3
|
"description": "Supernova.io Command Line Interface",
|
|
4
|
-
"version": "2.3.
|
|
4
|
+
"version": "2.3.4-alpha0",
|
|
5
5
|
"author": "Supernova.io",
|
|
6
6
|
"bin": {
|
|
7
7
|
"supernova-next": "./bin/run"
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"@sentry/profiling-node": "^9.9.0",
|
|
18
18
|
"@sindresorhus/slugify": "^2.2.1",
|
|
19
19
|
"@supernova-studio/client": "1.6.3",
|
|
20
|
+
"@supernova-studio/pulsar-core": "^2.6.11",
|
|
20
21
|
"@supernovaio/sdk": "2.0.36",
|
|
21
22
|
"adm-zip": "^0.5.16",
|
|
22
23
|
"axios": "^1.8.4",
|
|
@@ -132,13 +133,13 @@
|
|
|
132
133
|
"lint:ci": "eslint . --quiet",
|
|
133
134
|
"lint:fix": "eslint . --fix",
|
|
134
135
|
"postpack": "shx rm -f oclif.manifest.json",
|
|
135
|
-
"posttest": "
|
|
136
|
+
"posttest": "npm lint",
|
|
136
137
|
"prepack": "oclif manifest && oclif readme",
|
|
137
138
|
"test": "NODE_OPTIONS='--loader=ts-node/esm --no-warnings' vitest --config vitest.config.ts",
|
|
138
139
|
"test:ci": "NODE_OPTIONS='--loader=ts-node/esm --no-warnings' vitest run --config vitest.config.ts",
|
|
139
140
|
"typecheck": "tsc --noEmit",
|
|
140
141
|
"version": "oclif readme && git add README.md",
|
|
141
|
-
"publish-package": "
|
|
142
|
+
"publish-package": "npm run build && npm run sentry:sourcemaps && npm run prepack && npm publish --access public && npm run postpack",
|
|
142
143
|
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org supernova-studio --project cli ./dist && sentry-cli sourcemaps upload --org supernova-studio --project cli ./dist"
|
|
143
144
|
}
|
|
144
145
|
}
|