@redocly/cli 0.0.0-snapshot.1739981736 → 0.0.0-snapshot.1740061304
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/lib/index.js +9 -24
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -23,8 +23,7 @@ const translations_1 = require("./commands/translations");
|
|
|
23
23
|
const eject_1 = require("./commands/eject");
|
|
24
24
|
const constants_1 = require("./commands/preview-project/constants");
|
|
25
25
|
const push_1 = require("./commands/push");
|
|
26
|
-
|
|
27
|
-
dotenv.config({ path: path.resolve(__dirname, '../.env') });
|
|
26
|
+
dotenv.config({ path: path.resolve(process.cwd(), './.env') });
|
|
28
27
|
if (!('replaceAll' in String.prototype)) {
|
|
29
28
|
require('core-js/actual/string/replace-all');
|
|
30
29
|
}
|
|
@@ -775,11 +774,6 @@ yargs
|
|
|
775
774
|
describe: 'JSON file output name',
|
|
776
775
|
type: 'string',
|
|
777
776
|
},
|
|
778
|
-
residency: {
|
|
779
|
-
describe: 'Residency of Reunite application. Defaults to US.',
|
|
780
|
-
type: 'string',
|
|
781
|
-
default: 'us',
|
|
782
|
-
},
|
|
783
777
|
'client-cert': {
|
|
784
778
|
describe: 'Mutual TLS client certificate',
|
|
785
779
|
type: 'string',
|
|
@@ -797,9 +791,10 @@ yargs
|
|
|
797
791
|
type: 'string',
|
|
798
792
|
},
|
|
799
793
|
});
|
|
800
|
-
}, (argv) => {
|
|
794
|
+
}, async (argv) => {
|
|
801
795
|
process.env.REDOCLY_CLI_COMMAND = 'respect';
|
|
802
|
-
|
|
796
|
+
const { handleRun } = await Promise.resolve().then(() => require('@redocly/respect-core'));
|
|
797
|
+
(0, wrapper_1.commandWrapper)(handleRun)(argv);
|
|
803
798
|
})
|
|
804
799
|
.command('generate-arazzo <descriptionPath>', 'Auto-generate test config file from description', (yargs) => {
|
|
805
800
|
return yargs
|
|
@@ -818,22 +813,12 @@ yargs
|
|
|
818
813
|
describe: 'Generate config with populated values from description using success criteria',
|
|
819
814
|
type: 'boolean',
|
|
820
815
|
},
|
|
821
|
-
residency: {
|
|
822
|
-
describe: 'Residency of Reunite application. Defaults to US.',
|
|
823
|
-
type: 'string',
|
|
824
|
-
default: 'us',
|
|
825
|
-
},
|
|
826
816
|
});
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
// logger.error(`❌ Auto config generation failed.`);
|
|
833
|
-
// process.exit(1);
|
|
834
|
-
// }
|
|
835
|
-
// },
|
|
836
|
-
)
|
|
817
|
+
}, async (argv) => {
|
|
818
|
+
process.env.REDOCLY_CLI_COMMAND = 'generate-arazzo';
|
|
819
|
+
const { handleGenerate } = await Promise.resolve().then(() => require('@redocly/respect-core'));
|
|
820
|
+
(0, wrapper_1.commandWrapper)(handleGenerate)(argv);
|
|
821
|
+
})
|
|
837
822
|
.completion('completion', 'Generate autocomplete script for `redocly` command.')
|
|
838
823
|
.demandCommand(1)
|
|
839
824
|
.middleware([update_version_notifier_1.notifyUpdateCliVersion])
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/cli",
|
|
3
|
-
"version": "0.0.0-snapshot.
|
|
3
|
+
"version": "0.0.0-snapshot.1740061304",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"Roman Hotsiy <roman@redocly.com> (https://redocly.com/)"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@redocly/openapi-core": "0.0.0-snapshot.
|
|
39
|
+
"@redocly/openapi-core": "0.0.0-snapshot.1740061304",
|
|
40
40
|
"abort-controller": "^3.0.0",
|
|
41
41
|
"chokidar": "^3.5.1",
|
|
42
42
|
"colorette": "^1.2.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"simple-websocket": "^9.0.0",
|
|
61
61
|
"styled-components": "^6.0.7",
|
|
62
62
|
"yargs": "17.0.1",
|
|
63
|
-
"@redocly/respect-core": "0.0.0-snapshot.
|
|
63
|
+
"@redocly/respect-core": "0.0.0-snapshot.1740061304"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@types/configstore": "^5.0.1",
|