mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 18:44:43 +12:00
129 lines
3.1 KiB
JSON
129 lines
3.1 KiB
JSON
{
|
|
"name": "discord.js",
|
|
"version": "12.5.0",
|
|
"description": "A powerful library for interacting with the Discord API",
|
|
"main": "./src/index.js",
|
|
"types": "./typings/index.d.ts",
|
|
"exports": {
|
|
".": [
|
|
{
|
|
"require": "./src/index.js",
|
|
"import": "./esm/discord.mjs"
|
|
},
|
|
"./src/index.js"
|
|
],
|
|
"./esm": "./esm/discord.mjs"
|
|
},
|
|
"scripts": {
|
|
"test": "npm run lint && npm run docs:test && npm run lint:typings",
|
|
"test:typescript": "tsc",
|
|
"docs": "docgen --source src --custom docs/index.yml --output docs/docs.json",
|
|
"docs:test": "docgen --source src --custom docs/index.yml",
|
|
"lint": "eslint src",
|
|
"lint:fix": "eslint src --fix",
|
|
"lint:typings": "tslint typings/index.d.ts",
|
|
"prettier": "prettier --write src/**/*.js typings/**/*.ts",
|
|
"prepublishOnly": "npm run test"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/discordjs/discord.js.git"
|
|
},
|
|
"keywords": [
|
|
"discord",
|
|
"api",
|
|
"bot",
|
|
"client",
|
|
"node",
|
|
"discordapp"
|
|
],
|
|
"author": "Amish Shah <amish@shah.gg>",
|
|
"license": "Apache-2.0",
|
|
"bugs": {
|
|
"url": "https://github.com/discordjs/discord.js/issues"
|
|
},
|
|
"homepage": "https://github.com/discordjs/discord.js#readme",
|
|
"runkitExampleFilename": "./docs/examples/ping.js",
|
|
"dependencies": {
|
|
"@discordjs/collection": "^0.1.6",
|
|
"@discordjs/form-data": "^3.0.1",
|
|
"abort-controller": "^3.0.0",
|
|
"node-fetch": "^2.6.1",
|
|
"prism-media": "^1.2.2",
|
|
"tweetnacl": "^1.0.3",
|
|
"ws": "^7.3.1"
|
|
},
|
|
"devDependencies": {
|
|
"@commitlint/cli": "^11.0.0",
|
|
"@commitlint/config-angular": "^11.0.0",
|
|
"@types/node": "^12.12.6",
|
|
"@types/ws": "^7.2.7",
|
|
"cross-env": "^7.0.2",
|
|
"discord-api-types": "^0.18.1",
|
|
"discord.js-docgen": "git+https://github.com/discordjs/docgen.git",
|
|
"dtslint": "^4.0.4",
|
|
"eslint": "^7.11.0",
|
|
"eslint-config-prettier": "^6.13.0",
|
|
"eslint-plugin-import": "^2.22.1",
|
|
"eslint-plugin-prettier": "^3.1.4",
|
|
"husky": "^4.3.0",
|
|
"jest": "^26.6.0",
|
|
"json-filter-loader": "^1.0.0",
|
|
"lint-staged": "^10.4.2",
|
|
"prettier": "^2.1.2",
|
|
"tslint": "^6.1.3",
|
|
"typescript": "^4.2.4"
|
|
},
|
|
"engines": {
|
|
"node": ">=14.0.0"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged",
|
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.js": "eslint --fix",
|
|
"*.ts": "prettier --write"
|
|
},
|
|
"commitlint": {
|
|
"extends": [
|
|
"@commitlint/config-angular"
|
|
],
|
|
"rules": {
|
|
"scope-case": [
|
|
2,
|
|
"always",
|
|
"pascal-case"
|
|
],
|
|
"type-enum": [
|
|
2,
|
|
"always",
|
|
[
|
|
"chore",
|
|
"build",
|
|
"ci",
|
|
"docs",
|
|
"feat",
|
|
"fix",
|
|
"perf",
|
|
"refactor",
|
|
"revert",
|
|
"style",
|
|
"test",
|
|
"types",
|
|
"workflow",
|
|
"wip"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"prettier": {
|
|
"singleQuote": true,
|
|
"printWidth": 120,
|
|
"trailingComma": "all",
|
|
"endOfLine": "lf",
|
|
"arrowParens": "avoid"
|
|
}
|
|
}
|