chore: config overhaul

This commit is contained in:
iCrawl 2023-08-22 01:33:47 +02:00
parent 5d7c59c301
commit 1e3aed0d97
No known key found for this signature in database
GPG key ID: 1AB888B16355FBB2
131 changed files with 353 additions and 114 deletions

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/commitlintrc.json",
"extends": ["@commitlint/config-angular"],
"rules": {
"type-enum": [

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"root": true,
"extends": ["neon/common", "neon/node", "neon/typescript", "neon/prettier"],
"parserOptions": {

View file

@ -6,7 +6,7 @@ jobs:
issue-triage:
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v3.1
- uses: github/issue-labeler@v3.2
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
configuration-path: .github/issue-labeler.yml

View file

@ -11,7 +11,7 @@ jobs:
- name: Audit production URLs with Lighthouse
id: lighthouse_audit
uses: treosh/lighthouse-ci-action@v9
uses: treosh/lighthouse-ci-action@v10
with:
urls: |
https://discordjs.dev

View file

@ -43,7 +43,7 @@ jobs:
- name: Audit preview URL with Lighthouse
if: ${{ steps.get_preview_url.outputs.vercel_preview_url != '' }}
id: lighthouse_audit
uses: treosh/lighthouse-ci-action@v9
uses: treosh/lighthouse-ci-action@v10
with:
urls: |
${{ steps.get_preview_url.outputs.vercel_preview_url }}

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/lintstagedrc.schema.json",
"*": "prettier --ignore-unknown --write",
"{src/**,__tests__/**}.{mjs,js,cjs,ts,tsx}": "eslint --ext .mjs,.js,.cjs,.ts,.tsx --fix",
"src/**.ts": "vitest related --run --config ../../vitest.config.ts"

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/prettierrc.json",
"printWidth": 120,
"useTabs": true,
"singleQuote": true,

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": ["../../.eslintrc.json", "neon/react", "neon/next", "neon/edge", "@unocss", "neon/prettier"],
"settings": {
"react": {

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@discordjs/guide",
"version": "0.1.0",
"description": "Imagine a guide... that explores the many possibilities for your discord.js bot",

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": ["../../.eslintrc.json", "neon/react", "neon/next", "neon/edge", "@unocss", "neon/prettier"],
"settings": {
"react": {

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@discordjs/website",
"version": "0.1.0",
"description": "Imagine a bot... the most popular way to build discord bots",

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@discordjs/discord.js",
"version": "0.0.0",
"description": "A powerful library for interacting with the Discord API",

View file

@ -1,3 +1,4 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": "../../.eslintrc.json"
}

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@discordjs/actions",
"version": "0.1.0",
"description": "A set of actions that we use for our workflows",
@ -11,8 +12,6 @@
"fmt": "yarn format"
},
"type": "module",
"main": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"directories": {
"lib": "src",
"test": "__tests__"

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"include": ["src/**/*.ts"]
}

View file

@ -1,3 +1,4 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": "../../.eslintrc.json"
}

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@discordjs/api-extractor-utils",
"version": "1.0.0",
"description": "Utilities for api-extractor",
@ -9,6 +10,18 @@
"format": "prettier --write . && cross-env TIMING=1 eslint src --ext .mjs,.js,.ts --fix --format=pretty",
"fmt": "yarn format"
},
"exports": {
".": {
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
}
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"skipDefaultLibCheck": true,

View file

@ -1,3 +1,4 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": "../../.eslintrc.json"
}

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@discordjs/brokers",
"version": "0.2.2",
"description": "Powerful set of message brokers",
@ -14,14 +15,21 @@
"changelog": "git cliff --prepend ./CHANGELOG.md -u -c ./cliff.toml -r ../../ --include-path 'packages/brokers/*'",
"release": "cliff-jumper"
},
"exports": {
".": {
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
}
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"typings": "./dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"types": "./dist/index.d.ts",
"directories": {
"lib": "src",
"test": "__tests__"

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.docs.json",
"include": ["src/**/*.ts"],
"compilerOptions": {

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"include": ["src/**/*.ts"]
}

View file

@ -1,3 +1,4 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": "../../.eslintrc.json"
}

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@discordjs/builders",
"version": "1.6.5",
"description": "A set of builders that you can use when creating your bot",
@ -14,14 +15,21 @@
"changelog": "git cliff --prepend ./CHANGELOG.md -u -c ./cliff.toml -r ../../ --include-path 'packages/builders/*'",
"release": "cliff-jumper"
},
"exports": {
".": {
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
}
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"directories": {
"lib": "src",
"test": "__tests__"

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.docs.json",
"include": ["src/**/*.ts"],
"compilerOptions": {

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"emitDecoratorMetadata": true,

View file

@ -1,3 +1,4 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": "../../.eslintrc.json"
}

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@discordjs/collection",
"version": "1.5.3",
"description": "Utility data structure used in discord.js",
@ -14,14 +15,21 @@
"changelog": "git cliff --prepend ./CHANGELOG.md -u -c ./cliff.toml -r ../../ --include-path 'packages/collection/*'",
"release": "cliff-jumper"
},
"exports": {
".": {
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
}
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"directories": {
"lib": "src",
"test": "__tests__"

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.docs.json",
"include": ["src/**/*.ts"],
"compilerOptions": {

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"include": ["src/**/*.ts"]
}

View file

@ -1,3 +1,4 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": "../../.eslintrc.json"
}

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@discordjs/core",
"version": "1.0.1",
"description": "A thinly abstracted wrapper around the rest API, and gateway.",
@ -13,21 +14,31 @@
"changelog": "git cliff --prepend ./CHANGELOG.md -u -c ./cliff.toml -r ../../ --include-path 'packages/core/*'",
"release": "cliff-jumper"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"typings": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
},
"./http-only": {
"types": "./dist/http-only.d.ts",
"import": "./dist/http-only.mjs",
"require": "./dist/http-only.js"
"require": {
"types": "./dist/http-only.d.ts",
"default": "./dist/http-only.js"
},
"import": {
"types": "./dist/http-only.d.mts",
"default": "./dist/http-only.mjs"
}
}
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"directories": {
"lib": "src",
"test": "__tests__"

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.docs.json",
"include": ["src/**/*.ts"],
"compilerOptions": {

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"include": ["src/**/*.ts"]
}

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": "../../.eslintrc.json",
"ignorePatterns": ["**/template/Deno/*"]
}

View file

@ -7,9 +7,9 @@ import { red, yellow, green } from 'picocolors';
import prompts from 'prompts';
import validateProjectName from 'validate-npm-package-name';
import packageJSON from '../package.json' assert { type: 'json' };
import { createDiscordBot } from './create-discord-bot.js';
import { resolvePackageManager } from './helpers/packageManager.js';
import { DEFAULT_PROJECT_NAME, PACKAGE_MANAGERS } from './util/constants.js';
import { createDiscordBot } from '../src/create-discord-bot.js';
import { resolvePackageManager } from '../src/helpers/packageManager.js';
import { DEFAULT_PROJECT_NAME, PACKAGE_MANAGERS } from '../src/util/constants.js';
let projectDirectory = '';

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "create-discord-bot",
"version": "0.2.1",
"description": "A simple way to create a startup Discord bot.",
@ -10,7 +11,8 @@
"changelog": "git cliff --prepend ./CHANGELOG.md -u -c ./cliff.toml -r ../../ --include-path 'packages/create-discord-bot/*'",
"release": "cliff-jumper"
},
"bin": "./dist/index.mjs",
"type": "module",
"bin": "./dist/index.js",
"directories": {
"lib": "src"
},

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "[REPLACE_ME]",
"version": "0.1.0",
"private": true,

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "[REPLACE_ME]",
"version": "0.1.0",
"private": true,

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "@sapphire/ts-config/extra-strict",
"compilerOptions": {
"declaration": false,

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/prettierrc.json",
"printWidth": 120,
"useTabs": true,
"singleQuote": true,

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"root": true,
"extends": ["neon/common", "neon/node", "neon/prettier"],
"rules": {

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/prettierrc.json",
"printWidth": 120,
"useTabs": true,
"singleQuote": true,

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "[REPLACE_ME]",
"version": "0.1.0",
"private": true,

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"root": true,
"extends": ["neon/common", "neon/node", "neon/typescript", "neon/prettier"],
"parserOptions": {

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/prettierrc.json",
"printWidth": 120,
"useTabs": true,
"singleQuote": true,

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "[REPLACE_ME]",
"version": "0.1.0",
"private": true,

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "@sapphire/ts-config/extra-strict",
"compilerOptions": {
"declaration": false,

View file

@ -1,7 +0,0 @@
{
"extends": "../../tsconfig.docs.json",
"include": ["src/**/*.ts"],
"compilerOptions": {
"outDir": "dist-docs"
}
}

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"include": ["src/**/*.ts"]
"include": ["src/**/*.ts", "bin/index.ts"]
}

View file

@ -1,7 +1,7 @@
import { createTsupConfig } from '../../tsup.config.js';
export default createTsupConfig({
entry: ['src/index.ts'],
entry: ['bin/index.ts'],
dts: false,
format: 'esm',
minify: 'terser',

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"root": true,
"extends": ["eslint:recommended"],
"plugins": ["import"],

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/lintstagedrc.schema.json",
"*": "prettier --ignore-unknown --write",
"{src/**,test/**,typings/**,scripts/**}.{mjs,js,ts}": "eslint --ext mjs,js,ts --fix"
}

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/prettierrc.json",
"singleQuote": true,
"printWidth": 120,
"trailingComma": "all",

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "discord.js",
"version": "14.13.0",
"description": "A powerful library for interacting with the Discord API",

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": "../.eslintrc.json",
"parserOptions": {
"sourceType": "module"

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
// Output Formatting

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tslint.json",
"extends": ["dtslint/dtslint.json"],
"rules": {
"prefer-readonly": false,

View file

@ -1,3 +1,4 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": "../../.eslintrc.json"
}

View file

@ -3,7 +3,7 @@
import process from 'node:process';
import { createCommand } from 'commander';
import packageFile from '../package.json';
import { build } from './index.js';
import { build } from '../src/index.js';
export interface CLIOptions {
custom: string;

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@discordjs/docgen",
"version": "0.12.1",
"description": "The docs.json generator for discord.js and its related projects",
@ -9,7 +10,22 @@
"fmt": "yarn format",
"prepack": "yarn format && yarn build"
},
"bin": "./dist/cli.js",
"bin": "./dist/bin/index.js",
"exports": {
".": {
"require": {
"types": "./dist/src/index.d.ts",
"default": "./dist/src/index.js"
},
"import": {
"types": "./dist/src/index.d.mts",
"default": "./dist/src/index.mjs"
}
}
},
"main": "./dist/src/index.js",
"module": "./dist/src/index.mjs",
"types": "./dist/src/index.d.ts",
"directories": {
"lib": "src"
},

View file

@ -2,7 +2,7 @@ import { readFileSync, writeFileSync } from 'node:fs';
import { dirname, join, extname, basename, relative } from 'node:path';
import jsdoc2md from 'jsdoc-to-markdown';
import { type DeclarationReflection, Application, TSConfigReader } from 'typedoc';
import type { CLIOptions } from './cli.js';
import type { CLIOptions } from '../bin/index.js';
import { Documentation } from './documentation.js';
import type { RootTypes, ChildTypes, CustomDocs } from './interfaces/index.js';

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"include": ["src/**/*.ts"]
"include": ["src/**/*.ts", "bin/index.ts"]
}

View file

@ -1,9 +1,7 @@
import { createTsupConfig } from '../../tsup.config.js';
export default createTsupConfig({
entry: ['src/index.ts', 'src/cli.ts'],
dts: false,
format: 'esm',
entry: ['src/index.ts', 'bin/index.ts'],
minify: 'terser',
keepNames: false,
sourcemap: false,

View file

@ -1,3 +1,4 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": "../../.eslintrc.json"
}

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@discordjs/formatters",
"version": "0.3.2",
"description": "A set of functions to format strings for Discord.",
@ -13,14 +14,21 @@
"changelog": "git cliff --prepend ./CHANGELOG.md -u -c ./cliff.toml -r ../../ --include-path 'packages/formatters/*'",
"release": "cliff-jumper"
},
"exports": {
".": {
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
}
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"typings": "./dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"types": "./dist/index.d.ts",
"directories": {
"lib": "src",
"test": "__tests__"

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.docs.json",
"include": ["src/**/*.ts"],
"compilerOptions": {

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"include": ["src/**/*.ts"]
}

View file

@ -1,3 +1,4 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": "../../.eslintrc.json"
}

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@discordjs/next",
"version": "0.1.0",
"description": "A powerful TypeScript library for interacting with the Discord API",
@ -13,21 +14,31 @@
"changelog": "git cliff --prepend ./CHANGELOG.md -u -c ./cliff.toml -r ../../ --include-path 'packages/next/*'",
"release": "cliff-jumper"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"typings": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
},
"./*": {
"types": "./dist/exports/*.d.ts",
"import": "./dist/exports/*.mjs",
"require": "./dist/exports/*.js"
"require": {
"types": "./dist/exports/*.d.ts",
"default": "./dist/exports/*.js"
},
"import": {
"types": "./dist/exports/*.d.mts",
"default": "./dist/exports/*.mjs"
}
}
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"directories": {
"lib": "src",
"test": "__tests__"

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.docs.json",
"include": ["src/**/*.ts"],
"compilerOptions": {

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"include": ["src/**/*.ts"]
}

View file

@ -1,3 +1,4 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": "../../.eslintrc.json"
}

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@discordjs/proxy-container",
"version": "1.0.0",
"description": "Lightweight HTTP proxy for Discord's API, brought to you as a container 📦",
@ -10,7 +11,6 @@
"prepack": "yarn lint && yarn build"
},
"type": "module",
"main": "./dist/index.js",
"directories": {
"lib": "src"
},

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"skipLibCheck": true

View file

@ -1,3 +1,4 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": "../../.eslintrc.json"
}

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@discordjs/proxy",
"version": "2.0.1",
"description": "Tools for running an HTTP proxy for Discord's API",
@ -14,14 +15,21 @@
"changelog": "git cliff --prepend ./CHANGELOG.md -u -c ./cliff.toml -r ../../ --include-path 'packages/proxy/*'",
"release": "cliff-jumper"
},
"exports": {
".": {
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
}
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"typings": "./dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"types": "./dist/index.d.ts",
"directories": {
"lib": "src",
"test": "__tests__"

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.docs.json",
"include": ["src/**/*.ts"],
"compilerOptions": {

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"include": ["src/**/*.ts"]
}

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": "../../.eslintrc.json",
"rules": {
"n/prefer-global/url": 0,

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@discordjs/rest",
"version": "2.0.1",
"description": "The REST API for discord.js",
@ -14,26 +15,41 @@
"changelog": "git cliff --prepend ./CHANGELOG.md -u -c ./cliff.toml -r ../../ --include-path 'packages/rest/*'",
"release": "cliff-jumper"
},
"types": "./dist/index.d.ts",
"exports": {
".": {
"node": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
},
"default": {
"types": "./dist/web.d.ts",
"import": "./dist/web.mjs",
"require": "./dist/web.js"
"require": {
"types": "./dist/web.d.ts",
"default": "./dist/web.js"
},
"import": {
"types": "./dist/web.d.mts",
"default": "./dist/web.mjs"
}
}
},
"./*": {
"types": "./dist/strategies/*.d.ts",
"import": "./dist/strategies/*.mjs",
"require": "./dist/strategies/*.js"
"require": {
"types": "./dist/strategies/*.d.ts",
"default": "./dist/strategies/*.js"
},
"import": {
"types": "./dist/strategies/*.d.mts",
"default": "./dist/strategies/*.mjs"
}
}
},
"types": "./dist/index.d.ts",
"directories": {
"lib": "src",
"test": "__tests__"

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.docs.json",
"include": ["src/**/*.ts"],
"compilerOptions": {

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true

View file

@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"include": ["src/**/*.ts"]
}

Some files were not shown because too many files have changed in this diff Show more