@ark/fs 0.23.0 → 0.26.0
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/out/fs.js +1 -1
- package/package.json +1 -1
package/out/fs.js
CHANGED
|
@@ -103,7 +103,7 @@ export const findPackageAncestors = (fromDir) => {
|
|
|
103
103
|
};
|
|
104
104
|
export const readPackageJsonAncestors = (fromDir) => findPackageAncestors(fromDir).map(dir => readPackageJson(dir));
|
|
105
105
|
export const fromPackageRoot = (...joinWith) => join(assertPackageRoot(dirOfCaller()), ...joinWith);
|
|
106
|
-
export const readPackageJson = (startDir) => readJson(join(assertPackageRoot(startDir), "package.json"));
|
|
106
|
+
export const readPackageJson = (startDir = dirOfCaller()) => readJson(join(assertPackageRoot(startDir), "package.json"));
|
|
107
107
|
export const getSourceControlPaths = () =>
|
|
108
108
|
// include tracked and untracked files as long as they are not ignored
|
|
109
109
|
getShellOutput("git ls-files --exclude-standard --cached --others")
|