@teambit/dependencies 1.0.408 → 1.0.409
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.
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<testsuites tests="169" failures="0" errors="0" skipped="33">
|
|
3
|
-
<testsuite name="teambit.dependencies/dependencies@1.0.
|
|
4
|
-
<testcase classname="dist/dependencies.spec.js" name="should add the snap prefix" time="0.
|
|
5
|
-
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/testing-library__jest-dom" time="0.
|
|
3
|
+
<testsuite name="teambit.dependencies/dependencies@1.0.409" tests="169" failures="0" errors="0" skipped="33">
|
|
4
|
+
<testcase classname="dist/dependencies.spec.js" name="should add the snap prefix" time="0.002"/>
|
|
5
|
+
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/testing-library__jest-dom" time="0.002"/>
|
|
6
6
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/chai"/>
|
|
7
7
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/mocha"/>
|
|
8
|
-
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/classnames"/>
|
|
8
|
+
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/classnames" time="0.001"/>
|
|
9
9
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/cors"/>
|
|
10
10
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/cross-spawn"/>
|
|
11
11
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/didyoumean"/>
|
|
12
12
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/eslint"/>
|
|
13
13
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/express"/>
|
|
14
14
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/find-cache-dir"/>
|
|
15
|
-
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/find-root"/>
|
|
15
|
+
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/find-root" time="0.001"/>
|
|
16
16
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/history"/>
|
|
17
|
-
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/http-proxy-agent"
|
|
17
|
+
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/http-proxy-agent"/>
|
|
18
18
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/lodash"/>
|
|
19
19
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/lodash.compact"/>
|
|
20
20
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/lodash.flatten"/>
|
|
21
21
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/lodash.head"/>
|
|
22
22
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/lodash.pick"/>
|
|
23
23
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/mdx-js__react"/>
|
|
24
|
-
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/memoizee"/>
|
|
24
|
+
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/memoizee" time="0.001"/>
|
|
25
25
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/mime"/>
|
|
26
26
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/mousetrap"/>
|
|
27
27
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/node"/>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/react-tabs"/>
|
|
33
33
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/react-tooltip"/>
|
|
34
34
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/socket.io-client"/>
|
|
35
|
-
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/ua-parser-js"/>
|
|
35
|
+
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/ua-parser-js" time="0.001"/>
|
|
36
36
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/url-join"/>
|
|
37
37
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/url-parse"/>
|
|
38
38
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/webpack"/>
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
<testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/webpack-merge"/>
|
|
41
41
|
<testcase classname="dist/files-dependency-builder/build-tree.spec.js" name="when no files are passed should return an empty tree" time="0.001"/>
|
|
42
42
|
<testcase classname="dist/files-dependency-builder/build-tree.spec.js" name="when unsupported files are passed should return them with no dependencies" time="0.001"/>
|
|
43
|
-
<testcase classname="dist/files-dependency-builder/build-tree.spec.js" name="when supported and unsupported files are passed should return them all" time="0.
|
|
43
|
+
<testcase classname="dist/files-dependency-builder/build-tree.spec.js" name="when supported and unsupported files are passed should return them all" time="0.1"/>
|
|
44
44
|
<testcase classname="dist/files-dependency-builder/build-tree.spec.js" name="when a js file has parsing error it should add the file to the tree with the error instance">
|
|
45
45
|
<skipped/>
|
|
46
46
|
</testcase>
|
|
@@ -67,52 +67,99 @@
|
|
|
67
67
|
<skipped/>
|
|
68
68
|
</testcase>
|
|
69
69
|
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an empty object for a non-existent filename" time="0.001"/>
|
|
70
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="handles nested tree structures" time="0.
|
|
71
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="does not include files that are not real (#13)" time="0.
|
|
72
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="does not choke on cyclic dependencies" time="0.
|
|
70
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="handles nested tree structures" time="0.005"/>
|
|
71
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="does not include files that are not real (#13)" time="0.002"/>
|
|
72
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="does not choke on cyclic dependencies" time="0.143"/>
|
|
73
73
|
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="excludes Nodejs core modules by default" time="0.001"/>
|
|
74
74
|
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns a list of absolutely pathed files"/>
|
|
75
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="passes it through to precinct" time="0.
|
|
75
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="passes it through to precinct" time="0.05"/>
|
|
76
76
|
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="stores the invalid partials" time="0.001"/>
|
|
77
77
|
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="does not store anything" time="0.002"/>
|
|
78
78
|
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="stores the invalid ones" time="0.002"/>
|
|
79
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should include the non-existent partial per file" time="0.
|
|
80
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="throws if the filename is missing"
|
|
79
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should include the non-existent partial per file" time="0.002"/>
|
|
80
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="throws if the filename is missing"/>
|
|
81
81
|
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="throws if the root is missing"/>
|
|
82
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="throws if a supplied filter is not a function"/>
|
|
82
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="throws if a supplied filter is not a function" time="0.001"/>
|
|
83
83
|
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="does not throw on the legacy `root` option"/>
|
|
84
84
|
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="does not throw"/>
|
|
85
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns no dependencies"/>
|
|
85
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns no dependencies" time="0.001"/>
|
|
86
86
|
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns the precomputed list of a cached entry point"/>
|
|
87
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.
|
|
87
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.001"/>
|
|
88
88
|
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.002"/>
|
|
89
89
|
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="resolves files that have jsx" time="0.001"/>
|
|
90
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="resolves files with a jsx extension" time="0.
|
|
90
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="resolves files with a jsx extension" time="0.002"/>
|
|
91
91
|
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="resolves files that have es7" time="0.001"/>
|
|
92
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.007"/>
|
|
93
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.001"/>
|
|
94
92
|
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.005"/>
|
|
95
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.
|
|
93
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.001"/>
|
|
94
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.006"/>
|
|
95
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.014"/>
|
|
96
96
|
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="resolves unaliased modules">
|
|
97
97
|
<skipped/>
|
|
98
98
|
</testcase>
|
|
99
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="uses the filter to determine if a file should be included in the results" time="0.
|
|
100
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="includes the lazy dependency" time="0.
|
|
99
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="uses the filter to determine if a file should be included in the results" time="0.002"/>
|
|
100
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="includes the lazy dependency" time="0.001"/>
|
|
101
101
|
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="includes the lazy dependency" time="0.001"/>
|
|
102
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="includes the dynamic import" time="0.
|
|
103
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should include it as a dependency and not throw an error"/>
|
|
102
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="includes the dynamic import" time="0.002"/>
|
|
103
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should include it as a dependency and not throw an error" time="0.001"/>
|
|
104
104
|
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="it includes the module entry as dependency">
|
|
105
105
|
<skipped/>
|
|
106
106
|
</testcase>
|
|
107
107
|
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="retains the detective config in the clone" time="0.001"/>
|
|
108
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should not override the cache with wrong packages" time="0.
|
|
108
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should not override the cache with wrong packages" time="0.004"/>
|
|
109
109
|
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should not crash with "RangeError: Maximum call stack size exceeded" error" time="0.001"/>
|
|
110
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should not show missing dependencies"/>
|
|
111
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should not show missing dependencies when importing from https" time="0.
|
|
112
|
-
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should not show missing dependencies when importing from http"/>
|
|
113
|
-
<testcase classname="dist/files-dependency-builder/
|
|
110
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should not show missing dependencies" time="0.001"/>
|
|
111
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should not show missing dependencies when importing from https" time="0.002"/>
|
|
112
|
+
<testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should not show missing dependencies when importing from http" time="0.001"/>
|
|
113
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="accepts an AST"/>
|
|
114
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="dangles off a given ast"/>
|
|
115
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="dangles off the parsed ast from a .js file" time="0.001"/>
|
|
116
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="dangles off the parsed ast from a scss detective" time="0.001"/>
|
|
117
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="dangles off the parsed ast from a sass detective" time="0.003"/>
|
|
118
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of amd modules" time="0.001"/>
|
|
119
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of commonjs modules" time="0.001"/>
|
|
120
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of es6 modules" time="0.001"/>
|
|
121
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of es6 modules with embedded jsx"/>
|
|
122
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of es6 modules with embedded es7" time="0.001"/>
|
|
123
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="throws errors of es6 modules with syntax errors" time="0.001"/>
|
|
124
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of css files">
|
|
125
|
+
<skipped/>
|
|
126
|
+
</testcase>
|
|
127
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of scss files" time="0.001"/>
|
|
128
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of sass files" time="0.001"/>
|
|
129
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of stylus files"/>
|
|
130
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of less files" time="0.001"/>
|
|
131
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of typescript files">
|
|
132
|
+
<skipped/>
|
|
133
|
+
</testcase>
|
|
134
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="throws errors of typescript modules with syntax errors"/>
|
|
135
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="supports the object form of type configuration" time="0.001"/>
|
|
136
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="yields no dependencies for es6 modules with no imports"/>
|
|
137
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="yields no dependencies for non-modules" time="0.001"/>
|
|
138
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="throw on unparsable .js files"/>
|
|
139
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="does not blow up when parsing a gruntfile #2" time="0.001"/>
|
|
140
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="returns the dependencies for the given filepath">
|
|
141
|
+
<skipped/>
|
|
142
|
+
</testcase>
|
|
143
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="throws if the file cannot be found" time="0.001"/>
|
|
144
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="filters out core modules if options.includeCore is false" time="0.001"/>
|
|
145
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="does not filter out core modules by default">
|
|
146
|
+
<skipped/>
|
|
147
|
+
</testcase>
|
|
148
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="supports passing detective configuration">
|
|
149
|
+
<skipped/>
|
|
150
|
+
</testcase>
|
|
151
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="supports passing env detectors"/>
|
|
152
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="still does not filter out core module by default">
|
|
153
|
+
<skipped/>
|
|
154
|
+
</testcase>
|
|
155
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="passes amd config to the amd detective"/>
|
|
156
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="returns both the commonjs and es6 dependencies" time="0.001"/>
|
|
157
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="returns both the commonjs and es6 dependencies"/>
|
|
158
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs those lazy dependencies" time="0.001"/>
|
|
159
|
+
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs the lazy imports" time="0.001"/>
|
|
160
|
+
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="uses a generic resolve for unsupported file extensions" time="0.001"/>
|
|
114
161
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="reuses the ast when trying to determine the module type"/>
|
|
115
|
-
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves the dependency successfully"/>
|
|
162
|
+
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves the dependency successfully" time="0.001"/>
|
|
116
163
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="uses the filename to look for the module type" time="0.001"/>
|
|
117
164
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="assumes commonjs for es6 modules with no requirejs/webpack config">
|
|
118
165
|
<skipped/>
|
|
@@ -121,10 +168,10 @@
|
|
|
121
168
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="uses require's resolver">
|
|
122
169
|
<skipped/>
|
|
123
170
|
</testcase>
|
|
124
|
-
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="returns an empty string for an unresolved module"
|
|
171
|
+
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="returns an empty string for an unresolved module"/>
|
|
125
172
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="adds the directory to the require resolution paths" time="0.001"/>
|
|
126
|
-
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves a relative dependency about the filename"
|
|
127
|
-
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves a .. dependency to its parent directory's index.js file"/>
|
|
173
|
+
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves a relative dependency about the filename"/>
|
|
174
|
+
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves a .. dependency to its parent directory's index.js file" time="0.001"/>
|
|
128
175
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves a dependency within a directory outside of the given file">
|
|
129
176
|
<skipped/>
|
|
130
177
|
</testcase>
|
|
@@ -134,21 +181,21 @@
|
|
|
134
181
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves a nested module" time="0.001"/>
|
|
135
182
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves to the index.js file of a directory" time="0.001"/>
|
|
136
183
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves implicit .jsx requires" time="0.001"/>
|
|
137
|
-
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves implicit .scss requires"/>
|
|
138
|
-
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves implicit .json requires"
|
|
184
|
+
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves implicit .scss requires" time="0.001"/>
|
|
185
|
+
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves implicit .json requires"/>
|
|
139
186
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves an import"/>
|
|
140
187
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="returns an empty result" time="0.001"/>
|
|
141
188
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="uses the sass resolver for .scss files" time="0.001"/>
|
|
142
189
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="uses the sass resolver for .sass files"/>
|
|
143
190
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="uses the stylus resolver"/>
|
|
144
191
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves extensionless dependencies"/>
|
|
145
|
-
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves dependencies with a less extension"/>
|
|
192
|
+
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves dependencies with a less extension" time="0.001"/>
|
|
146
193
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves dependencies with a css extension"/>
|
|
147
|
-
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="uses a generic resolve for unsupported file extensions"/>
|
|
194
|
+
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="uses a generic resolve for unsupported file extensions" time="0.001"/>
|
|
148
195
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="supports passing env detectors"/>
|
|
149
|
-
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="registers a custom resolver for a given extension" time="0.
|
|
150
|
-
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="allows does not break default resolvers"
|
|
151
|
-
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="can be called multiple times"/>
|
|
196
|
+
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="registers a custom resolver for a given extension" time="0.001"/>
|
|
197
|
+
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="allows does not break default resolvers"/>
|
|
198
|
+
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="can be called multiple times" time="0.001"/>
|
|
152
199
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="does not add redundant extensions to supportedFileExtensions"/>
|
|
153
200
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="should resolve the dependency to a node_module package (using webpack under the hood)">
|
|
154
201
|
<skipped/>
|
|
@@ -189,52 +236,5 @@
|
|
|
189
236
|
<testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="still works">
|
|
190
237
|
<skipped/>
|
|
191
238
|
</testcase>
|
|
192
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="accepts an AST" time="0.001"/>
|
|
193
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="dangles off a given ast"/>
|
|
194
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="dangles off the parsed ast from a .js file" time="0.002"/>
|
|
195
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="dangles off the parsed ast from a scss detective" time="0.001"/>
|
|
196
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="dangles off the parsed ast from a sass detective" time="0.004"/>
|
|
197
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of amd modules" time="0.001"/>
|
|
198
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of commonjs modules" time="0.001"/>
|
|
199
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of es6 modules" time="0.001"/>
|
|
200
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of es6 modules with embedded jsx"/>
|
|
201
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of es6 modules with embedded es7" time="0.001"/>
|
|
202
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="throws errors of es6 modules with syntax errors" time="0.001"/>
|
|
203
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of css files">
|
|
204
|
-
<skipped/>
|
|
205
|
-
</testcase>
|
|
206
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of scss files" time="0.002"/>
|
|
207
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of sass files" time="0.001"/>
|
|
208
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of stylus files"/>
|
|
209
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of less files" time="0.001"/>
|
|
210
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs dependencies of typescript files">
|
|
211
|
-
<skipped/>
|
|
212
|
-
</testcase>
|
|
213
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="throws errors of typescript modules with syntax errors" time="0.001"/>
|
|
214
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="supports the object form of type configuration"/>
|
|
215
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="yields no dependencies for es6 modules with no imports" time="0.002"/>
|
|
216
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="yields no dependencies for non-modules"/>
|
|
217
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="throw on unparsable .js files" time="0.001"/>
|
|
218
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="does not blow up when parsing a gruntfile #2" time="0.001"/>
|
|
219
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="returns the dependencies for the given filepath">
|
|
220
|
-
<skipped/>
|
|
221
|
-
</testcase>
|
|
222
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="throws if the file cannot be found" time="0.001"/>
|
|
223
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="filters out core modules if options.includeCore is false"/>
|
|
224
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="does not filter out core modules by default">
|
|
225
|
-
<skipped/>
|
|
226
|
-
</testcase>
|
|
227
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="supports passing detective configuration">
|
|
228
|
-
<skipped/>
|
|
229
|
-
</testcase>
|
|
230
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="supports passing env detectors"/>
|
|
231
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="still does not filter out core module by default">
|
|
232
|
-
<skipped/>
|
|
233
|
-
</testcase>
|
|
234
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="passes amd config to the amd detective" time="0.001"/>
|
|
235
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="returns both the commonjs and es6 dependencies"/>
|
|
236
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="returns both the commonjs and es6 dependencies"/>
|
|
237
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs those lazy dependencies" time="0.001"/>
|
|
238
|
-
<testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="grabs the lazy imports" time="0.001"/>
|
|
239
239
|
</testsuite>
|
|
240
240
|
</testsuites>
|
package/artifacts/schema.json
CHANGED
package/dist/dependencies-cmd.js
CHANGED
|
@@ -54,7 +54,7 @@ class DependenciesGetCmd {
|
|
|
54
54
|
_defineProperty(this, "group", 'info');
|
|
55
55
|
_defineProperty(this, "description", 'show direct and indirect dependencies of the given component');
|
|
56
56
|
_defineProperty(this, "alias", '');
|
|
57
|
-
_defineProperty(this, "options", [['', 'scope', 'get the data from the scope instead of the workspace'], ['t', 'tree', '
|
|
57
|
+
_defineProperty(this, "options", [['', 'scope', 'get the data from the scope instead of the workspace'], ['t', 'tree', 'render dependencies as a tree, similar to "npm ls"']]);
|
|
58
58
|
}
|
|
59
59
|
async report([id], {
|
|
60
60
|
tree = false,
|
|
@@ -243,7 +243,7 @@ class DependenciesBlameCmd {
|
|
|
243
243
|
description: 'package-name. for components, you can use either component-id or package-name'
|
|
244
244
|
}]);
|
|
245
245
|
_defineProperty(this, "group", 'info');
|
|
246
|
-
_defineProperty(this, "description", '
|
|
246
|
+
_defineProperty(this, "description", 'find out which snap/tag changed a dependency version');
|
|
247
247
|
_defineProperty(this, "alias", '');
|
|
248
248
|
_defineProperty(this, "options", []);
|
|
249
249
|
}
|
|
@@ -297,7 +297,7 @@ class DependenciesUsageCmd {
|
|
|
297
297
|
description: 'package-name. for components, you can use either component-id or package-name. if version is specified, it will search for the exact version'
|
|
298
298
|
}]);
|
|
299
299
|
_defineProperty(this, "group", 'info');
|
|
300
|
-
_defineProperty(this, "description", '
|
|
300
|
+
_defineProperty(this, "description", 'find components that use the specified dependency');
|
|
301
301
|
_defineProperty(this, "alias", '');
|
|
302
302
|
_defineProperty(this, "options", [['', 'depth <number>', 'max display depth of the dependency graph']]);
|
|
303
303
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_cliTable","data","_interopRequireDefault","require","_chalk","_archy","_constants","_template","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","DependenciesGetCmd","constructor","deps","name","description","report","id","tree","scope","results","getDependencies","idWithVersion","getGraphAsTree","graph","graphAsTree","getDependenciesAsObjectTree","toString","archy","err","chalk","red","graphTree","depsInfo","getDependenciesInfo","length","toStringWithoutVersion","depsTable","generateDependenciesInfoTable","exports","DependenciesDebugCmd","debugDependencies","JSON","stringify","undefined","DependenciesSetCmd","COMPONENT_PATTERN_HELP","pattern","packages","setDepsFlags","changedComps","addedPackages","setDependency","green","bold","join","DependenciesRemoveCmd","removeDepsFlags","removeDependency","yellow","output","map","removedPackages","underline","DependenciesUnsetCmd","DependenciesResetCmd","reset","comps","DependenciesEjectCmd","eject","DependenciesBlameCmd","compName","depName","blame","table","Table","chars","top","bottom","left","mid","right","middle","style","snap","tag","author","date","message","version","push","DependenciesUsageCmd","options","deepUsageResult","usageDeep","usage","keys","compIdStr","WhyCmd","args","DependenciesCmd","unrecognizedSubcommand","SetPeerCmd","componentId","range","setPeer","UnsetPeerCmd","unsetPeer"],"sources":["dependencies-cmd.ts"],"sourcesContent":["// eslint-disable-next-line max-classes-per-file\nimport { Command, CommandOptions } from '@teambit/cli';\nimport Table from 'cli-table';\nimport chalk from 'chalk';\nimport archy from 'archy';\nimport { ComponentIdGraph } from '@teambit/graph';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy/dist/constants';\nimport { generateDependenciesInfoTable } from './template';\nimport { DependenciesMain } from './dependencies.main.runtime';\n\ntype GetDependenciesFlags = {\n tree: boolean;\n scope?: boolean;\n};\n\nexport type SetDependenciesFlags = {\n dev?: boolean;\n optional?: boolean;\n peer?: boolean;\n};\n\nexport type RemoveDependenciesFlags = SetDependenciesFlags;\n\nexport class DependenciesGetCmd implements Command {\n name = 'get <component-name>';\n arguments = [{ name: 'component-name', description: 'component name or component id' }];\n group = 'info';\n description = 'show direct and indirect dependencies of the given component';\n alias = '';\n options = [\n ['', 'scope', 'get the data from the scope instead of the workspace'],\n ['t', 'tree', 'EXPERIMENTAL. render dependencies as a tree, similar to \"npm ls\"'],\n ] as CommandOptions;\n\n constructor(private deps: DependenciesMain) {}\n\n async report([id]: [string], { tree = false, scope = false }: GetDependenciesFlags) {\n const results = await this.deps.getDependencies(id, scope);\n\n if (tree) {\n const idWithVersion = results.id;\n const getGraphAsTree = (graph: ComponentIdGraph) => {\n try {\n const graphAsTree = graph.getDependenciesAsObjectTree(idWithVersion.toString());\n return archy(graphAsTree);\n } catch (err: any) {\n if (err.constructor.name === 'RangeError') {\n return `${chalk.red(\n 'unable to generate a tree representation, the graph is too big or has cyclic dependencies'\n )}`;\n }\n throw err;\n }\n };\n const graphTree = getGraphAsTree(results.graph);\n return graphTree;\n }\n const depsInfo = results.graph.getDependenciesInfo(results.id);\n if (!depsInfo.length) {\n return `no dependencies found for ${results.id.toString()}.\ntry running \"bit cat-component ${results.id.toStringWithoutVersion()}\" to see whether the component/version exists locally`;\n }\n\n const depsTable = generateDependenciesInfoTable(depsInfo, results.id);\n return `${depsTable || '<none>'}`;\n }\n}\n\nexport class DependenciesDebugCmd implements Command {\n name = 'debug <component-name>';\n arguments = [{ name: 'component-name', description: 'component name or component id' }];\n group = 'info';\n description = 'show the immediate dependencies and how their versions were determined';\n alias = '';\n options = [] as CommandOptions;\n\n constructor(private deps: DependenciesMain) {}\n\n async report([id]: [string]) {\n const results = await this.deps.debugDependencies(id);\n return JSON.stringify(results, undefined, 4);\n }\n}\n\nexport class DependenciesSetCmd implements Command {\n name = 'set <component-pattern> <package...>';\n arguments = [\n { name: 'component-pattern', description: COMPONENT_PATTERN_HELP },\n {\n name: 'package...',\n description:\n 'package name with or without a version, e.g. \"lodash@1.0.0\" or just \"lodash\" which will be resolved to the latest',\n },\n ];\n group = 'info';\n description = 'set a dependency to component(s)';\n alias = '';\n options = [\n ['d', 'dev', 'add to the devDependencies'],\n ['o', 'optional', 'add to the optionalDependencies'],\n ['p', 'peer', 'add to the peerDependencies'],\n ] as CommandOptions;\n\n constructor(private deps: DependenciesMain) {}\n\n async report([pattern, packages]: [string, string[]], setDepsFlags: SetDependenciesFlags) {\n const { changedComps, addedPackages } = await this.deps.setDependency(pattern, packages, setDepsFlags);\n\n return `${chalk.green('successfully updated dependencies')}\n${chalk.bold('changed components')}\n${changedComps.join('\\n')}\n\n${chalk.bold('added packages')}\n${JSON.stringify(addedPackages, undefined, 4)}`;\n }\n}\n\nexport class DependenciesRemoveCmd implements Command {\n name = 'remove <component-pattern> <package...>';\n arguments = [\n { name: 'component-pattern', description: COMPONENT_PATTERN_HELP },\n {\n name: 'package...',\n description:\n 'package name with or without a version, e.g. \"lodash@1.0.0\" or just \"lodash\" which will remove all lodash instances of any version',\n },\n ];\n group = 'info';\n description = 'remove a dependency to component(s)';\n alias = '';\n options = [\n ['d', 'dev', 'remove from devDependencies'],\n ['p', 'peer', 'remove from peerDependencies'],\n ] as CommandOptions;\n\n constructor(private deps: DependenciesMain) {}\n\n async report([pattern, packages]: [string, string[]], removeDepsFlags: RemoveDependenciesFlags) {\n const results = await this.deps.removeDependency(pattern, packages, removeDepsFlags);\n if (!results.length) {\n return chalk.yellow('the specified component-pattern do not use the entered packages. nothing to remove');\n }\n\n const output = results\n .map(({ id, removedPackages }) => `${chalk.underline(id.toString())}\\n${removedPackages.join('\\n')}`)\n .join('\\n\\n');\n\n return `${chalk.green('successfully removed dependencies')}\\n${output}`;\n }\n}\n\nexport class DependenciesUnsetCmd implements Command {\n name = 'unset <component-pattern> <package...>';\n arguments = [\n { name: 'component-pattern', description: COMPONENT_PATTERN_HELP },\n {\n name: 'package...',\n description:\n 'package name with or without a version, e.g. \"lodash@1.0.0\" or just \"lodash\" which will remove all lodash instances of any version',\n },\n ];\n group = 'info';\n description = 'unset a dependency to component(s) that was previously set by \"bit deps set\"';\n alias = '';\n options = [\n ['d', 'dev', 'unset from devDependencies'],\n ['p', 'peer', 'unset from peerDependencies'],\n ] as CommandOptions;\n\n constructor(private deps: DependenciesMain) {}\n\n async report([pattern, packages]: [string, string[]], removeDepsFlags: RemoveDependenciesFlags) {\n const results = await this.deps.removeDependency(pattern, packages, removeDepsFlags, true);\n if (!results.length) {\n return chalk.yellow('the specified component-pattern do not use the entered packages. nothing to unset');\n }\n\n const output = results\n .map(({ id, removedPackages }) => `${chalk.underline(id.toString())}\\n${removedPackages.join('\\n')}`)\n .join('\\n\\n');\n\n return `${chalk.green('successfully unset dependencies')}\\n${output}`;\n }\n}\n\nexport class DependenciesResetCmd implements Command {\n name = 'reset <component-pattern>';\n arguments = [{ name: 'component-pattern', description: COMPONENT_PATTERN_HELP }];\n group = 'info';\n description = 'reset dependencies to the default values (revert any previously \"bit deps set\")';\n alias = '';\n options = [] as CommandOptions;\n\n constructor(private deps: DependenciesMain) {}\n\n async report([pattern]: [string]) {\n const results = await this.deps.reset(pattern);\n const comps = results.map((id) => id.toString());\n\n return `${chalk.green('successfully reset dependencies for the following component(s)')}\\n${comps}`;\n }\n}\n\nexport class DependenciesEjectCmd implements Command {\n name = 'eject <component-pattern>';\n arguments = [{ name: 'component-pattern', description: COMPONENT_PATTERN_HELP }];\n group = 'info';\n description = 'write dependencies that were previously set via \"bit deps set\" into .bitmap';\n alias = '';\n options = [] as CommandOptions;\n\n constructor(private deps: DependenciesMain) {}\n\n async report([pattern]: [string]) {\n const results = await this.deps.eject(pattern);\n const comps = results.map((id) => id.toString());\n\n return `${chalk.green('successfully ejected dependencies for the following component(s)')}\\n${comps}`;\n }\n}\n\nexport class DependenciesBlameCmd implements Command {\n name = 'blame <component-name> <dependency-name>';\n arguments = [\n {\n name: 'dependency-name',\n description: 'package-name. for components, you can use either component-id or package-name',\n },\n ];\n group = 'info';\n description = 'EXPERIMENTAL. find out which snap/tag changed a dependency version';\n alias = '';\n options = [] as CommandOptions;\n\n constructor(private deps: DependenciesMain) {}\n\n async report([compName, depName]: [string, string]) {\n const results = await this.deps.blame(compName, depName);\n if (!results.length) {\n return chalk.yellow(`the specified component ${compName} does not use the entered dependency ${depName}`);\n }\n // table with no style and no borders, just to align the columns.\n const table = new Table({\n chars: {\n top: '',\n 'top-mid': '',\n 'top-left': '',\n 'top-right': '',\n bottom: '',\n 'bottom-mid': '',\n 'bottom-left': '',\n 'bottom-right': '',\n left: '',\n 'left-mid': '',\n mid: '',\n 'mid-mid': '',\n right: '',\n 'right-mid': '',\n middle: ' ',\n },\n style: { 'padding-left': 0, 'padding-right': 0 },\n });\n\n results.map(({ snap, tag, author, date, message, version }) =>\n table.push([snap, tag || '', author, date, message, version])\n );\n\n return table.toString();\n }\n}\n\ntype DependenciesUsageCmdOptions = {\n depth?: number;\n};\n\nexport class DependenciesUsageCmd implements Command {\n name = 'usage <dependency-name>';\n arguments = [\n {\n name: 'dependency-name',\n description:\n 'package-name. for components, you can use either component-id or package-name. if version is specified, it will search for the exact version',\n },\n ];\n group = 'info';\n description = 'EXPERIMENTAL. find components that use the specified dependency';\n alias = '';\n options = [['', 'depth <number>', 'max display depth of the dependency graph']] as CommandOptions;\n\n constructor(private deps: DependenciesMain) {}\n\n async report([depName]: [string], options: DependenciesUsageCmdOptions) {\n const deepUsageResult = await this.deps.usageDeep(depName, options);\n if (deepUsageResult != null) return deepUsageResult;\n const results = await this.deps.usage(depName);\n if (!Object.keys(results).length) {\n return chalk.yellow(`the specified dependency ${depName} is not used by any component`);\n }\n return Object.keys(results)\n .map((compIdStr) => `${chalk.bold(compIdStr)} (using dep in version ${results[compIdStr]})`)\n .join('\\n');\n }\n}\n\nexport class WhyCmd extends DependenciesUsageCmd {\n name = 'why <dependency-name>';\n}\n\nexport class DependenciesCmd implements Command {\n name = 'deps <sub-command>';\n alias = 'dependencies';\n description = 'manage dependencies';\n options = [];\n group = 'info';\n commands: Command[] = [];\n helpUrl = 'reference/dependencies/configuring-dependencies';\n\n async report([unrecognizedSubcommand]: [string]) {\n return chalk.red(\n `\"${unrecognizedSubcommand}\" is not a subcommand of \"dependencies\", please run \"bit dependencies --help\" to list the subcommands`\n );\n }\n}\n\nexport class SetPeerCmd implements Command {\n name = 'set-peer <component-id> <range>';\n arguments = [\n { name: 'component-id', description: 'the component to set as always peer' },\n {\n name: 'range',\n description: 'the default range to use for the componnent, when added to peerDependencies',\n },\n ];\n group = 'info';\n description = 'set a component as always peer';\n alias = '';\n options = [];\n\n constructor(private deps: DependenciesMain) {}\n\n async report([componentId, range]: [string, string]) {\n await this.deps.setPeer(componentId, range != null ? range.toString() : range);\n return `${chalk.green('successfully marked the component as a peer component')}`;\n }\n}\n\nexport class UnsetPeerCmd implements Command {\n name = 'unset-peer <component-id>';\n arguments = [{ name: 'component-id', description: 'the component to unset as always peer' }];\n group = 'info';\n description = 'unset a component as always peer';\n alias = '';\n options = [];\n\n constructor(private deps: DependenciesMain) {}\n\n async report([componentId]: [string]) {\n await this.deps.unsetPeer(componentId);\n return `${chalk.green('successfully marked the component as not a peer component')}`;\n }\n}\n"],"mappings":";;;;;;AAEA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;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,EAAE;IACnD,MAAM,IAAI,CAAC3F,IAAI,CAAC4F,OAAO,CAACF,WAAW,EAAEC,KAAK,IAAI,IAAI,GAAGA,KAAK,CAAC7E,QAAQ,CAAC,CAAC,GAAG6E,KAAK,CAAC;IAC9E,OAAO,GAAG1E,gBAAK,CAACuB,KAAK,CAAC,uDAAuD,CAAC,EAAE;EAClF;AACF;AAACd,OAAA,CAAA+D,UAAA,GAAAA,UAAA;AAEM,MAAMI,YAAY,CAAoB;EAQ3C9F,WAAWA,CAASC,IAAsB,EAAE;IAAA,KAAxBA,IAAsB,GAAtBA,IAAsB;IAAApB,eAAA,eAPnC,2BAA2B;IAAAA,eAAA,oBACtB,CAAC;MAAEqB,IAAI,EAAE,cAAc;MAAEC,WAAW,EAAE;IAAwC,CAAC,CAAC;IAAAtB,eAAA,gBACpF,MAAM;IAAAA,eAAA,sBACA,kCAAkC;IAAAA,eAAA,gBACxC,EAAE;IAAAA,eAAA,kBACA,EAAE;EAEiC;EAE7C,MAAMuB,MAAMA,CAAC,CAACuF,WAAW,CAAW,EAAE;IACpC,MAAM,IAAI,CAAC1F,IAAI,CAAC8F,SAAS,CAACJ,WAAW,CAAC;IACtC,OAAO,GAAGzE,gBAAK,CAACuB,KAAK,CAAC,2DAA2D,CAAC,EAAE;EACtF;AACF;AAACd,OAAA,CAAAmE,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_cliTable","data","_interopRequireDefault","require","_chalk","_archy","_constants","_template","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","DependenciesGetCmd","constructor","deps","name","description","report","id","tree","scope","results","getDependencies","idWithVersion","getGraphAsTree","graph","graphAsTree","getDependenciesAsObjectTree","toString","archy","err","chalk","red","graphTree","depsInfo","getDependenciesInfo","length","toStringWithoutVersion","depsTable","generateDependenciesInfoTable","exports","DependenciesDebugCmd","debugDependencies","JSON","stringify","undefined","DependenciesSetCmd","COMPONENT_PATTERN_HELP","pattern","packages","setDepsFlags","changedComps","addedPackages","setDependency","green","bold","join","DependenciesRemoveCmd","removeDepsFlags","removeDependency","yellow","output","map","removedPackages","underline","DependenciesUnsetCmd","DependenciesResetCmd","reset","comps","DependenciesEjectCmd","eject","DependenciesBlameCmd","compName","depName","blame","table","Table","chars","top","bottom","left","mid","right","middle","style","snap","tag","author","date","message","version","push","DependenciesUsageCmd","options","deepUsageResult","usageDeep","usage","keys","compIdStr","WhyCmd","args","DependenciesCmd","unrecognizedSubcommand","SetPeerCmd","componentId","range","setPeer","UnsetPeerCmd","unsetPeer"],"sources":["dependencies-cmd.ts"],"sourcesContent":["// eslint-disable-next-line max-classes-per-file\nimport { Command, CommandOptions } from '@teambit/cli';\nimport Table from 'cli-table';\nimport chalk from 'chalk';\nimport archy from 'archy';\nimport { ComponentIdGraph } from '@teambit/graph';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy/dist/constants';\nimport { generateDependenciesInfoTable } from './template';\nimport { DependenciesMain } from './dependencies.main.runtime';\n\ntype GetDependenciesFlags = {\n tree: boolean;\n scope?: boolean;\n};\n\nexport type SetDependenciesFlags = {\n dev?: boolean;\n optional?: boolean;\n peer?: boolean;\n};\n\nexport type RemoveDependenciesFlags = SetDependenciesFlags;\n\nexport class DependenciesGetCmd implements Command {\n name = 'get <component-name>';\n arguments = [{ name: 'component-name', description: 'component name or component id' }];\n group = 'info';\n description = 'show direct and indirect dependencies of the given component';\n alias = '';\n options = [\n ['', 'scope', 'get the data from the scope instead of the workspace'],\n ['t', 'tree', 'render dependencies as a tree, similar to \"npm ls\"'],\n ] as CommandOptions;\n\n constructor(private deps: DependenciesMain) {}\n\n async report([id]: [string], { tree = false, scope = false }: GetDependenciesFlags) {\n const results = await this.deps.getDependencies(id, scope);\n\n if (tree) {\n const idWithVersion = results.id;\n const getGraphAsTree = (graph: ComponentIdGraph) => {\n try {\n const graphAsTree = graph.getDependenciesAsObjectTree(idWithVersion.toString());\n return archy(graphAsTree);\n } catch (err: any) {\n if (err.constructor.name === 'RangeError') {\n return `${chalk.red(\n 'unable to generate a tree representation, the graph is too big or has cyclic dependencies'\n )}`;\n }\n throw err;\n }\n };\n const graphTree = getGraphAsTree(results.graph);\n return graphTree;\n }\n const depsInfo = results.graph.getDependenciesInfo(results.id);\n if (!depsInfo.length) {\n return `no dependencies found for ${results.id.toString()}.\ntry running \"bit cat-component ${results.id.toStringWithoutVersion()}\" to see whether the component/version exists locally`;\n }\n\n const depsTable = generateDependenciesInfoTable(depsInfo, results.id);\n return `${depsTable || '<none>'}`;\n }\n}\n\nexport class DependenciesDebugCmd implements Command {\n name = 'debug <component-name>';\n arguments = [{ name: 'component-name', description: 'component name or component id' }];\n group = 'info';\n description = 'show the immediate dependencies and how their versions were determined';\n alias = '';\n options = [] as CommandOptions;\n\n constructor(private deps: DependenciesMain) {}\n\n async report([id]: [string]) {\n const results = await this.deps.debugDependencies(id);\n return JSON.stringify(results, undefined, 4);\n }\n}\n\nexport class DependenciesSetCmd implements Command {\n name = 'set <component-pattern> <package...>';\n arguments = [\n { name: 'component-pattern', description: COMPONENT_PATTERN_HELP },\n {\n name: 'package...',\n description:\n 'package name with or without a version, e.g. \"lodash@1.0.0\" or just \"lodash\" which will be resolved to the latest',\n },\n ];\n group = 'info';\n description = 'set a dependency to component(s)';\n alias = '';\n options = [\n ['d', 'dev', 'add to the devDependencies'],\n ['o', 'optional', 'add to the optionalDependencies'],\n ['p', 'peer', 'add to the peerDependencies'],\n ] as CommandOptions;\n\n constructor(private deps: DependenciesMain) {}\n\n async report([pattern, packages]: [string, string[]], setDepsFlags: SetDependenciesFlags) {\n const { changedComps, addedPackages } = await this.deps.setDependency(pattern, packages, setDepsFlags);\n\n return `${chalk.green('successfully updated dependencies')}\n${chalk.bold('changed components')}\n${changedComps.join('\\n')}\n\n${chalk.bold('added packages')}\n${JSON.stringify(addedPackages, undefined, 4)}`;\n }\n}\n\nexport class DependenciesRemoveCmd implements Command {\n name = 'remove <component-pattern> <package...>';\n arguments = [\n { name: 'component-pattern', description: COMPONENT_PATTERN_HELP },\n {\n name: 'package...',\n description:\n 'package name with or without a version, e.g. \"lodash@1.0.0\" or just \"lodash\" which will remove all lodash instances of any version',\n },\n ];\n group = 'info';\n description = 'remove a dependency to component(s)';\n alias = '';\n options = [\n ['d', 'dev', 'remove from devDependencies'],\n ['p', 'peer', 'remove from peerDependencies'],\n ] as CommandOptions;\n\n constructor(private deps: DependenciesMain) {}\n\n async report([pattern, packages]: [string, string[]], removeDepsFlags: RemoveDependenciesFlags) {\n const results = await this.deps.removeDependency(pattern, packages, removeDepsFlags);\n if (!results.length) {\n return chalk.yellow('the specified component-pattern do not use the entered packages. nothing to remove');\n }\n\n const output = results\n .map(({ id, removedPackages }) => `${chalk.underline(id.toString())}\\n${removedPackages.join('\\n')}`)\n .join('\\n\\n');\n\n return `${chalk.green('successfully removed dependencies')}\\n${output}`;\n }\n}\n\nexport class DependenciesUnsetCmd implements Command {\n name = 'unset <component-pattern> <package...>';\n arguments = [\n { name: 'component-pattern', description: COMPONENT_PATTERN_HELP },\n {\n name: 'package...',\n description:\n 'package name with or without a version, e.g. \"lodash@1.0.0\" or just \"lodash\" which will remove all lodash instances of any version',\n },\n ];\n group = 'info';\n description = 'unset a dependency to component(s) that was previously set by \"bit deps set\"';\n alias = '';\n options = [\n ['d', 'dev', 'unset from devDependencies'],\n ['p', 'peer', 'unset from peerDependencies'],\n ] as CommandOptions;\n\n constructor(private deps: DependenciesMain) {}\n\n async report([pattern, packages]: [string, string[]], removeDepsFlags: RemoveDependenciesFlags) {\n const results = await this.deps.removeDependency(pattern, packages, removeDepsFlags, true);\n if (!results.length) {\n return chalk.yellow('the specified component-pattern do not use the entered packages. nothing to unset');\n }\n\n const output = results\n .map(({ id, removedPackages }) => `${chalk.underline(id.toString())}\\n${removedPackages.join('\\n')}`)\n .join('\\n\\n');\n\n return `${chalk.green('successfully unset dependencies')}\\n${output}`;\n }\n}\n\nexport class DependenciesResetCmd implements Command {\n name = 'reset <component-pattern>';\n arguments = [{ name: 'component-pattern', description: COMPONENT_PATTERN_HELP }];\n group = 'info';\n description = 'reset dependencies to the default values (revert any previously \"bit deps set\")';\n alias = '';\n options = [] as CommandOptions;\n\n constructor(private deps: DependenciesMain) {}\n\n async report([pattern]: [string]) {\n const results = await this.deps.reset(pattern);\n const comps = results.map((id) => id.toString());\n\n return `${chalk.green('successfully reset dependencies for the following component(s)')}\\n${comps}`;\n }\n}\n\nexport class DependenciesEjectCmd implements Command {\n name = 'eject <component-pattern>';\n arguments = [{ name: 'component-pattern', description: COMPONENT_PATTERN_HELP }];\n group = 'info';\n description = 'write dependencies that were previously set via \"bit deps set\" into .bitmap';\n alias = '';\n options = [] as CommandOptions;\n\n constructor(private deps: DependenciesMain) {}\n\n async report([pattern]: [string]) {\n const results = await this.deps.eject(pattern);\n const comps = results.map((id) => id.toString());\n\n return `${chalk.green('successfully ejected dependencies for the following component(s)')}\\n${comps}`;\n }\n}\n\nexport class DependenciesBlameCmd implements Command {\n name = 'blame <component-name> <dependency-name>';\n arguments = [\n {\n name: 'dependency-name',\n description: 'package-name. for components, you can use either component-id or package-name',\n },\n ];\n group = 'info';\n description = 'find out which snap/tag changed a dependency version';\n alias = '';\n options = [] as CommandOptions;\n\n constructor(private deps: DependenciesMain) {}\n\n async report([compName, depName]: [string, string]) {\n const results = await this.deps.blame(compName, depName);\n if (!results.length) {\n return chalk.yellow(`the specified component ${compName} does not use the entered dependency ${depName}`);\n }\n // table with no style and no borders, just to align the columns.\n const table = new Table({\n chars: {\n top: '',\n 'top-mid': '',\n 'top-left': '',\n 'top-right': '',\n bottom: '',\n 'bottom-mid': '',\n 'bottom-left': '',\n 'bottom-right': '',\n left: '',\n 'left-mid': '',\n mid: '',\n 'mid-mid': '',\n right: '',\n 'right-mid': '',\n middle: ' ',\n },\n style: { 'padding-left': 0, 'padding-right': 0 },\n });\n\n results.map(({ snap, tag, author, date, message, version }) =>\n table.push([snap, tag || '', author, date, message, version])\n );\n\n return table.toString();\n }\n}\n\ntype DependenciesUsageCmdOptions = {\n depth?: number;\n};\n\nexport class DependenciesUsageCmd implements Command {\n name = 'usage <dependency-name>';\n arguments = [\n {\n name: 'dependency-name',\n description:\n 'package-name. for components, you can use either component-id or package-name. if version is specified, it will search for the exact version',\n },\n ];\n group = 'info';\n description = 'find components that use the specified dependency';\n alias = '';\n options = [['', 'depth <number>', 'max display depth of the dependency graph']] as CommandOptions;\n\n constructor(private deps: DependenciesMain) {}\n\n async report([depName]: [string], options: DependenciesUsageCmdOptions) {\n const deepUsageResult = await this.deps.usageDeep(depName, options);\n if (deepUsageResult != null) return deepUsageResult;\n const results = await this.deps.usage(depName);\n if (!Object.keys(results).length) {\n return chalk.yellow(`the specified dependency ${depName} is not used by any component`);\n }\n return Object.keys(results)\n .map((compIdStr) => `${chalk.bold(compIdStr)} (using dep in version ${results[compIdStr]})`)\n .join('\\n');\n }\n}\n\nexport class WhyCmd extends DependenciesUsageCmd {\n name = 'why <dependency-name>';\n}\n\nexport class DependenciesCmd implements Command {\n name = 'deps <sub-command>';\n alias = 'dependencies';\n description = 'manage dependencies';\n options = [];\n group = 'info';\n commands: Command[] = [];\n helpUrl = 'reference/dependencies/configuring-dependencies';\n\n async report([unrecognizedSubcommand]: [string]) {\n return chalk.red(\n `\"${unrecognizedSubcommand}\" is not a subcommand of \"dependencies\", please run \"bit dependencies --help\" to list the subcommands`\n );\n }\n}\n\nexport class SetPeerCmd implements Command {\n name = 'set-peer <component-id> <range>';\n arguments = [\n { name: 'component-id', description: 'the component to set as always peer' },\n {\n name: 'range',\n description: 'the default range to use for the componnent, when added to peerDependencies',\n },\n ];\n group = 'info';\n description = 'set a component as always peer';\n alias = '';\n options = [];\n\n constructor(private deps: DependenciesMain) {}\n\n async report([componentId, range]: [string, string]) {\n await this.deps.setPeer(componentId, range != null ? range.toString() : range);\n return `${chalk.green('successfully marked the component as a peer component')}`;\n }\n}\n\nexport class UnsetPeerCmd implements Command {\n name = 'unset-peer <component-id>';\n arguments = [{ name: 'component-id', description: 'the component to unset as always peer' }];\n group = 'info';\n description = 'unset a component as always peer';\n alias = '';\n options = [];\n\n constructor(private deps: DependenciesMain) {}\n\n async report([componentId]: [string]) {\n await this.deps.unsetPeer(componentId);\n return `${chalk.green('successfully marked the component as not a peer component')}`;\n }\n}\n"],"mappings":";;;;;;AAEA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,OAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,OAAA;EAAA,MAAAJ,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAE,MAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAK,WAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,UAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,UAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,SAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA2D,SAAAC,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAA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A,YAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/dependencies",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.409",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/dependencies/dependencies",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.dependencies",
|
|
8
8
|
"name": "dependencies",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.409"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"archy": "1.0.0",
|
|
@@ -20,32 +20,32 @@
|
|
|
20
20
|
"fs-extra": "10.0.0",
|
|
21
21
|
"semver": "7.5.2",
|
|
22
22
|
"debug": "4.3.4",
|
|
23
|
-
"resolve-dependency-path": "2.0.0",
|
|
24
|
-
"stylus-lookup": "3.0.2",
|
|
25
23
|
"detective-amd": "3.0.1",
|
|
26
24
|
"detective-stylus": "1.0.0",
|
|
27
25
|
"module-definition": "3.3.1",
|
|
28
26
|
"node-source-walk": "4.2.0",
|
|
27
|
+
"resolve-dependency-path": "2.0.0",
|
|
28
|
+
"stylus-lookup": "3.0.2",
|
|
29
29
|
"@teambit/harmony": "0.4.6",
|
|
30
30
|
"@teambit/component-id": "1.2.0",
|
|
31
31
|
"@teambit/bit-error": "0.0.404",
|
|
32
32
|
"@teambit/component-version": "1.0.3",
|
|
33
|
-
"@teambit/styling.deps-lookups.lookup-styling": "0.0.2",
|
|
34
|
-
"@teambit/typescript.deps-lookups.lookup-typescript": "0.0.2",
|
|
35
33
|
"@teambit/node.deps-detectors.detective-es6": "0.0.5",
|
|
36
34
|
"@teambit/styling.deps-detectors.detective-css": "0.0.4",
|
|
37
35
|
"@teambit/styling.deps-detectors.detective-less": "0.0.4",
|
|
38
36
|
"@teambit/styling.deps-detectors.detective-sass": "0.0.7",
|
|
39
37
|
"@teambit/styling.deps-detectors.detective-scss": "0.0.7",
|
|
40
38
|
"@teambit/typescript.deps-detectors.detective-typescript": "0.0.6",
|
|
41
|
-
"@teambit/
|
|
42
|
-
"@teambit/
|
|
43
|
-
"@teambit/
|
|
39
|
+
"@teambit/styling.deps-lookups.lookup-styling": "0.0.2",
|
|
40
|
+
"@teambit/typescript.deps-lookups.lookup-typescript": "0.0.2",
|
|
41
|
+
"@teambit/cli": "0.0.986",
|
|
42
|
+
"@teambit/graph": "1.0.409",
|
|
43
|
+
"@teambit/aspect-loader": "1.0.409",
|
|
44
44
|
"@teambit/component-package-version": "0.0.434",
|
|
45
|
-
"@teambit/dependency-resolver": "1.0.
|
|
46
|
-
"@teambit/dev-files": "1.0.
|
|
47
|
-
"@teambit/scope": "1.0.
|
|
48
|
-
"@teambit/workspace": "1.0.
|
|
45
|
+
"@teambit/dependency-resolver": "1.0.409",
|
|
46
|
+
"@teambit/dev-files": "1.0.409",
|
|
47
|
+
"@teambit/scope": "1.0.409",
|
|
48
|
+
"@teambit/workspace": "1.0.409",
|
|
49
49
|
"@teambit/component.sources": "0.0.29",
|
|
50
50
|
"@teambit/legacy.utils": "0.0.5",
|
|
51
51
|
"@teambit/toolbox.path.path": "0.0.4",
|
|
File without changes
|