feat: use native node typescript (#11259)

* feat: use native node typescript

* fix: use basename

* Update packages/create-discord-bot/template/Bun/TypeScript/tsconfig.json

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Change module and moduleResolution to ESNext and Bundler

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Almeida
2025-12-09 02:22:16 +00:00
committed by GitHub
parent c9bc33c758
commit ec3ef7b1bd
34 changed files with 404 additions and 99 deletions

View File

@@ -0,0 +1,21 @@
import common from 'eslint-config-neon/common';
import node from 'eslint-config-neon/node';
import prettier from 'eslint-config-neon/prettier';
const config = [
{
ignores: [],
},
...common,
...node,
...prettier,
{
rules: {
'jsdoc/check-tag-names': 0,
'jsdoc/no-undefined-types': 0,
'jsdoc/valid-types': 0,
},
},
];
export default config;

View File

@@ -1,14 +1,14 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "[REPLACE_ME]",
"name": "@discordjs/template-bun-javascript",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"lint": "prettier --check . && eslint --ext .[REPLACE_IMPORT_EXT] --format=pretty src",
"deploy": "bun run src/util/deploy.[REPLACE_IMPORT_EXT]",
"format": "prettier --write . && eslint --ext .[REPLACE_IMPORT_EXT] --fix --format=pretty src",
"start": "bun run src/index.[REPLACE_IMPORT_EXT]"
"lint": "prettier --check . && eslint --ext .js --format=pretty src",
"deploy": "bun run src/util/deploy.js",
"format": "prettier --write . && eslint --ext .js --fix --format=pretty src",
"start": "bun run src/index.js"
},
"dependencies": {
"@discordjs/core": "^2.4.0",

View File

@@ -0,0 +1 @@
console.log();