mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 22:36:01 +00:00
tscheck - in tsconfig.json
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"start": "nodemon src/index.js",
|
||||
"tscheck": "tsc --allowJs --noEmit src/index.js"
|
||||
"ts": "tsc"
|
||||
},
|
||||
"devDependencies": {
|
||||
"nodemon": "^2.0.2",
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
// @ts-check
|
||||
|
||||
const path = require('path');
|
||||
const { fork } = require('child_process');
|
||||
// @ts-ignore
|
||||
const _ = require('lodash');
|
||||
const nedb = require('nedb-promises');
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
const connections = require('./connections');
|
||||
const socket = require('../utility/socket');
|
||||
const { fork } = require('child_process');
|
||||
@@ -27,6 +28,7 @@ module.exports = {
|
||||
connection,
|
||||
};
|
||||
this.opened.push(newOpened);
|
||||
// @ts-ignore
|
||||
subprocess.on('message', ({ msgtype, ...message }) => {
|
||||
this[`handle_${msgtype}`](id, message);
|
||||
});
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// @ts-check
|
||||
|
||||
class DatabaseAnalyser {
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// @ts-check
|
||||
|
||||
const fs = require('fs-extra');
|
||||
const path = require('path');
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const mssql = require('mssql');
|
||||
const MsSqlAnalyser = require('./MsSqlAnalyser');
|
||||
|
||||
module.exports = {
|
||||
async connect({ server, port, user, password }) {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// @ts-check
|
||||
|
||||
const os = require('os');
|
||||
const path = require('path');
|
||||
const fs = require('fs-extra');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// @ts-check
|
||||
|
||||
let socket = null;
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
// @ts-check
|
||||
|
||||
// @ts-ignore
|
||||
const _ = require('lodash');
|
||||
const express = require('express');
|
||||
|
||||
|
||||
14
api/tsconfig.json
Normal file
14
api/tsconfig.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
"noEmit": true
|
||||
},
|
||||
"files": [
|
||||
"src/index.js",
|
||||
"src/engines/mssql/index.js",
|
||||
"src/engines/mysql/index.js",
|
||||
"src/engines/postgres/index.js"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user