3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Allow JSON TS imports, fix errors from enabling esModuleInterop (required for JSON imports)

This commit is contained in:
Dragory 2018-07-12 02:58:34 +03:00
parent e6f296381e
commit 498ebe8939
8 changed files with 13 additions and 10 deletions

View file

@ -1,4 +1,4 @@
import * as knex from "../knex"; import knex from "../knex";
import Case from "../models/Case"; import Case from "../models/Case";
export class GuildCases { export class GuildCases {

View file

@ -1,5 +1,5 @@
import * as knex from "../knex"; import knex from "../knex";
import * as moment from "moment-timezone"; import moment from "moment-timezone";
import Mute from "../models/Mute"; import Mute from "../models/Mute";
export class GuildMutes { export class GuildMutes {

View file

@ -1,4 +1,4 @@
import * as EventEmitter from "events"; import EventEmitter from "events";
import { LogType } from "./LogType"; import { LogType } from "./LogType";
// Use the same instance for the same guild, even if a new instance is created // Use the same instance for the same guild, even if a new instance is created

View file

@ -1,5 +1,5 @@
const knexfile = require("../knexfile"); const knexfile = require("../knexfile");
import * as knex from "knex"; import knex from "knex";
const db = knex(knexfile); const db = knex(knexfile);

View file

@ -1,5 +1,5 @@
import { decorators as d, GlobalPlugin } from "knub"; import { decorators as d, GlobalPlugin } from "knub";
import * as child_process from "child_process"; import child_process from "child_process";
import { Message } from "eris"; import { Message } from "eris";
/** /**

View file

@ -3,7 +3,7 @@ import { GuildServerLogs } from "../data/GuildServerLogs";
import { LogType } from "../data/LogType"; import { LogType } from "../data/LogType";
import { TextChannel } from "eris"; import { TextChannel } from "eris";
import { formatTemplateString } from "../utils"; import { formatTemplateString } from "../utils";
import * as moment from "moment-timezone"; import moment from "moment-timezone";
interface ILogChannel { interface ILogChannel {
include?: LogType[]; include?: LogType[];

View file

@ -1,7 +1,7 @@
import { Plugin, decorators as d, waitForReaction } from "knub"; import { Plugin, decorators as d, waitForReaction } from "knub";
import { Guild, GuildAuditLogEntry, Member, Message, TextChannel, User } from "eris"; import { Guild, GuildAuditLogEntry, Member, Message, TextChannel, User } from "eris";
import * as moment from "moment-timezone"; import moment from "moment-timezone";
import * as humanizeDuration from "humanize-duration"; import humanizeDuration from "humanize-duration";
import { GuildCases } from "../data/GuildCases"; import { GuildCases } from "../data/GuildCases";
import { import {
convertDelayStringToMS, convertDelayStringToMS,

View file

@ -1,5 +1,6 @@
{ {
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node",
"module": "commonjs", "module": "commonjs",
"noImplicitAny": false, "noImplicitAny": false,
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
@ -10,6 +11,8 @@
"es7", "es7",
"ES2017" "ES2017"
], ],
"baseUrl": "./" "baseUrl": "./",
"resolveJsonModule": true,
"esModuleInterop": true
} }
} }