From 6c001876ae5e2bce7d4b751267d00782d09eb482 Mon Sep 17 00:00:00 2001 From: Jong-hoon Oh Date: Thu, 17 Oct 2019 22:33:48 +0900 Subject: [PATCH] fix: fix windows bug & removed bad deps --- package.json | 2 +- src/cli.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 13d59ab9..90e12b89 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,6 @@ "branch": "next" }, "dependencies": { - "@types/lodash": "^4.14.144", "aws-sdk": "^2.544.0", "lodash": "^4.17.15", "table": "^5.4.6", @@ -56,6 +55,7 @@ "@commitlint/cli": "^8.2.0", "@istanbuljs/nyc-config-typescript": "^0.1.3", "@types/jest": "^24.0.18", + "@types/lodash": "^4.14.144", "@types/node": "^12.7.5", "@types/prettier": "^1.18.3", "@types/table": "^4.0.7", diff --git a/src/cli.ts b/src/cli.ts index b3da1e77..fae4c200 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -1,3 +1,4 @@ +import { sep } from 'path'; import * as yargs from 'yargs'; import { @@ -246,7 +247,7 @@ export const main = (argvInput?: string[]) => if ( require.main && (require.main.filename === module.filename || - require.main.filename.endsWith('/bin/aws-spot-price')) + require.main.filename.endsWith(`${sep}bin${sep}aws-spot-price`)) ) { (async () => { await main();