From 2d1abf43e5ff0e43b05c87450d5b6ad449ca977a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Dalfors?= Date: Mon, 24 Sep 2018 22:34:16 +0200 Subject: [PATCH] remove upath dependency because of unintended introduction breaking changes (#154) --- package.json | 1 - src/index.js | 4 ++-- yarn.lock | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 0dcc643..5586b8d 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,6 @@ "mocha": "^3.0.2", "power-assert": "^1.4.1", "rimraf": "^2.4.3", - "upath": "^1.1.0", "uuid": "^3.3.2" }, "scripts": { diff --git a/src/index.js b/src/index.js index fbf4205..acfea89 100644 --- a/src/index.js +++ b/src/index.js @@ -4,7 +4,7 @@ * See the accompanying LICENSE file for terms. */ -import * as p from 'upath'; +import * as p from 'path'; import {writeFileSync} from 'fs'; import {sync as mkdirpSync} from 'mkdirp'; import printICUMessage from './print-icu-message'; @@ -152,7 +152,7 @@ export default function ({types: t}) { let loc; if (opts.extractSourceLocation) { loc = { - file: p.toUnix(p.relative(process.cwd(), file.opts.filename)), + file: p.relative(process.cwd(), file.opts.filename), ...path.node.loc, }; } diff --git a/yarn.lock b/yarn.lock index 9f858f6..428176e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2991,7 +2991,7 @@ unset-value@^1.0.0: has-value "^0.3.1" isobject "^3.0.0" -upath@^1.0.5, upath@^1.1.0: +upath@^1.0.5: version "1.1.0" resolved "https://registry.yarnpkg.com/upath/-/upath-1.1.0.tgz#35256597e46a581db4793d0ce47fa9aebfc9fabd"