components-differ 1.2.3 → 1.2.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/dist/create-diff.js +2 -4
- package/package.json +1 -1
- package/src/create-diff.ts +3 -5
package/dist/create-diff.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { findComponentFiles, getAliasedPaths,
|
|
1
|
+
import { findComponentFiles, getAliasedPaths, } from "./components.js";
|
|
2
2
|
import { parseFilePath } from "./parse-file-path.js";
|
|
3
3
|
import { extractImportedPackages } from "./extract-imports.js";
|
|
4
4
|
function addFile(output, config, inSrcDir, relativeFilePath, content) {
|
|
5
|
-
|
|
6
|
-
output.files.push(parseFilePath(inSrcDir, config, `./${relativeFilePath}`, content));
|
|
7
|
-
}
|
|
5
|
+
output.files.push(parseFilePath(inSrcDir, config, `./${relativeFilePath}`, content));
|
|
8
6
|
}
|
|
9
7
|
function addDependencies(output, _initialPackageContents, currentPackageContents, usedPackages) {
|
|
10
8
|
const currentPackageJson = JSON.parse(currentPackageContents);
|
package/package.json
CHANGED
package/src/create-diff.ts
CHANGED
|
@@ -36,11 +36,9 @@ function addFile(
|
|
|
36
36
|
relativeFilePath: string,
|
|
37
37
|
content: string,
|
|
38
38
|
): void {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
);
|
|
43
|
-
}
|
|
39
|
+
output.files.push(
|
|
40
|
+
parseFilePath(inSrcDir, config, `./${relativeFilePath}`, content),
|
|
41
|
+
);
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
function addDependencies(
|