mirror of
https://github.com/chenasraf/DefinitelyTyped-tools.git
synced 2026-05-18 01:49:03 +00:00
Fix cache dir path (#478)
This commit is contained in:
@@ -2,3 +2,4 @@ import { joinPaths } from "../fs";
|
||||
const root = joinPaths(__dirname, "..", "..");
|
||||
const storageDirPath = process.env.STORAGE_DIR || root;
|
||||
export const logDir = joinPaths(storageDirPath, "logs");
|
||||
export const cacheDirPath = joinPaths(storageDirPath, "cache");
|
||||
|
||||
@@ -4,11 +4,12 @@ import { resolve as resolveUrl } from "url";
|
||||
import { joinPaths } from "./fs";
|
||||
import { Logger } from "./logging";
|
||||
import { createTgz } from "./io";
|
||||
import { cacheDirPath } from "./lib/settings.js";
|
||||
|
||||
export const npmRegistryHostName = "registry.npmjs.org";
|
||||
export const npmRegistry = `https://${npmRegistryHostName}/`;
|
||||
|
||||
export const defaultCacheDir = joinPaths(__dirname, "..", "cache");
|
||||
export const defaultCacheDir = cacheDirPath;
|
||||
|
||||
type NeedToFixNpmRegistryClientTypings = any;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user