mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-15 03:55:11 +02:00
progress?
This commit is contained in:
parent
26cfa8d159
commit
85507cee7d
|
@ -16,13 +16,12 @@
|
|||
"allowSyntheticDefaultImports": true,
|
||||
"esModuleInterop": true,
|
||||
"baseUrl": "./",
|
||||
"paths": {
|
||||
"@/js/*": ["./js/*"],
|
||||
"@/css/*": ["./css/*"],
|
||||
"@/img/*": ["./img/*"],
|
||||
"@/components/*": ["./components/*"],
|
||||
"@/backend/*": ["../src/types/*"]
|
||||
},
|
||||
// "paths": {
|
||||
// "@/js/*": ["./js/*"],
|
||||
// "@/css/*": ["./css/*"],
|
||||
// "@/img/*": ["./img/*"],
|
||||
// "@/components/*": ["./components/*"],
|
||||
// },
|
||||
"jsx": "preserve"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
},
|
||||
"homepage": "https://thelounge.chat/",
|
||||
"scripts": {
|
||||
"build": "tsc --resolveJsonModule --esModuleInterop --lib DOM webpack.config.ts && webpack --config webpack.config.js",
|
||||
"build": "webpack",
|
||||
"coverage": "run-s test:* && nyc --nycrc-path=test/.nycrc-report.json report",
|
||||
"dev": "TS_NODE_PROJECT='./src/tsconfig.json' ts-node index start --dev",
|
||||
"format:prettier": "prettier --write \"**/*.*\"",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
|
||||
import Msg from "@src/models/msg";
|
||||
import Msg from "../../models/msg";
|
||||
|
||||
const commands = ["ban", "unban", "banlist", "kickban"];
|
||||
|
||||
|
|
|
@ -21,10 +21,6 @@
|
|||
"outDir": "dist",
|
||||
// "resolveJsonModule": true,
|
||||
"esModuleInterop": true,
|
||||
"moduleResolution": "node",
|
||||
"paths": {
|
||||
"@src/*": ["./*"],
|
||||
"@client/*": ["../client/*"]
|
||||
}
|
||||
"moduleResolution": "node"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"paths": {
|
||||
"@src/*": ["src/*"],
|
||||
"@client/*": ["client/*"]
|
||||
},
|
||||
"target": "esnext",
|
||||
"module": "commonjs",
|
||||
"outDir": "dist",
|
||||
|
@ -21,7 +25,7 @@
|
|||
"exclude": ["./node_modules", "./public/*"],
|
||||
"references": [
|
||||
{
|
||||
"path": "./src"
|
||||
"path": "./src,"
|
||||
},
|
||||
{
|
||||
"path": "./client"
|
||||
|
|
5
tsconfig.json
Normal file
5
tsconfig.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"extends": "./tsconfig.base.json",
|
||||
"files": ["./webpack.config.ts"],
|
||||
"references": [{"path": "./src/"}, {"path": "./client/"}]
|
||||
}
|
|
@ -100,11 +100,11 @@ const config: webpack.Configuration = {
|
|||
extensions: [".js", ".vue", ".json", ".ts"],
|
||||
// modules: ["node_modules", path.resolve(__dirname, "client")],
|
||||
plugins: [
|
||||
new TsconfigPathsPlugin({
|
||||
configFile: path.resolve(__dirname, "client/tsconfig.json"),
|
||||
extensions: [".js", ".vue", ".json", ".ts"],
|
||||
baseUrl: path.resolve(__dirname, "client"),
|
||||
}),
|
||||
// new TsconfigPathsPlugin({
|
||||
// configFile: path.resolve(__dirname, "client/tsconfig.json"),
|
||||
// extensions: [".js", ".vue", ".json", ".ts"],
|
||||
// baseUrl: path.resolve(__dirname, "client"),
|
||||
// }),
|
||||
],
|
||||
},
|
||||
externals: {
|
||||
|
|
Loading…
Reference in a new issue