mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
研究多个tsconfig
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
// 运行在 Electron 主进程 下的插件入口
|
||||
|
||||
// import {Group, PostDataSendMsg, User} from "./types";
|
||||
import {Group, PostDataSendMsg, User} from "./types";
|
||||
// type {Group, PostDataSendMsg, User} = import( "./types");
|
||||
type Group = import( "./types").Group;
|
||||
type PostDataSendMsg = import( "./types").PostDataSendMsg;
|
||||
type User = import( "./types").User;
|
||||
// type Group = import( "./types").Group;
|
||||
// type PostDataSendMsg = import( "./types").PostDataSendMsg;
|
||||
// type User = import( "./types").User;
|
||||
|
||||
const express = require("express")
|
||||
const {ipcMain, webContents} = require('electron');
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// Electron 主进程 与 渲染进程 交互的桥梁
|
||||
|
||||
// import {Group, PostDataSendMsg, User} from "./types";
|
||||
import {Group, PostDataSendMsg, User} from "./types";
|
||||
// type Group = import( "./types").Group;
|
||||
// type PostDataSendMsg = import( "./types").PostDataSendMsg;
|
||||
// type User = import( "./types").User;
|
||||
|
10
src/tsconfig.json
Normal file
10
src/tsconfig.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "es6",
|
||||
"target": "es6",
|
||||
"outDir": "dist2/"
|
||||
},
|
||||
"files": ["renderer.ts"],
|
||||
"exclude": ["main.ts", "preload.ts"]
|
||||
}
|
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"module": "es6",
|
||||
"module": "commonjs",
|
||||
"outDir": "./dist",
|
||||
"strict": false,
|
||||
"esModuleInterop": true,
|
||||
|
Reference in New Issue
Block a user