@salty-css/core 0.0.1-alpha.330 → 0.0.1-alpha.332
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.
|
@@ -5,10 +5,11 @@ const path = require("path");
|
|
|
5
5
|
const resolveDynamicConfigCache = async () => {
|
|
6
6
|
const currentDir = process.cwd();
|
|
7
7
|
const filename = "config-cache.json";
|
|
8
|
-
const patterns = ["", "saltygen", "src", "src/saltygen", "cache", "src/cache", "src/saltygen/cache"];
|
|
8
|
+
const patterns = ["", "saltygen", "src", "src/saltygen", "cache", "src/cache", "saltygen/cache", "src/saltygen/cache"];
|
|
9
9
|
let contents = "";
|
|
10
10
|
for (const pattern of patterns) {
|
|
11
11
|
const potentialPath = path.join(currentDir, pattern, filename);
|
|
12
|
+
console.log(`Checking for config cache at: ${potentialPath}`);
|
|
12
13
|
try {
|
|
13
14
|
contents = await promises.readFile(potentialPath, "utf8");
|
|
14
15
|
break;
|
|
@@ -3,10 +3,11 @@ import { join } from "path";
|
|
|
3
3
|
const resolveDynamicConfigCache = async () => {
|
|
4
4
|
const currentDir = process.cwd();
|
|
5
5
|
const filename = "config-cache.json";
|
|
6
|
-
const patterns = ["", "saltygen", "src", "src/saltygen", "cache", "src/cache", "src/saltygen/cache"];
|
|
6
|
+
const patterns = ["", "saltygen", "src", "src/saltygen", "cache", "src/cache", "saltygen/cache", "src/saltygen/cache"];
|
|
7
7
|
let contents = "";
|
|
8
8
|
for (const pattern of patterns) {
|
|
9
9
|
const potentialPath = join(currentDir, pattern, filename);
|
|
10
|
+
console.log(`Checking for config cache at: ${potentialPath}`);
|
|
10
11
|
try {
|
|
11
12
|
contents = await readFile(potentialPath, "utf8");
|
|
12
13
|
break;
|