Skip to content

Commit

Permalink
Merge pull request #2343 from zowe/fix/zostso-failing-imports
Browse files Browse the repository at this point in the history
Fix imports failing to resolve in TSO SDK
  • Loading branch information
t1m0thyj authored Nov 4, 2024
2 parents 23b05f1 + b311d01 commit b6e8882
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 15 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = {
],
"rules": {
"@typescript-eslint/no-magic-numbers": "off",
"@typescript-eslint/no-restricted-imports": "off",
"jest/expect-expect": ["warn", {
"assertFunctionNames": ["expect*", "**.*expect*"]
}],
Expand Down Expand Up @@ -64,6 +65,11 @@ module.exports = {
"ignoreEnums": true,
"ignoreReadonlyClassProperties": true
}],
"@typescript-eslint/no-restricted-imports": ["error", {
"patterns": [{
"group": ["**/../lib", "**/../src"]
}]
}],
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/semi": "warn",
Expand Down
2 changes: 1 addition & 1 deletion packages/imperative/src/cmd/src/doc/ICommandDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { IChainedHandlerEntry } from "./handler/IChainedHandlerEntry";
import { ICommandOptionDefinition } from "./option/ICommandOptionDefinition";
import { ICommandPositionalDefinition } from "./option/ICommandPositionalDefinition";
import { ICommandDefinitionPassOn } from "./ICommandDefinitionPassOn";
import { ICommandProfile } from "../../src/doc/profiles/definition/ICommandProfile";
import { ICommandProfile } from "../doc/profiles/definition/ICommandProfile";
/**
* Command Segment type - either "group" or "command".
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
*/

import { ICommandResponse } from "../../../src/doc/response/response/ICommandResponse";
import { ICommandResponse } from "../../doc/response/response/ICommandResponse";
import { CommandResponse } from "../../response/CommandResponse";

export interface ICommandHandlerResponseValidator {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
*/

import { ICommandOutputFormat } from "../../../../../src/doc/response/response/ICommandOutputFormat";
import { ICommandOutputFormat } from "../../../../doc/response/response/ICommandOutputFormat";

export interface IHandlerFormatOutputApi {
output: (format: ICommandOutputFormat) => void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { CommandUtils } from "../utils/CommandUtils";
import { ImperativeError } from "../../../error";
import { IHelpGeneratorParms } from "./doc/IHelpGeneratorParms";
import { IHelpGeneratorFactoryParms } from "./doc/IHelpGeneratorFactoryParms";
import { compareCommands, ICommandDefinition } from "../../src/doc/ICommandDefinition";
import { compareCommands, ICommandDefinition } from "../doc/ICommandDefinition";
import stripAnsi = require("strip-ansi");
import { CliUtils } from "../../../utilities/src/CliUtils";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { ImperativeExpect } from "../../../expect";
import { IHandlerFormatOutputApi } from "../doc/response/api/handler/IHandlerFormatOutputApi";
import { ICommandOutputFormat, OUTPUT_FORMAT } from "../doc/response/response/ICommandOutputFormat";
import { Arguments } from "yargs";
import { ICommandDefinition } from "../../src/doc/ICommandDefinition";
import { ICommandDefinition } from "../doc/ICommandDefinition";
import { OptionConstants } from "../constants/OptionConstants";
import { inspect } from "util";
import * as DeepMerge from "deepmerge";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { ImperativeYargsCommandAction, IYargsResponse } from "./doc/IYargsRespon
import { GroupCommandYargs } from "./GroupCommandYargs";
import { IHelpGeneratorFactory } from "../help/doc/IHelpGeneratorFactory";
import { CommandResponse } from "../response/CommandResponse";
import { ICommandResponse } from "../../src/doc/response/response/ICommandResponse";
import { ICommandResponse } from "../doc/response/response/ICommandResponse";
import { ICommandExampleDefinition } from "../..";
import { ImperativeConfig } from "../../../utilities/src/ImperativeConfig";

Expand Down
6 changes: 3 additions & 3 deletions packages/imperative/src/cmd/src/yargs/CommandYargs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import { inspect } from "util";
import { Constants } from "../../../constants";
import { IYargsResponse } from "./doc/IYargsResponse";
import { AbstractCommandYargs, YargsCommandCompleted } from "./AbstractCommandYargs";
import { ICommandOptionDefinition } from "../../src/doc/option/ICommandOptionDefinition";
import { ICommandOptionDefinition } from "../doc/option/ICommandOptionDefinition";
import { ICommandDefinition } from "../doc/ICommandDefinition";
import { CommandProcessor } from "../CommandProcessor";
import { ICommandResponse } from "../../src/doc/response/response/ICommandResponse";
import { CommandResponse } from "../../src/response/CommandResponse";
import { ICommandResponse } from "../doc/response/response/ICommandResponse";
import { CommandResponse } from "../response/CommandResponse";
import { ImperativeConfig } from "../../../utilities";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
*/

import { ICommandResponse } from "../../../src/doc/response/response/ICommandResponse";
import { ICommandResponse } from "../../doc/response/response/ICommandResponse";
/**
* Indicates the action performed.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
*
*/

import { IImperativeConfig } from "../../src/doc/IImperativeConfig";
import { UpdateImpConfig } from "../../src/UpdateImpConfig";
import { IImperativeConfig } from "../doc/IImperativeConfig";
import { UpdateImpConfig } from "../UpdateImpConfig";
import { isAbsolute, join } from "path";
import { ImperativeConfig, JsUtils } from "../../../utilities";
import { Logger } from "../../../logger";
Expand Down
4 changes: 4 additions & 0 deletions packages/zostso/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to the Zowe z/OS TSO SDK package will be documented in this file.

## Recent Changes

- BugFix: Fixed imports that failed to resolve. [#2343](https://github.com/zowe/zowe-cli/pull/2343)

## `8.6.0`

- Enhancement: Issue `app` commands to better target communication with a TSO/E application. The `app` command is now included in the `start`/`send` command group and the new `receive` command group,
Expand Down
2 changes: 1 addition & 1 deletion packages/zostso/src/AddressSpaceApps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { IStartTsoParms } from "./doc/input/IStartTsoParms";
import { TsoValidator } from "./TsoValidator";
import { IStartTsoAppParms } from "./doc/input/IStartTsoAppParms";
import { StartTso } from "./StartTso";
import { IIssueResponse } from "../src";
import { IIssueResponse } from "./doc/IIssueResponse";

export class AddressSpaceApps {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/zostso/src/doc/IASAppResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
*/

import { ITsoMessage } from "../../src";
import { ITsoMessage } from "./zosmf/ITsoMessage";

export interface IASAppResponse {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/zostso/src/doc/IIssueResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface IIssueResponse {
startResponse?: IStartStopResponses;

/**
* Indicates if started TSO containes "READY " message
* Indicates if started TSO contains "READY" message
* @type {boolean}
* @memberof IIssueResponse
*/
Expand Down

0 comments on commit b6e8882

Please sign in to comment.