bdy 1.17.15-dev → 1.17.17-dev
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/distTs/package.json
CHANGED
|
@@ -10,13 +10,15 @@ const output_1 = __importDefault(require("../../output"));
|
|
|
10
10
|
const commandPackageDelete = (0, utils_1.newCommand)('delete', texts_1.DESC_COMMAND_PACKAGE_DELETE);
|
|
11
11
|
commandPackageDelete.alias('rm');
|
|
12
12
|
commandPackageDelete.option('-w, --workspace <domain>', texts_1.OPTION_REST_API_WORKSPACE);
|
|
13
|
+
commandPackageDelete.option('-p, --project <name>', texts_1.OPTION_REST_API_PROJECT);
|
|
13
14
|
commandPackageDelete.option('-f, --force', texts_1.OPTION_CONFIRM_FORCE);
|
|
14
15
|
commandPackageDelete.argument('<identifier>', texts_1.OPT_COMMAND_PACKAGE_IDENTIFIER);
|
|
15
16
|
commandPackageDelete.addHelpText('after', texts_1.EXAMPLE_PACKAGE_DELETE);
|
|
16
17
|
commandPackageDelete.action(async (identifier, options) => {
|
|
17
18
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
19
|
+
const project = input_1.default.restApiProject(options.project);
|
|
18
20
|
const client = input_1.default.restApiTokenClient();
|
|
19
|
-
const data = await client.getPackageVersionByIdentifier(workspace,
|
|
21
|
+
const data = await client.getPackageVersionByIdentifier(workspace, project, identifier);
|
|
20
22
|
if (!data || !data.domain) {
|
|
21
23
|
output_1.default.exitError(texts_1.ERR_WORKSPACE_NOT_FOUND);
|
|
22
24
|
}
|
|
@@ -101,10 +101,10 @@ const initRepo = async (workspace, project, path, git, options) => {
|
|
|
101
101
|
output_1.default.exitNormal();
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
await (0, utils_1.execLocally)('git config
|
|
104
|
+
await (0, utils_1.execLocally)('git config credential.helper ""', {
|
|
105
105
|
cwd: path,
|
|
106
106
|
});
|
|
107
|
-
await (0, utils_1.execLocally)("git config --
|
|
107
|
+
await (0, utils_1.execLocally)("git config --add credential.helper '!bdy project git credential'", {
|
|
108
108
|
cwd: path,
|
|
109
109
|
});
|
|
110
110
|
};
|