rev-dep 1.0.0-alpha.3 → 1.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -3
- package/dist/cli/entryPoints/index.js +1 -1
- package/dist/cli/files/index.js +1 -1
- package/dist/cli/resolve/index.js +2 -3
- package/dist/lib/find.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -133,7 +133,6 @@ rev-dep resolve <filePath> [entryPoints...] [options]
|
|
|
133
133
|
|
|
134
134
|
- `-wc, --webpackConfig <path>` - path to webpack config to enable webpack aliases support (_optional_)
|
|
135
135
|
- `--cwd <path>` - path to a directory that should be used as a resolution root (_optional_)
|
|
136
|
-
- `-rr --reexportRewire <value>` - resolve actual dependencies for "export \* from" statements (_optional_)
|
|
137
136
|
- `-i --include <globs...>` - A list of globs to determine files included in entry points search (_optional_)
|
|
138
137
|
- `-e --exclude <globs...>` - A list of globs to determine files excluded in entry points search (_optional_)
|
|
139
138
|
- `-cs, --compactSummary` - print a compact summary of reverse resolution with a count of found paths (_optional_)
|
|
@@ -153,7 +152,6 @@ rev-dep entry-points [options]
|
|
|
153
152
|
|
|
154
153
|
- `-wc, --webpackConfig <path>` - path to webpack config to enable webpack aliases support (_optional_)
|
|
155
154
|
- `--cwd <path>` - path to a directory that should be used as a resolution root (_optional_)
|
|
156
|
-
- `-rr --reexportRewire <value>` - resolve actual dependencies for "export \* from" statements (_optional_)
|
|
157
155
|
- `-i --include <globs...>` - A list of globs to determine files included in entry points search (_optional_)
|
|
158
156
|
- `-e --exclude <globs...>` - A list of globs to determine files excluded in entry points search (_optional_)
|
|
159
157
|
- `-pdc, --printDependenciesCount` - print count of entry point dependencies (_optional_)
|
|
@@ -177,7 +175,6 @@ rev-dep files <entryPoint> [options]
|
|
|
177
175
|
|
|
178
176
|
- `-wc, --webpackConfig <path>` - path to webpack config to enable webpack aliases support (_optional_)
|
|
179
177
|
- `--cwd <path>` - path to a directory that should be used as a resolution root (_optional_)
|
|
180
|
-
- `-rr --reexportRewire <value>` - resolve actual dependencies for "export \* from" statements (_optional_)
|
|
181
178
|
- `-c, --count` - print only count of entry point dependencies (_optional_)
|
|
182
179
|
|
|
183
180
|
### Command `docs`
|
|
@@ -10,7 +10,7 @@ function createEntryPoints(program) {
|
|
|
10
10
|
.description('Print list of entry points in current directory')
|
|
11
11
|
.option(...commonOptions_1.webpackConfigOption)
|
|
12
12
|
.option(...commonOptions_1.cwdOption)
|
|
13
|
-
.option(...
|
|
13
|
+
// .option(...reexportRewireOption)
|
|
14
14
|
.option(...commonOptions_1.includeOption)
|
|
15
15
|
.option(...commonOptions_1.excludeOption)
|
|
16
16
|
.option('-pdc, --printDependenciesCount', 'print count of entry point dependencies', false)
|
package/dist/cli/files/index.js
CHANGED
|
@@ -11,7 +11,7 @@ function createFiles(program) {
|
|
|
11
11
|
})
|
|
12
12
|
.option(...commonOptions_1.webpackConfigOption)
|
|
13
13
|
.option(...commonOptions_1.cwdOption)
|
|
14
|
-
.option(...
|
|
14
|
+
// .option(...reexportRewireOption)
|
|
15
15
|
.option('-c, --count', 'print only count of entry point dependencies', false)
|
|
16
16
|
.action(async (entryPoint, data) => {
|
|
17
17
|
const { webpackConfig: webpackConfigPath, cwd, count } = data;
|
|
@@ -13,16 +13,15 @@ function createResolve(program) {
|
|
|
13
13
|
})
|
|
14
14
|
.option(...commonOptions_1.webpackConfigOption)
|
|
15
15
|
.option(...commonOptions_1.cwdOption)
|
|
16
|
-
.option(...
|
|
16
|
+
// .option(...reexportRewireOption)
|
|
17
17
|
.option(...commonOptions_1.includeOption)
|
|
18
18
|
.option(...commonOptions_1.excludeOption)
|
|
19
19
|
.option('-cs, --compactSummary', 'print a compact summary of reverse resolution with a count of found paths')
|
|
20
20
|
.option('-a, --all', 'finds all paths combination of a given dependency. Might work very slow or crash for some projects due to heavy usage of RAM', false)
|
|
21
21
|
.action(async (filePath, entryPoints, data) => {
|
|
22
22
|
const { compactSummary, webpackConfig, all, cwd, exclude, include } = data;
|
|
23
|
-
const sanitizedEntryPoints = (0, utils_1.sanitizeUserEntryPoints)(entryPoints);
|
|
24
23
|
const [results, resolveEntryPoints] = await (0, find_1.resolve)({
|
|
25
|
-
entryPoints
|
|
24
|
+
entryPoints,
|
|
26
25
|
filePath,
|
|
27
26
|
webpackConfig,
|
|
28
27
|
all,
|
package/dist/lib/find.js
CHANGED
|
@@ -24,7 +24,8 @@ const resolve = async ({ entryPoints: _entryPoints, filePath, webpackConfig, cwd
|
|
|
24
24
|
let deps, entryPoints;
|
|
25
25
|
if (_entryPoints.length > 0) {
|
|
26
26
|
entryPoints = _entryPoints;
|
|
27
|
-
|
|
27
|
+
const sanitizedEntryPoints = (0, utils_1.sanitizeUserEntryPoints)(entryPoints);
|
|
28
|
+
deps = await (0, getDepsTree_1.getDepsTree)(cwd, sanitizedEntryPoints, webpackConfig);
|
|
28
29
|
}
|
|
29
30
|
else {
|
|
30
31
|
;
|