build: fix the messy dependency graph

This commit is contained in:
iCrawl
2023-11-09 00:13:01 +01:00
parent e5f3f3130e
commit aad82f088b
105 changed files with 655 additions and 438 deletions

View File

@@ -1,4 +1,5 @@
/* eslint-disable @typescript-eslint/consistent-type-imports */
// @ts-nocheck
import { REST } from '@discordjs/rest';
import { MockAgent, type Interceptable } from 'undici';
import { beforeEach, test, vi, expect } from 'vitest';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import { setTimeout as sleep } from 'node:timers/promises';
import { expect, test, vi } from 'vitest';
import { SimpleIdentifyThrottler } from '../../src/index.js';

View File

@@ -95,7 +95,7 @@
"mock-socket": "^9.3.1",
"prettier": "^3.0.3",
"tsup": "^7.2.0",
"turbo": "^1.10.16",
"turbo": "^1.10.17-canary.0",
"typescript": "^5.2.2",
"undici": "5.27.2",
"vitest": "^0.34.6",

View File

@@ -4,5 +4,6 @@
"compilerOptions": {
"outDir": "dist-docs"
},
"include": ["src/**/*.ts"]
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
}

View File

@@ -4,5 +4,19 @@
"compilerOptions": {
"allowJs": true
},
"include": ["*.ts", "*.tsx", "*.js", "*.cjs", "*.mjs", "src", "__tests__"]
"include": [
"*.ts",
"*.js",
"*.cjs",
"*.mjs",
"src/**/*.ts",
"src/**/*.js",
"src/**/*.cjs",
"src/**/*.mjs",
"bin",
"scripts",
"__tests__",
"__mocks__"
],
"exclude": ["node_modules"]
}

View File

@@ -1,5 +1,6 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"include": ["src/**/*.ts"]
"include": ["src/**/*.ts", "src/**/*.js", "src/**/*.cjs", "src/**/*.mjs", "bin"],
"exclude": ["node_modules"]
}