Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 2d1abf4

Browse files
bj00rnredonkulus
authored andcommitted
remove upath dependency because of unintended introduction breaking changes (#154)
1 parent 26d93f2 commit 2d1abf4

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"mocha": "^3.0.2",
3131
"power-assert": "^1.4.1",
3232
"rimraf": "^2.4.3",
33-
"upath": "^1.1.0",
3433
"uuid": "^3.3.2"
3534
},
3635
"scripts": {

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* See the accompanying LICENSE file for terms.
55
*/
66

7-
import * as p from 'upath';
7+
import * as p from 'path';
88
import {writeFileSync} from 'fs';
99
import {sync as mkdirpSync} from 'mkdirp';
1010
import printICUMessage from './print-icu-message';
@@ -152,7 +152,7 @@ export default function ({types: t}) {
152152
let loc;
153153
if (opts.extractSourceLocation) {
154154
loc = {
155-
file: p.toUnix(p.relative(process.cwd(), file.opts.filename)),
155+
file: p.relative(process.cwd(), file.opts.filename),
156156
...path.node.loc,
157157
};
158158
}

yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -2991,7 +2991,7 @@ unset-value@^1.0.0:
29912991
has-value "^0.3.1"
29922992
isobject "^3.0.0"
29932993

2994-
upath@^1.0.5, upath@^1.1.0:
2994+
upath@^1.0.5:
29952995
version "1.1.0"
29962996
resolved "https://registry.yarnpkg.com/upath/-/upath-1.1.0.tgz#35256597e46a581db4793d0ce47fa9aebfc9fabd"
29972997

0 commit comments

Comments
 (0)