mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-21 10:50:09 +00:00
* Do some code changes & run prettier and eslint
* Fix test:test-type script
* Apply code review suggestions
* update heartbeat interval & add a reason for the specific value
* Fix husky error
* Update to TS 5.5
And use ${configDir}
* Fix test.json tsconfig base
---------
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
55 lines
2.2 KiB
JSON
55 lines
2.2 KiB
JSON
{
|
|
"name": "@discordeno/bot",
|
|
"version": "19.0.0-beta.1",
|
|
"main": "./dist/esm/index.js",
|
|
"exports": {
|
|
"import": "./dist/esm/index.js",
|
|
"require": "./dist/cjs/index.cjs",
|
|
"types": "./dist/types/index.d.ts"
|
|
},
|
|
"types": "./dist/types/index.d.ts",
|
|
"type": "module",
|
|
"license": "Apache-2.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/discordeno/discordeno.git"
|
|
},
|
|
"scripts": {
|
|
"build": "swc src --strip-leading-paths --delete-dir-on-start src --out-dir dist/esm && swc --strip-leading-paths --delete-dir-on-start src --out-dir dist/cjs -C module.type=commonjs && node ../../scripts/fixCjsExtension.js",
|
|
"build:type": "tsc --declaration --emitDeclarationOnly --declarationDir dist/types",
|
|
"release-build": "yarn build && yarn build:type",
|
|
"fmt": "eslint --fix \"src/**/*.ts*\"",
|
|
"lint": "eslint \"src/**/*.ts*\"",
|
|
"test:unit-coverage": "c8 mocha --no-warnings 'tests/unit/**/*.spec.ts'",
|
|
"test:unit": "c8 --r lcov mocha --no-warnings 'tests/unit/**/*.spec.ts' && node ../../scripts/coveragePathFixing.js discordeno",
|
|
"test:deno-unit": "swc tests --strip-leading-paths --delete-dir-on-start --out-dir denoTestsDist && node ../../scripts/fixDenoTestExtension.js && deno test -A --import-map ../../denoImportMap.json denoTestsDist/unit",
|
|
"test:e2e": "c8 --r lcov mocha --no-warnings --jobs 1 --t 30000 'tests/e2e/**/*.spec.ts' && node ../../scripts/coveragePathFixing.js rest",
|
|
"test:unit:watch": "mocha --no-warnings --watch --parallel 'tests/unit/**/*.spec.ts'",
|
|
"test:type": "tsc --noEmit",
|
|
"test:test-type": "tsc --project tests/tsconfig.json"
|
|
},
|
|
"dependencies": {
|
|
"@discordeno/gateway": "19.0.0-alpha.1",
|
|
"@discordeno/rest": "19.0.0-alpha.1",
|
|
"@discordeno/types": "19.0.0-beta.1",
|
|
"@discordeno/utils": "19.0.0-beta.1"
|
|
},
|
|
"devDependencies": {
|
|
"@swc/cli": "^0.3.9",
|
|
"@swc/core": "^1.4.2",
|
|
"@types/chai": "^4.3.11",
|
|
"@types/mocha": "^10.0.7",
|
|
"@types/node": "^20.11.25",
|
|
"@types/sinon": "^17.0.3",
|
|
"c8": "^9.1.0",
|
|
"chai": "^5.1.1",
|
|
"eslint": "^8.57.0",
|
|
"eslint-config-discordeno": "*",
|
|
"mocha": "^10.5.1",
|
|
"sinon": "^17.0.1",
|
|
"ts-node": "^10.9.2",
|
|
"tsconfig": "*",
|
|
"typescript": "^5.5.2"
|
|
}
|
|
}
|