chore(@embark): move subdir dependency into embark

This commit is contained in:
Iuri Matias 2018-11-28 16:05:51 -05:00
parent ee55550b8b
commit 0c7d6699e6
3 changed files with 7 additions and 7 deletions

View File

@ -162,7 +162,6 @@
"stream-json": "1.1.3",
"string-replace-async": "1.2.1",
"style-loader": "0.23.1",
"subdir": "0.0.3",
"swarm-api": "0.1.2",
"tar": "3.2.1",
"term.js": "0.0.7",

View File

@ -61,7 +61,13 @@ var path = require('path');
var parseJsonWithErrors = require('json-parse-better-errors');
var pkgUp = require('pkg-up');
var semver = require('semver');
var subdir = require('subdir');
var subdir = function (pdir_, dir_) {
var pdir = path.resolve(path.normalize(pdir_)) + (path.sep || '/');
var dir = path.resolve(pdir, path.normalize(dir_));
if (pdir === '//') pdir = '/';
if (pdir === dir) return false;
return dir.slice(0, pdir.length) === pdir;
};
// -- embark bins --------------------------------------------------------------

View File

@ -11050,11 +11050,6 @@ style-loader@0.23.1:
loader-utils "^1.1.0"
schema-utils "^1.0.0"
subdir@0.0.3:
version "0.0.3"
resolved "https://registry.yarnpkg.com/subdir/-/subdir-0.0.3.tgz#d9a7d3f8c221a0d951b1ca1cfcf5a3147dc3e1a1"
integrity sha1-2afT+MIhoNlRscoc/PWjFH3D4aE=
supports-color@5.4.0:
version "5.4.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.4.0.tgz#1c6b337402c2137605efe19f10fec390f6faab54"