mirror of
https://github.com/coder/code-server.git
synced 2025-08-01 10:56:25 +08:00
refactor: move tmpdir into src/node/constants
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { logger } from "@coder/logger"
|
||||
import { JSONSchemaForNPMPackageJsonFiles } from "@schemastore/package"
|
||||
import * as os from "os"
|
||||
import * as path from "path"
|
||||
|
||||
export function getPackageJson(relativePath: string): JSONSchemaForNPMPackageJsonFiles {
|
||||
@ -18,3 +19,4 @@ const pkg = getPackageJson("../../package.json")
|
||||
export const version = pkg.version || "development"
|
||||
export const commit = pkg.commit || "development"
|
||||
export const rootPath = path.resolve(__dirname, "../..")
|
||||
export const tmpdir = path.join(os.tmpdir(), "code-server")
|
||||
|
Reference in New Issue
Block a user