Skip to content

Commit

Permalink
refactor: file structuring
Browse files Browse the repository at this point in the history
  • Loading branch information
rumblefrog committed Nov 16, 2019
1 parent 27193c7 commit 55e254e
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const tool_cache_1 = require("@actions/tool-cache");
const core_1 = require("@actions/core");
const semver_1 = require("semver");
const path_1 = require("path");
const scraper_1 = require("./scraper");
const scraper_1 = require("./utils/scraper");
let versions;
function installCompiler(range) {
return __awaiter(this, void 0, void 0, function* () {
Expand Down
2 changes: 1 addition & 1 deletion lib/structures/versioning.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const constants_1 = require("../constants");
const constants_1 = require("../utils/constants");
var Platform;
(function (Platform) {
Platform["Linux"] = "linux";
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/scraper.js → lib/utils/scraper.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", { value: true });
const constants_1 = require("./constants");
const versioning_1 = require("./structures/versioning");
const versioning_1 = require("../structures/versioning");
const HttpClient_1 = require("typed-rest-client/HttpClient");
const await_to_js_1 = __importDefault(require("await-to-js"));
const client = new HttpClient_1.HttpClient('setup-sp');
Expand Down
2 changes: 1 addition & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { find as findCache, downloadTool, extractTar, extractZip, cacheDir } fro
import { addPath } from '@actions/core';
import { maxSatisfying } from 'semver';
import { join as pathJoin } from 'path';
import { getVersions } from './scraper';
import { getVersions } from './utils/scraper';

let versions;

Expand Down
2 changes: 1 addition & 1 deletion src/structures/versioning.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ENDPOINT } from '../constants';
import { ENDPOINT } from '../utils/constants';

export enum Platform {
Linux = "linux",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/scraper.ts → src/utils/scraper.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ENDPOINT, MM_REGEX, BUILD_REGEX } from './constants';
import { Platform, Version, Versions, parsePlatform } from './structures/versioning';
import { Platform, Version, Versions, parsePlatform } from '../structures/versioning';
import { HttpClient } from 'typed-rest-client/HttpClient';
import to from 'await-to-js';

Expand Down

0 comments on commit 55e254e

Please sign in to comment.