Revert "added paths in tsconfig.json"

This reverts commit cb2f4176bf.
This commit is contained in:
aksm-ms
2020-03-17 17:26:39 +05:30
parent cb2f4176bf
commit 860e5ace46
7 changed files with 21 additions and 25 deletions

View File

@@ -20,10 +20,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
}; };
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(require("@actions/core")); const core = __importStar(require("@actions/core"));
const Utils_1 = __importDefault(require("PowerShell/Utilities/Utils")); const Utils_1 = __importDefault(require("./Utilities/Utils"));
const PowerShellToolRunner_1 = __importDefault(require("PowerShell/Utilities/PowerShellToolRunner")); const PowerShellToolRunner_1 = __importDefault(require("./Utilities/PowerShellToolRunner"));
const ScriptBuilder_1 = __importDefault(require("PowerShell/Utilities/ScriptBuilder")); const ScriptBuilder_1 = __importDefault(require("./Utilities/ScriptBuilder"));
const Constants_1 = __importDefault(require("PowerShell/Constants")); const Constants_1 = __importDefault(require("./Constants"));
class ServicePrincipalLogin { class ServicePrincipalLogin {
constructor(servicePrincipalId, servicePrincipalKey, tenantId, subscriptionId) { constructor(servicePrincipalId, servicePrincipalKey, tenantId, subscriptionId) {
this.servicePrincipalId = servicePrincipalId; this.servicePrincipalId = servicePrincipalId;
@@ -48,7 +48,7 @@ class ServicePrincipalLogin {
}); });
} }
} }
exports.default = ServicePrincipalLogin; exports.ServicePrincipalLogin = ServicePrincipalLogin;
ServicePrincipalLogin.environment = Constants_1.default.environment; ServicePrincipalLogin.environment = Constants_1.default.environment;
ServicePrincipalLogin.scopeLevel = Constants_1.default.scopeLevel; ServicePrincipalLogin.scopeLevel = Constants_1.default.scopeLevel;
ServicePrincipalLogin.scheme = Constants_1.default.scheme; ServicePrincipalLogin.scheme = Constants_1.default.scheme;

View File

@@ -20,8 +20,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
}; };
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
const os = __importStar(require("os")); const os = __importStar(require("os"));
const Constants_1 = __importDefault(require("PowerShell/Constants")); const Constants_1 = __importDefault(require("../Constants"));
const PowerShellToolRunner_1 = __importDefault(require("PowerShell/Utilities/PowerShellToolRunner")); const PowerShellToolRunner_1 = __importDefault(require("./PowerShellToolRunner"));
class Utils { class Utils {
static getLatestModule(moduleName) { static getLatestModule(moduleName) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {

View File

@@ -15,16 +15,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
result["default"] = mod; result["default"] = mod;
return result; return result;
}; };
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(require("@actions/core")); const core = __importStar(require("@actions/core"));
const crypto = __importStar(require("crypto")); const crypto = __importStar(require("crypto"));
const exec = __importStar(require("@actions/exec")); const exec = __importStar(require("@actions/exec"));
const io = __importStar(require("@actions/io")); const io = __importStar(require("@actions/io"));
const actions_secret_parser_1 = require("actions-secret-parser"); const actions_secret_parser_1 = require("actions-secret-parser");
const ServicePrincipalLogin_1 = __importDefault(require("PowerShell/ServicePrincipalLogin")); const ServicePrincipalLogin_1 = require("./PowerShell/ServicePrincipalLogin");
var azPath; var azPath;
var prefix = !!process.env.AZURE_HTTP_USER_AGENT ? `${process.env.AZURE_HTTP_USER_AGENT}` : ""; var prefix = !!process.env.AZURE_HTTP_USER_AGENT ? `${process.env.AZURE_HTTP_USER_AGENT}` : "";
function main() { function main() {
@@ -51,7 +48,7 @@ function main() {
yield executeAzCliCommand(`account set --subscription "${subscriptionId}"`); yield executeAzCliCommand(`account set --subscription "${subscriptionId}"`);
if (enablePSSession) { if (enablePSSession) {
console.log(`Running Azure PS Login`); console.log(`Running Azure PS Login`);
const spnlogin = new ServicePrincipalLogin_1.default(servicePrincipalId, servicePrincipalKey, tenantId, subscriptionId); const spnlogin = new ServicePrincipalLogin_1.ServicePrincipalLogin(servicePrincipalId, servicePrincipalKey, tenantId, subscriptionId);
spnlogin.initialize(); spnlogin.initialize();
spnlogin.login(); spnlogin.login();
} }

View File

@@ -1,11 +1,11 @@
import * as core from '@actions/core'; import * as core from '@actions/core';
import Utils from 'PowerShell/Utilities/Utils'; import Utils from './Utilities/Utils';
import PowerShellToolRunner from 'PowerShell/Utilities/PowerShellToolRunner'; import PowerShellToolRunner from './Utilities/PowerShellToolRunner';
import ScriptBuilder from 'PowerShell/Utilities/ScriptBuilder'; import ScriptBuilder from './Utilities/ScriptBuilder';
import Constants from 'PowerShell/Constants'; import Constants from './Constants';
export default class ServicePrincipalLogin implements IAzurePowerShellSession { export class ServicePrincipalLogin implements IAzurePowerShellSession {
static readonly environment: string = Constants.environment; static readonly environment: string = Constants.environment;
static readonly scopeLevel: string = Constants.scopeLevel; static readonly scopeLevel: string = Constants.scopeLevel;
static readonly scheme: string = Constants.scheme; static readonly scheme: string = Constants.scheme;

View File

@@ -1,7 +1,9 @@
import * as os from 'os'; import * as os from 'os';
import * as exec from '@actions/exec';
import * as io from '@actions/io';
import Constants from 'PowerShell/Constants'; import Constants from '../Constants';
import PowerShellToolRunner from 'PowerShell/Utilities/PowerShellToolRunner'; import PowerShellToolRunner from './PowerShellToolRunner';
export default class Utils { export default class Utils {
static async getLatestModule(moduleName: string): Promise<string> { static async getLatestModule(moduleName: string): Promise<string> {

View File

@@ -4,7 +4,7 @@ import * as exec from '@actions/exec';
import * as io from '@actions/io'; import * as io from '@actions/io';
import { FormatType, SecretParser } from 'actions-secret-parser'; import { FormatType, SecretParser } from 'actions-secret-parser';
import ServicePrincipalLogin from 'PowerShell/ServicePrincipalLogin'; import { ServicePrincipalLogin } from './PowerShell/ServicePrincipalLogin';
var azPath: string; var azPath: string;
var prefix = !!process.env.AZURE_HTTP_USER_AGENT ? `${process.env.AZURE_HTTP_USER_AGENT}` : ""; var prefix = !!process.env.AZURE_HTTP_USER_AGENT ? `${process.env.AZURE_HTTP_USER_AGENT}` : "";

View File

@@ -38,11 +38,8 @@
/* Module Resolution Options */ /* Module Resolution Options */
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
"baseUrl": "src", /* Base directory to resolve non-absolute module names. */ // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
"paths": { /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
"PowerShell/*": ["PowerShell/*"],
"PowerShell/Utilities/*": [ "PowerShell/Utilities/*"]
},
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
// "typeRoots": [], /* List of folders to include type definitions from. */ // "typeRoots": [], /* List of folders to include type definitions from. */
// "types": [], /* Type declaration files to be included in compilation. */ // "types": [], /* Type declaration files to be included in compilation. */