@stacksjs/utils 0.59.4 → 0.59.5
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/index.js +8 -7
- package/package.json +1 -1
- package/src/hash.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -107,17 +107,17 @@ import os from "os";
|
|
|
107
107
|
import fs from "fs/promises";
|
|
108
108
|
import path2 from "path";
|
|
109
109
|
import {italic} from "@stacksjs/cli";
|
|
110
|
-
import {log
|
|
110
|
+
import {log} from "@stacksjs/logging";
|
|
111
111
|
async function findStacksProjects(dir, options) {
|
|
112
112
|
dir = dir || os.homedir();
|
|
113
113
|
if (!options?.quiet) {
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
log.info(`Searching for Stacks projects in: ${italic(dir)}`);
|
|
115
|
+
log.info(`This may take a few moments...`);
|
|
116
116
|
console.log("");
|
|
117
117
|
console.log(italic(" Please note, while Stacks is searching for projects on your machine,"));
|
|
118
118
|
console.log(italic(" you may be asked for permissions to scan certain directories."));
|
|
119
119
|
console.log("");
|
|
120
|
-
|
|
120
|
+
log.debug(`Excluding directories: ${excludePatterns.join(", ")}`);
|
|
121
121
|
}
|
|
122
122
|
const foundProjects = await searchDirectory(dir);
|
|
123
123
|
if (!foundProjects)
|
|
@@ -205,12 +205,13 @@ function isTruthy(v) {
|
|
|
205
205
|
import {hashPaths} from "@stacksjs/storage";
|
|
206
206
|
import {path as p2} from "@stacksjs/path";
|
|
207
207
|
import {config as config2} from "@stacksjs/config";
|
|
208
|
+
import {log as log2} from "@stacksjs/logging";
|
|
208
209
|
function originRequestFunctionHash() {
|
|
209
210
|
try {
|
|
210
211
|
return hashPaths(p2.cloudPath("src/edge"));
|
|
211
212
|
} catch (error) {
|
|
212
|
-
|
|
213
|
-
|
|
213
|
+
log2.error("Are we in a Docker container? Failed to hash paths. Error below:");
|
|
214
|
+
log2.error(error);
|
|
214
215
|
return;
|
|
215
216
|
}
|
|
216
217
|
}
|
|
@@ -899,7 +900,7 @@ function prettyBytes(number, options) {
|
|
|
899
900
|
return prefix + numberString + separator + unit;
|
|
900
901
|
}
|
|
901
902
|
// package.json
|
|
902
|
-
var version = "0.59.
|
|
903
|
+
var version = "0.59.5";
|
|
903
904
|
export {
|
|
904
905
|
wordChar,
|
|
905
906
|
wordBoundary,
|
package/package.json
CHANGED