mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-29 09:50:20 +00:00
tsconfig: set srcDir, tsBuildInfoFile
This commit is contained in:
@@ -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 .",
|
||||
|
||||
@@ -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. */,
|
||||
|
||||
Reference in New Issue
Block a user