Skip to content

Commit

Permalink
More build system fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgul committed Aug 20, 2023
1 parent 9f0042c commit ae44225
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 14 deletions.
6 changes: 2 additions & 4 deletions src/client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
"outDir": "../../dist",
"skipLibCheck": true,
"target": "ES2022",
"module": "ES2022",

// Overrides
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"moduleResolution": "bundler",
// "allowImportingTsExtensions": true,
"module": "CommonJS",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true
},
"include": [
"../common/**/*.ts",
Expand Down
2 changes: 0 additions & 2 deletions src/server/managers/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ function _buildConfig() : DBConfig
config.pool.afterCreate = newAfterCreate;
}

logger.debug('Database config:', config);

return config;
}

Expand Down
1 change: 0 additions & 1 deletion src/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ async function main() : Promise<{ app : Express, sio : any, server : any }>

if(program.args.includes('--dev'))
{
logger.warn('Should launch vite...');
actualPort += 1;

// Start Vite Dev Server
Expand Down
2 changes: 1 addition & 1 deletion src/server/systems/eote/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { validateEoteDetails, validateGenesysDetails } from './validations';

// Logger
import logging from '@strata-js/util-logging';
const logger = logging.getLogger(module.filename);
const logger = logging.getLogger('eote-system');

//----------------------------------------------------------------------------------------------------------------------
// System definition
Expand Down
2 changes: 1 addition & 1 deletion src/server/systems/fate/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import defaults from './defaults';

// Logger
import logging from '@strata-js/util-logging';
const logger = logging.getLogger(module.filename);
const logger = logging.getLogger('fate-system');

//----------------------------------------------------------------------------------------------------------------------
// System definition
Expand Down
2 changes: 1 addition & 1 deletion src/server/systems/risus/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import defaults from './defaults';

// Logger
import logging from '@strata-js/util-logging';
const logger = logging.getLogger(module.filename);
const logger = logging.getLogger('risus-system');

//----------------------------------------------------------------------------------------------------------------------
// System definition
Expand Down
2 changes: 1 addition & 1 deletion src/server/systems/wfrp/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import defaults from './defaults';

// Logger
import logging from '@strata-js/util-logging';
const logger = logging.getLogger(module.filename);
const logger = logging.getLogger('wfrp-system');

//----------------------------------------------------------------------------------------------------------------------
// System definition
Expand Down
2 changes: 1 addition & 1 deletion src/server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compilerOptions": {
"composite": true,
"target": "ES2022",
"rootDir": "..",
"outDir": "../../dist",
"target": "ES2022",
"skipLibCheck": true,

// Overrides
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"compilerOptions": {
"useDefineForClassFields": true,
"target": "ES2022",
"module": "ES2022",
"lib": [ "ES2022", "DOM", "DOM.Iterable" ],
"skipLibCheck": true,
"target": "ES2022",
"module": "ES2022",

/* Bundler mode */
"moduleResolution": "bundler",
Expand Down

0 comments on commit ae44225

Please sign in to comment.