Skip to content

Commit

Permalink
+revspace7
Browse files Browse the repository at this point in the history
  • Loading branch information
f0x52 committed Oct 20, 2024
1 parent 1ef5b03 commit 4f19a7d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "thelounge",
"description": "The self-hosted Web IRC client",
"version": "4.4.3+revspace6",
"version": "4.4.3+revspace7",
"preferGlobal": true,
"bin": {
"thelounge": "index.js"
Expand Down
5 changes: 0 additions & 5 deletions server/command-line/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@ const program = new Command("start");
program
.description("Start the server")
.option("--dev", "Development mode with hot module reloading")
.option("--configPath <file>", "config file path")
.on("--help", Utils.extraHelp)
.action(function (options) {
if (options.configPath !== undefined) {
Config.configPath = options.configPath;
}

initalizeConfig();

const newLocal = "../server";
Expand Down
5 changes: 3 additions & 2 deletions server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ class Config {
path.join(__dirname, "..", "defaults", "config.js")
)) as ConfigType;
#homePath = "";
configPath: string | undefined;
networks: {[name: string]: TemplateNetwork} = this.parseNetworks();

getHomePath() {
return this.#homePath;
}

getConfigPath() {
return this.configPath ?? path.join(this.#homePath, "config.js");
return path.join(this.#homePath, "config.js");
// return "/etc/thelounge/config.js";
}

getUserLogsPath() {
Expand Down Expand Up @@ -212,6 +212,7 @@ class Config {
merge(newConfig: ConfigType) {
this._merge_config_objects(this.values, newConfig);
this.networks = this.parseNetworks();
console.log(this.networks);
}

_merge_config_objects(oldConfig: ConfigType, newConfig: ConfigType) {
Expand Down
2 changes: 1 addition & 1 deletion server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"../defaults/config.js",
"../package.json",
"../webpack.config.ts"
] /* If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. When a 'files' property is specified, only those files and those specified by 'include' are included. */,
], /* If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. When a 'files' property is specified, only those files and those specified by 'include' are included. */
"ts-node": {
"files": true
},
Expand Down
14 changes: 4 additions & 10 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{
"compilerOptions": {
/* Visit https://aka.ms/tsconfig.json to read more about this file */

/* Projects */
// "incremental": true, /* Enable incremental compilation */
"composite": true /* Enable constraints that allow a TypeScript project to be used with project references. */,
// "tsBuildInfoFile": "./", /* Specify the folder for .tsbuildinfo incremental compilation files. */
// "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. */

/* Language and Environment */
"target": "esnext" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
Expand All @@ -22,7 +20,6 @@
// "reactNamespace": "", /* Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit. */
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */

/* Modules */
"module": "commonjs" /* Specify what module code is generated. */,
"rootDir": "./" /* Specify the root folder within your source files. */,
Expand All @@ -35,12 +32,10 @@
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
"resolveJsonModule": true /* Enable importing .json files */,
// "noResolve": true, /* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project. */

/* JavaScript Support */
"allowJs": true /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */,
"checkJs": true /* Enable error reporting in type-checked JavaScript files. */,
"checkJs": false /* Enable error reporting in type-checked JavaScript files. */,
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */

/* Emit */
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
Expand All @@ -66,14 +61,12 @@
// "preserveConstEnums": true, /* Disable erasing `const enum` declarations in generated code. */
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */

/* Interop Constraints */
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
"allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn't have a default export. */,
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */,
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,

/* Type Checking */
"strict": true /* Enable all strict type-checking options. */,
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied `any` type.. */
Expand All @@ -94,10 +87,11 @@
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */

/* Completeness */
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"exclude": ["./dist"]
"exclude": [
"./dist"
]
}

0 comments on commit 4f19a7d

Please sign in to comment.