UNPKG

just-scripts

Version:
26 lines 791 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.paths = void 0; const path = require("path"); const os = require("os"); let projectPath = ''; exports.paths = { /** * Location where the generated project will go. Defaults to `process.cwd()`. */ get projectPath() { return projectPath || process.cwd(); }, set projectPath(value) { projectPath = value; }, /** * Gets a directory path under `${os.tmpdir()}/just-stack` for temporarily storing files. * @param segments Names of extra directory segments to include. * @returns The directory path. */ tempPath(...segments) { return path.resolve(os.tmpdir(), 'just-stack', ...segments); }, }; //# sourceMappingURL=paths.js.map