Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from Zowe CLI package to Zowe SDKs #2730

Merged
merged 13 commits into from
Feb 28, 2024
Merged
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"vscode": "^1.79.0"
},
"dependencies": {
"@vscode/l10n": "^0.0.18",
"@zowe/cli": "8.0.0-next.202402261705"
"@vscode/l10n": "^0.0.18"
},
"devDependencies": {
"@types/jest": "^29.2.3",
Expand Down Expand Up @@ -76,6 +75,7 @@
"package": "pnpm run -r package",
"pretest:integration": "ts-node ./scripts/create-env.ts",
"posttest:integration": "ts-node ./scripts/clean-env.ts",
"preinstall": "npx only-allow pnpm"
"preinstall": "npx only-allow pnpm",
"update-sdks": "pnpm -r update \"@zowe/*@next\" \"!@zowe/zowe-explorer-api\""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

}
}
4 changes: 3 additions & 1 deletion packages/zowe-explorer-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ All notable changes to the "zowe-explorer-api" extension will be documented in t

### New features and enhancements

- Migrated from `@zowe/cli` package to individual Zowe SDK packages. [#2719](https://github.com/zowe/vscode-extension-for-zowe/issues/2719)

### Bug fixes

- Fixed issue where `zosmf` profiles did not respect the `protocol` property [#2703](https://github.com/zowe/vscode-extension-for-zowe/issues/2703).
- Fixed issue where `zosmf` profiles did not respect the `protocol` property. [#2703](https://github.com/zowe/vscode-extension-for-zowe/issues/2703)
- **Breaking:** ProfilesCache.getProfileInfo no longer accepts any parameters. [#2744](https://github.com/zowe/vscode-extension-for-zowe/pull/2744)

## `3.0.0-next.202402142205`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
*/

import { imperative } from "@zowe/cli";
import * as imperative from "@zowe/imperative";
import { MessageSeverity, IZoweLogger } from "../../../src/logger";
import * as loggerConfig from "../../../src/log4jsconfig.json";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@

import * as path from "path";
import * as fs from "fs";
import { getZoweDir, imperative } from "@zowe/cli";
import { getZoweDir } from "@zowe/core-for-zowe-sdk";
import * as imperative from "@zowe/imperative";
import { ProfilesCache } from "../../../src/profiles/ProfilesCache";
import { FileManagement, ZoweExplorerApi } from "../../../src";

jest.mock("fs");
jest.mock("@zowe/cli", () => {
jest.mock("@zowe/core-for-zowe-sdk", () => {
/* eslint-disable @typescript-eslint/no-unsafe-return */
return {
...jest.requireActual("@zowe/cli"),
...jest.requireActual("@zowe/core-for-zowe-sdk"),
getZoweDir: jest.fn().mockReturnValue("~/.zowe"),
};
});
Expand Down
Loading
Loading