From ee56ada8f64324707396a1b258a074314b5d2b42 Mon Sep 17 00:00:00 2001 From: Rory& Date: Tue, 20 Jan 2026 05:24:57 +0100 Subject: [PATCH] tsconfig: set srcDir, tsBuildInfoFile --- package.json | 2 +- tsconfig.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9f71997d6..ee24bd188 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "build": "npm run build:src && npm run generate:schema && npm run generate:openapi", "build:src": "tsc -b -v", "build:tsgo": "npm run build:src:tsgo && npm run generate:schema && npm run generate:openapi", - "build:src:tsgo": "rm -rf dist/* && tsgo -b -v && mv -v dist/src/* dist/ && rm -rfv dist/src", + "build:src:tsgo": "rm -rf dist/* tsconfig.tsbuildinfo && tsgo -b -v", "watch": "tsc -w -b .", "test": "node scripts/test.js", "lint": "eslint .", diff --git a/tsconfig.json b/tsconfig.json index 60708774d..fa433514e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ /* Projects */ "incremental": true /* Save .tsbuildinfo files to allow for incremental compilation of projects. */, // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ - // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ + "tsBuildInfoFile": "./dist/.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ @@ -40,6 +40,7 @@ "@spacebar/schemas*": ["./src/schemas"], "lambert-server*": ["./src/util/util/lambert-server"] } /* Specify a set of entries that re-map imports to additional lookup locations. */, + "rootDir": "./src", // Required as of TypeScript 7 // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */ "types": ["node"] /* Specify type package names to be included without being referenced in a source file. */,