Skip to content

Commit

Permalink
fix: no src for common, server, updater
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark authored Feb 17, 2024
1 parent bef9fca commit 578a8bb
Show file tree
Hide file tree
Showing 18 changed files with 54 additions and 54 deletions.
1 change: 1 addition & 0 deletions packages/common/src/index.ts → packages/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export * from './utils/logger';
export * from './utils/platforms';
export * from './utils/agruments';
export * from './utils/sleep';
export * from './utils/config';
56 changes: 26 additions & 30 deletions packages/common/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
{
"ts-node": {
"files": true
},
"compilerOptions": {
"lib": ["ES2020"],
"module": "commonjs",
"moduleResolution": "Node",
"allowJs": true,
"esModuleInterop": true,
"outDir": "dist",
"rootDir": "src",
"sourceMap": false,
"declaration": false,
"strict": true,
"noImplicitAny": false,
"target": "ES2020",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"strictPropertyInitialization": false,
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
"typeRoots": [
"./src/@types"
]
},
"exclude": ["node_modules", "src/postBuild.ts"],
"include": ["src"]
}
"compilerOptions": {
"lib": [
"ES2020"
],
"module": "commonjs",
"moduleResolution": "Node",
"allowJs": true,
"esModuleInterop": true,
"outDir": "dist",
"rootDir": "./",
"sourceMap": false,
"declaration": false,
"strict": true,
"noImplicitAny": false,
"target": "ES2020",
"strictPropertyInitialization": false,
"baseUrl": ".",
},
"exclude": [
"node_modules",
"dist",
],
"include": [
"**/*"
],
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as dotenv from 'dotenv';
import fs from 'fs';
import path from 'path';

import { wLogger } from './utils/logger';
import { wLogger } from './logger';

const configPath = path.join(path.dirname(process.execPath), 'tsosu.env');
if (!fs.existsSync(configPath)) {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import winston, { format, transports } from 'winston';

import { config } from '../config';
import { config } from './config';

const { timestamp, label, printf } = format;

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions packages/find-process/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
"build": "tsc",
"test": "cargo test"
},
"keywords": [],
"author": "cyperdark",
"license": "MIT",
"devDependencies": {
"cargo-cp-artifact": "^0.1"
Expand Down
3 changes: 1 addition & 2 deletions packages/server/socket/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { sleep, wLogger } from '@tosu/common';
import { config } from '@tosu/common/dist/config';
import { config, sleep, wLogger } from '@tosu/common';
import WebSocket from 'ws';

export const WebSocketV1 = (instancesManager: any) => {
Expand Down
4 changes: 2 additions & 2 deletions packages/tosu/src/api/router/v1.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { config } from '@tosu/common/dist/config';
import type { WebSocket } from '@tosu/server';
import { config } from '@tosu/common';
import { HttpServer, getContentType, sendJson } from '@tosu/server';
import type { WebSocket } from '@tosu/server';
import fs from 'fs';
import path from 'path';

Expand Down
2 changes: 0 additions & 2 deletions packages/tosu/src/entities/AllTimesData/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { wLogger } from '@tosu/common';

import { DataRepo } from '@/entities/DataRepoList';

import { AbstractEntity } from '../AbstractEntity';
Expand Down
3 changes: 1 addition & 2 deletions packages/tosu/src/entities/BeatmapPpData/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Beatmap, Calculator } from '@kotrikd/rosu-pp';
import { wLogger } from '@tosu/common';
import { config } from '@tosu/common/dist/config';
import { config, wLogger } from '@tosu/common';
import { Beatmap as ParsedBeatmap } from 'osu-classes';
import { BeatmapDecoder } from 'osu-parsers';
import path from 'path';
Expand Down
3 changes: 1 addition & 2 deletions packages/tosu/src/entities/GamePlayData/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Beatmap, Calculator } from '@kotrikd/rosu-pp';
import { wLogger } from '@tosu/common';
import { config } from '@tosu/common/dist/config';
import { config, wLogger } from '@tosu/common';
import path from 'path';
import { Process } from 'tsprocess/dist/process';

Expand Down
9 changes: 7 additions & 2 deletions packages/tosu/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { argumetsParser, configureLogger, wLogger } from '@tosu/common';
import { config, updateConfig } from '@tosu/common/dist/config';
import {
argumetsParser,
config,
configureLogger,
updateConfig,
wLogger
} from '@tosu/common';
import { HttpServer, WebSocketV1 } from '@tosu/server';
import { autoUpdater } from '@tosu/updater';

Expand Down
4 changes: 1 addition & 3 deletions packages/tosu/src/objects/instanceManager/osuInstance.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { wLogger } from '@tosu/common';
import { sleep } from '@tosu/common';
import { config } from '@tosu/common/dist/config';
import { config, sleep, wLogger } from '@tosu/common';
import EventEmitter from 'events';
import fs from 'fs';
import { injectGameOverlay } from 'game-overlay';
Expand Down
File renamed without changes.
17 changes: 12 additions & 5 deletions packages/updater/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"compilerOptions": {
"lib": ["ES2020"],
"lib": [
"ES2020"
],
"module": "commonjs",
"moduleResolution": "Node",
"allowJs": true,
"esModuleInterop": true,
"outDir": "dist",
"rootDir": "src",
"rootDir": "./",
"sourceMap": false,
"declaration": false,
"strict": true,
Expand All @@ -15,6 +17,11 @@
"strictPropertyInitialization": false,
"baseUrl": ".",
},
"exclude": ["node_modules"],
"include": ["src"]
}
"exclude": [
"node_modules",
"dist",
],
"include": [
"**/*"
],
}

0 comments on commit 578a8bb

Please sign in to comment.