bugfix(@embark/embark-utils): fix import of dockerHostSwap

bugfix(@embark/embark-utils): fix import of dockerHostSwap

bugfix(@embark/embark-utils): fix ts npm call

add ts declartion for embark-utils

add ts declartion for embark-utils
This commit is contained in:
Iuri Matias 2019-03-27 15:16:25 -04:00
parent 1107138cf5
commit 9b493ae7e3
3 changed files with 8 additions and 7 deletions

1
packages/embark-utils/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
declare module "embark-utils";

View File

@ -31,22 +31,22 @@
"clean": "npm run reset",
"lint": "npm-run-all lint:*",
"lint:js": "eslint src/",
"// lint:ts": "tslint -c tslint.json \"src/**/*.ts\"",
"lint:ts": "tslint -c tslint.json \"src/**/*.ts\"",
"package": "npm pack",
"// qa": "npm-run-all lint typecheck build package",
"qa": "npm-run-all lint build package",
"qa": "npm-run-all lint typecheck build package",
"reset": "npx rimraf dist embark-*.tgz package",
"start": "npm run watch",
"// typecheck": "tsc",
"typecheck": "tsc",
"watch": "run-p watch:*",
"watch:build": "npm run build -- --verbose --watch",
"// watch:typecheck": "npm run typecheck -- --preserveWatchOutput --watch"
"watch:typecheck": "npm run typecheck -- --preserveWatchOutput --watch"
},
"eslintConfig": {
"extends": "../../.eslintrc.json"
},
"dependencies": {
"@babel/runtime-corejs2": "7.3.1"
"@babel/runtime-corejs2": "7.3.1",
"follow-redirects": "1.5.7"
},
"devDependencies": {
"@babel/cli": "7.2.3",

View File

@ -1,10 +1,10 @@
import {Embark} from "embark";
import {__} from "i18n";
import {dockerHostSwap} from "../../utils/host.js";
import {findNextPort} from "../../utils/network";
import Server from "./server";
const utils = require("../../utils/utils.js");
import {dockerHostSwap} from "embark-utils";
const DEFAULT_PORT = 55555;
const DEFAULT_HOSTNAME = "localhost";