create-discord-app 4.2.0-pr-11006.1765452229-e636950b2 → 4.2.0-pr-11005.1765454364-f3f6d34e7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +7 -7
- package/template/Bun/JavaScript/package.json +10 -10
- package/template/Bun/TypeScript/package.json +12 -12
- package/template/Bun/TypeScript/tsconfig.json +3 -3
- package/template/Deno/.vscode/settings.json +1 -1
- package/template/Deno/src/util/loaders.ts +2 -2
- package/template/JavaScript/.vscode/extensions.json +1 -0
- package/template/JavaScript/.vscode/settings.json +1 -1
- package/template/JavaScript/eslint.config.js +0 -8
- package/template/JavaScript/package.json +6 -6
- package/template/JavaScript/src/events/interactionCreate.js +1 -0
- package/template/JavaScript/src/index.js +1 -0
- package/template/JavaScript/src/util/deploy.js +1 -0
- package/template/JavaScript/src/util/loaders.js +3 -3
- package/template/TypeScript/.prettierignore +1 -1
- package/template/TypeScript/.vscode/extensions.json +1 -0
- package/template/TypeScript/.vscode/settings.json +1 -1
- package/template/TypeScript/eslint.config.js +1 -9
- package/template/TypeScript/package.json +10 -10
- package/template/TypeScript/src/commands/index.ts +1 -1
- package/template/TypeScript/src/commands/ping.ts +1 -1
- package/template/TypeScript/src/commands/utility/user.ts +1 -1
- package/template/TypeScript/src/events/index.ts +1 -1
- package/template/TypeScript/src/events/interactionCreate.ts +3 -2
- package/template/TypeScript/src/events/ready.ts +1 -1
- package/template/TypeScript/src/index.ts +2 -1
- package/template/TypeScript/src/util/deploy.ts +2 -1
- package/template/TypeScript/src/util/loaders.ts +9 -7
- package/template/TypeScript/tsconfig.json +3 -6
- package/template/Bun/JavaScript/eslint.config.js +0 -21
- package/template/Bun/JavaScript/node_modules/.bin/eslint +0 -21
- package/template/Bun/JavaScript/node_modules/.bin/prettier +0 -21
- package/template/Bun/JavaScript/src/index.js +0 -1
- package/template/Bun/TypeScript/eslint.config.js +0 -26
- package/template/Bun/TypeScript/node_modules/.bin/eslint +0 -21
- package/template/Bun/TypeScript/node_modules/.bin/prettier +0 -21
- package/template/Bun/TypeScript/node_modules/.bin/tsc +0 -21
- package/template/Bun/TypeScript/node_modules/.bin/tsserver +0 -21
- package/template/Bun/TypeScript/src/index.ts +0 -1
- package/template/JavaScript/.prettierignore +0 -1
- package/template/JavaScript/node_modules/.bin/eslint +0 -21
- package/template/JavaScript/node_modules/.bin/prettier +0 -21
- package/template/TypeScript/.turbo/turbo-build.log +0 -4
- package/template/TypeScript/node_modules/.bin/eslint +0 -21
- package/template/TypeScript/node_modules/.bin/prettier +0 -21
- package/template/TypeScript/node_modules/.bin/tsc +0 -21
- package/template/TypeScript/node_modules/.bin/tsserver +0 -21
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var __defProp=Object.defineProperty,__name=(target,value)=>__defProp(target,"name",{value:value,configurable:!0});import process3 from"process";import{styleText as styleText3}from"util";import{Option,program}from"commander";import prompts from"prompts";import validateProjectName from"validate-npm-package-name";var package_default_name="create-discord-app",package_default_version="4.2.0-pr-
|
|
2
|
+
var __defProp=Object.defineProperty,__name=(target,value)=>__defProp(target,"name",{value:value,configurable:!0});import process3 from"process";import{styleText as styleText3}from"util";import{Option,program}from"commander";import prompts from"prompts";import validateProjectName from"validate-npm-package-name";var package_default_name="create-discord-app",package_default_version="4.2.0-pr-11005.1765454364-f3f6d34e7";import{cp,glob,mkdir,stat,readdir,readFile,writeFile}from"fs/promises";import path from"path";import process2 from"process";import{URL}from"url";import{styleText as styleText2}from"util";import{execSync}from"child_process";import process from"process";import{styleText}from"util";var NODE_PACKAGE_MANAGERS=["npm","pnpm","yarn"];function resolvePackageManager(){const npmConfigUserAgent=process.env.npm_config_user_agent;return"undefined"!=typeof Deno?"deno":npmConfigUserAgent?npmConfigUserAgent.startsWith("npm")?"npm":npmConfigUserAgent.startsWith("yarn")?"yarn":npmConfigUserAgent.startsWith("pnpm")?"pnpm":npmConfigUserAgent.startsWith("bun")?"bun":(console.error(styleText("yellow",`Detected an unsupported package manager (${npmConfigUserAgent}). Falling back to npm.`)),"npm"):"npm"}function install(packageManager2){let installCommand=`${packageManager2} install`;switch(console.log(`Installing dependencies with ${packageManager2}...`),packageManager2){case"yarn":console.log(),installCommand=[`${packageManager2} set version stable`,`${packageManager2} config set nodeLinker node-modules`,`${packageManager2} config set logFilters --json '[{ "code": "YN0002", "level": "discard" }, { "code": "YN0013", "level": "discard" }, { "code": "YN0032", "level": "discard" }, { "code": "YN0060", "level": "discard" }]'`,`${packageManager2} plugin import interactive-tools`,`${packageManager2} plugin import workspace-tools`,installCommand];break;case"deno":installCommand=`${packageManager2} cache --reload src/index.ts`;break;case"pnpm":case"bun":console.log()}const env={...process.env,ADBLOCK:"1",NODE_ENV:"development",DISABLE_OPENCOLLECTIVE:"1"};if(Array.isArray(installCommand))for(const[index,command]of installCommand.entries()){if(index===installCommand.length-1){execSync(command,{stdio:"inherit",env:env});break}execSync(command,{stdio:"ignore",env:env})}else execSync(installCommand,{stdio:"inherit",env:env})}function isNodePackageManager(packageManager2){return NODE_PACKAGE_MANAGERS.includes(packageManager2)}async function createDiscordBot({directory:directory,installPackages:installPackages2,typescript:typescript2,packageManager:packageManager2}){const root=path.resolve(directory),directoryName=path.basename(root);console.log();(!(await stat(root).catch(async error=>{if("ENOENT"===error.code)return await mkdir(root,{recursive:!0}),stat(root);throw error})).isDirectory()||(await readdir(root)).length>0)&&(console.error(styleText2("red",`The directory ${styleText2("yellow",`"${directoryName}"`)} is either not a directory or is not empty.`)),console.error(styleText2("red","Please specify an empty directory.")),process2.exit(1)),console.log(`Creating ${directoryName} in ${styleText2("green",root)}.`);const deno2="deno"===packageManager2;await cp(new URL("../template/"+(deno2?"Deno":typescript2?"TypeScript":"JavaScript"),import.meta.url),root,{recursive:!0});const bun="bun"===packageManager2;bun&&(await cp(new URL(`../template/Bun/${typescript2?"TypeScript":"JavaScript"}/package.json`,import.meta.url),`${root}/package.json`),typescript2&&(await cp(new URL("../template/Bun/TypeScript/tsconfig.eslint.json",import.meta.url),`${root}/tsconfig.eslint.json`),await cp(new URL("../template/Bun/TypeScript/tsconfig.json",import.meta.url),`${root}/tsconfig.json`))),process2.chdir(root);const newVSCodeSettings=await readFile("./.vscode/settings.json",{encoding:"utf8"}).then(str=>{let newStr=str.replace("[REPLACE_ME]",deno2||bun?"auto":packageManager2);return deno2&&(newStr=newStr.replaceAll('"[REPLACE_BOOL]"',!0)),newStr});await writeFile("./.vscode/settings.json",newVSCodeSettings);const globIterator=glob("./src/**/*.ts");for await(const file of globIterator){const newData=await readFile(file,{encoding:"utf8"}).then(str=>str.replaceAll("[REPLACE_IMPORT_EXT]",typescript2&&!isNodePackageManager(packageManager2)?"ts":"js"));await writeFile(file,newData)}if(!deno2){const newPackageJSON=await readFile("./package.json",{encoding:"utf8"}).then(str=>{let newStr=str.replace("[REPLACE_ME]",directoryName);return newStr=newStr.replaceAll("[REPLACE_IMPORT_EXT]",typescript2&&!isNodePackageManager(packageManager2)?"ts":"js"),newStr});await writeFile("./package.json",newPackageJSON)}if(installPackages2)try{install(packageManager2)}catch(error){console.log();"SIGINT"===error.signal?console.log(styleText2("red","Installation aborted.")):(console.error(styleText2("red","Installation failed.")),process2.exit(1))}console.log(),console.log(styleText2("green","All done! Be sure to read through the discord.js guide for help on your journey.")),console.log(`Link: ${styleText2("cyan","https://discordjs.guide")}`)}__name(resolvePackageManager,"resolvePackageManager"),__name(install,"install"),__name(isNodePackageManager,"isNodePackageManager"),__name(createDiscordBot,"createDiscordBot");var projectDirectory="",handleSigTerm=__name(()=>process3.exit(0),"handleSigTerm");process3.on("SIGINT",handleSigTerm),process3.on("SIGTERM",handleSigTerm);var onPromptState=__name(state=>{state.aborted&&(process3.stdout.write("[?25h"),process3.stdout.write("\n"),process3.exit(1))},"onPromptState");program.name(package_default_name).version(package_default_version).description("Create a basic discord.js bot.").argument("[directory]","What is the name of the directory you want to create this project in?").usage(`${styleText3("green","<directory>")}`).action(directory=>{projectDirectory=directory}).option("--typescript","Whether to use the TypeScript template.").option("--javascript","Whether to use the JavaScript template.").option("--no-install","Whether to not automatically install the packages.").addOption(new Option("--package-manager <packageManager>","The package manager to use.").choices(["npm","pnpm","yarn","bun","deno"]).default(resolvePackageManager())).allowUnknownOption().parse();var{typescript:typescript,javascript:javascript,packageManager:packageManager,install:installPackages}=program.opts();if(projectDirectory||(projectDirectory=(await prompts({onState:onPromptState,type:"text",name:"directory",initial:"my-bot",message:"What is the name of the directory you want to create this project in?",validate:__name(directory=>{const validationResult=validateProjectName(directory);if(!validationResult.validForNewPackages){const errors=[];for(const error of[...validationResult.errors??[],...validationResult.warnings??[]])errors.push(styleText3("red",`- ${error}`));return styleText3("red",`Cannot create a project named ${styleText3("yellow",`"${directory}"`)} due to npm naming restrictions.\n\nErrors:\n${errors.join("\n")}\n\n${styleText3("red","\nSee https://docs.npmjs.com/cli/configuring-npm/package-json for more details.")}}`)}return!0},"validate")})).directory),!("deno"===packageManager)&&void 0===typescript&&void 0===javascript){const{useTypescript:useTypescript}=await prompts({onState:onPromptState,type:"toggle",name:"useTypescript",message:"Do you want to use TypeScript?",initial:!0,active:"Yes",inactive:"No"});typescript=useTypescript}await createDiscordBot({typescript:typescript,directory:projectDirectory,packageManager:packageManager,installPackages:installPackages});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "create-discord-app",
|
|
4
|
-
"version": "4.2.0-pr-
|
|
4
|
+
"version": "4.2.0-pr-11005.1765454364-f3f6d34e7",
|
|
5
5
|
"description": "A simple way to create a startup Discord bot.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": "./dist/index.js",
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
"validate-npm-package-name": "^7.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@favware/cliff-jumper": "^
|
|
50
|
-
"@types/node": "^22.
|
|
49
|
+
"@favware/cliff-jumper": "^4.1.0",
|
|
50
|
+
"@types/node": "^22.18.13",
|
|
51
51
|
"@types/prompts": "^2.4.9",
|
|
52
52
|
"@types/validate-npm-package-name": "^4.0.2",
|
|
53
53
|
"cross-env": "^10.1.0",
|
|
54
|
-
"eslint": "^9.
|
|
54
|
+
"eslint": "^9.38.0",
|
|
55
55
|
"eslint-config-neon": "^0.2.9",
|
|
56
56
|
"eslint-formatter-compact": "^9.0.1",
|
|
57
57
|
"eslint-formatter-pretty": "^7.0.0",
|
|
58
|
-
"prettier": "^3.
|
|
59
|
-
"terser": "^5.44.
|
|
60
|
-
"tsup": "^8.5.
|
|
58
|
+
"prettier": "^3.6.2",
|
|
59
|
+
"terser": "^5.44.0",
|
|
60
|
+
"tsup": "^8.5.0",
|
|
61
61
|
"typescript": "~5.9.3",
|
|
62
62
|
"@discordjs/api-extractor": "7.52.7"
|
|
63
63
|
},
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
-
"name": "
|
|
3
|
+
"name": "[REPLACE_ME]",
|
|
4
4
|
"version": "0.1.0",
|
|
5
5
|
"private": true,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"lint": "prettier --check . && eslint --ext .
|
|
9
|
-
"deploy": "bun run src/util/deploy.
|
|
10
|
-
"format": "prettier --write . && eslint --ext .
|
|
11
|
-
"start": "bun run src/index.
|
|
8
|
+
"lint": "prettier --check . && eslint --ext .[REPLACE_IMPORT_EXT] --format=pretty src",
|
|
9
|
+
"deploy": "bun run src/util/deploy.[REPLACE_IMPORT_EXT]",
|
|
10
|
+
"format": "prettier --write . && eslint --ext .[REPLACE_IMPORT_EXT] --fix --format=pretty src",
|
|
11
|
+
"start": "bun run src/index.[REPLACE_IMPORT_EXT]"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@discordjs/core": "^2.
|
|
15
|
-
"discord.js": "^14.
|
|
14
|
+
"@discordjs/core": "^2.3.0",
|
|
15
|
+
"discord.js": "^14.24.2"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"eslint": "^9.38.
|
|
18
|
+
"eslint": "^9.38.0",
|
|
19
19
|
"eslint-config-neon": "^0.2.9",
|
|
20
20
|
"eslint-formatter-pretty": "^7.0.0",
|
|
21
|
-
"prettier": "^3.
|
|
22
|
-
"zod": "^4.1.
|
|
21
|
+
"prettier": "^3.6.2",
|
|
22
|
+
"zod": "^4.1.12"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
-
"name": "
|
|
3
|
+
"name": "[REPLACE_ME]",
|
|
4
4
|
"version": "0.1.0",
|
|
5
5
|
"private": true,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"lint": "tsc && prettier --check . && eslint --ext .
|
|
9
|
-
"deploy": "bun run src/util/deploy.
|
|
10
|
-
"format": "prettier --write . && eslint --ext .
|
|
11
|
-
"start": "bun run src/index.
|
|
8
|
+
"lint": "tsc && prettier --check . && eslint --ext .[REPLACE_IMPORT_EXT] --format=pretty src",
|
|
9
|
+
"deploy": "bun run src/util/deploy.[REPLACE_IMPORT_EXT]",
|
|
10
|
+
"format": "prettier --write . && eslint --ext .[REPLACE_IMPORT_EXT] --fix --format=pretty src",
|
|
11
|
+
"start": "bun run src/index.[REPLACE_IMPORT_EXT]"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@discordjs/core": "^2.
|
|
15
|
-
"discord.js": "^14.
|
|
14
|
+
"@discordjs/core": "^2.3.0",
|
|
15
|
+
"discord.js": "^14.24.2"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@sapphire/ts-config": "^5.0.
|
|
19
|
-
"@types/bun": "^1.3.
|
|
20
|
-
"eslint": "^9.
|
|
18
|
+
"@sapphire/ts-config": "^5.0.1",
|
|
19
|
+
"@types/bun": "^1.3.1",
|
|
20
|
+
"eslint": "^9.38.0",
|
|
21
21
|
"eslint-config-neon": "^0.2.9",
|
|
22
22
|
"eslint-formatter-pretty": "^7.0.0",
|
|
23
|
-
"prettier": "^3.
|
|
23
|
+
"prettier": "^3.6.2",
|
|
24
24
|
"typescript": "~5.9.3",
|
|
25
|
-
"zod": "^4.1.
|
|
25
|
+
"zod": "^4.1.12"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"$schema": "https://json.schemastore.org/tsconfig.json",
|
|
3
3
|
"extends": ["@sapphire/ts-config", "@sapphire/ts-config/extra-strict"],
|
|
4
4
|
"compilerOptions": {
|
|
5
|
-
"allowImportingTsExtensions": true,
|
|
6
5
|
"declaration": false,
|
|
7
6
|
"declarationMap": false,
|
|
8
|
-
"incremental": false,
|
|
9
7
|
"module": "ESNext",
|
|
10
8
|
"moduleResolution": "Bundler",
|
|
11
|
-
"noEmit": true,
|
|
12
9
|
"target": "ESNext",
|
|
10
|
+
"outDir": "dist",
|
|
11
|
+
"noEmit": true,
|
|
12
|
+
"allowImportingTsExtensions": true,
|
|
13
13
|
"skipLibCheck": true
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PathLike } from 'node:fs';
|
|
2
2
|
import { glob, stat } from 'node:fs/promises';
|
|
3
|
-
import {
|
|
3
|
+
import { resolve } from 'node:path';
|
|
4
4
|
import { fileURLToPath } from 'node:url';
|
|
5
5
|
import type { Command } from '../commands/index.ts';
|
|
6
6
|
import { predicate as commandPredicate } from '../commands/index.ts';
|
|
@@ -43,7 +43,7 @@ export async function loadStructures<Structure>(
|
|
|
43
43
|
// Loop through all the matching files in the directory
|
|
44
44
|
for await (const file of glob(pattern)) {
|
|
45
45
|
// If the file is index.ts, skip the file
|
|
46
|
-
if (
|
|
46
|
+
if (file.endsWith('/index.ts')) {
|
|
47
47
|
continue;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -11,14 +11,6 @@ const config = [
|
|
|
11
11
|
...prettier,
|
|
12
12
|
{
|
|
13
13
|
rules: {
|
|
14
|
-
'no-restricted-globals': 0,
|
|
15
|
-
'n/prefer-global/buffer': [2, 'never'],
|
|
16
|
-
'n/prefer-global/console': [2, 'always'],
|
|
17
|
-
'n/prefer-global/process': [2, 'never'],
|
|
18
|
-
'n/prefer-global/text-decoder': [2, 'always'],
|
|
19
|
-
'n/prefer-global/text-encoder': [2, 'always'],
|
|
20
|
-
'n/prefer-global/url-search-params': [2, 'always'],
|
|
21
|
-
'n/prefer-global/url': [2, 'always'],
|
|
22
14
|
'jsdoc/check-tag-names': 0,
|
|
23
15
|
'jsdoc/no-undefined-types': 0,
|
|
24
16
|
'jsdoc/valid-types': 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
-
"name": "
|
|
3
|
+
"name": "[REPLACE_ME]",
|
|
4
4
|
"version": "0.1.0",
|
|
5
5
|
"private": true,
|
|
6
6
|
"type": "module",
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
"deploy": "node --env-file=.env src/util/deploy.js"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@discordjs/core": "^2.
|
|
15
|
-
"discord.js": "^14.
|
|
14
|
+
"@discordjs/core": "^2.3.0",
|
|
15
|
+
"discord.js": "^14.24.2"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"eslint": "^9.38.
|
|
18
|
+
"eslint": "^9.38.0",
|
|
19
19
|
"eslint-config-neon": "^0.2.9",
|
|
20
20
|
"eslint-formatter-pretty": "^7.0.0",
|
|
21
|
-
"prettier": "^3.
|
|
22
|
-
"zod": "^4.1.
|
|
21
|
+
"prettier": "^3.6.2",
|
|
22
|
+
"zod": "^4.1.12"
|
|
23
23
|
},
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=22.12.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { glob, stat } from 'node:fs/promises';
|
|
2
|
-
import {
|
|
3
|
-
import { fileURLToPath } from 'node:url';
|
|
2
|
+
import { resolve } from 'node:path';
|
|
3
|
+
import { fileURLToPath, URL } from 'node:url';
|
|
4
4
|
import { predicate as commandPredicate } from '../commands/index.js';
|
|
5
5
|
import { predicate as eventPredicate } from '../events/index.js';
|
|
6
6
|
|
|
@@ -40,7 +40,7 @@ export async function loadStructures(dir, predicate, recursive = true) {
|
|
|
40
40
|
// Loop through all the matching files in the directory
|
|
41
41
|
for await (const file of glob(pattern)) {
|
|
42
42
|
// If the file is index.js, skip the file
|
|
43
|
-
if (
|
|
43
|
+
if (file.endsWith('/index.js')) {
|
|
44
44
|
continue;
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
dist
|
|
@@ -5,7 +5,7 @@ import typescript from 'eslint-config-neon/typescript';
|
|
|
5
5
|
|
|
6
6
|
const config = [
|
|
7
7
|
{
|
|
8
|
-
ignores: [],
|
|
8
|
+
ignores: ['**/dist/*'],
|
|
9
9
|
},
|
|
10
10
|
...common,
|
|
11
11
|
...node,
|
|
@@ -18,14 +18,6 @@ const config = [
|
|
|
18
18
|
},
|
|
19
19
|
},
|
|
20
20
|
rules: {
|
|
21
|
-
'no-restricted-globals': 0,
|
|
22
|
-
'n/prefer-global/buffer': [2, 'never'],
|
|
23
|
-
'n/prefer-global/console': [2, 'always'],
|
|
24
|
-
'n/prefer-global/process': [2, 'never'],
|
|
25
|
-
'n/prefer-global/text-decoder': [2, 'always'],
|
|
26
|
-
'n/prefer-global/text-encoder': [2, 'always'],
|
|
27
|
-
'n/prefer-global/url-search-params': [2, 'always'],
|
|
28
|
-
'n/prefer-global/url': [2, 'always'],
|
|
29
21
|
'import/extensions': 0,
|
|
30
22
|
},
|
|
31
23
|
},
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
-
"name": "
|
|
3
|
+
"name": "[REPLACE_ME]",
|
|
4
4
|
"version": "0.1.0",
|
|
5
5
|
"private": true,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc",
|
|
9
9
|
"lint": "prettier --check . && eslint --ext .ts --format=pretty src",
|
|
10
|
-
"deploy": "node --env-file=.env
|
|
10
|
+
"deploy": "node --env-file=.env dist/util/deploy.js",
|
|
11
11
|
"format": "prettier --write . && eslint --ext .ts --fix --format=pretty src",
|
|
12
|
-
"start": "node --env-file=.env
|
|
12
|
+
"start": "node --env-file=.env dist/index.js"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@discordjs/core": "^2.
|
|
16
|
-
"discord.js": "^14.
|
|
15
|
+
"@discordjs/core": "^2.3.0",
|
|
16
|
+
"discord.js": "^14.24.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@sapphire/ts-config": "^5.0.
|
|
20
|
-
"@types/node": "^22.
|
|
21
|
-
"eslint": "^9.
|
|
19
|
+
"@sapphire/ts-config": "^5.0.1",
|
|
20
|
+
"@types/node": "^22.18.13",
|
|
21
|
+
"eslint": "^9.38.0",
|
|
22
22
|
"eslint-config-neon": "^0.2.9",
|
|
23
23
|
"eslint-formatter-pretty": "^7.0.0",
|
|
24
|
-
"prettier": "^3.
|
|
24
|
+
"prettier": "^3.6.2",
|
|
25
25
|
"typescript": "~5.9.3",
|
|
26
|
-
"zod": "^4.1.
|
|
26
|
+
"zod": "^4.1.12"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
29
|
"node": ">=22.12.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RESTPostAPIApplicationCommandsJSONBody, CommandInteraction } from 'discord.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import type { StructurePredicate } from '../util/loaders.
|
|
3
|
+
import type { StructurePredicate } from '../util/loaders.[REPLACE_IMPORT_EXT]';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Defines the structure of a command
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { URL } from 'node:url';
|
|
1
2
|
import { Events } from 'discord.js';
|
|
2
|
-
import { loadCommands } from '../util/loaders.
|
|
3
|
-
import type { Event } from './index.
|
|
3
|
+
import { loadCommands } from '../util/loaders.[REPLACE_IMPORT_EXT]';
|
|
4
|
+
import type { Event } from './index.[REPLACE_IMPORT_EXT]';
|
|
4
5
|
|
|
5
6
|
const commands = await loadCommands(new URL('../commands/', import.meta.url));
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
|
+
import { URL } from 'node:url';
|
|
2
3
|
import { Client, GatewayIntentBits } from 'discord.js';
|
|
3
|
-
import { loadEvents } from './util/loaders.
|
|
4
|
+
import { loadEvents } from './util/loaders.[REPLACE_IMPORT_EXT]';
|
|
4
5
|
|
|
5
6
|
// Initialize the client
|
|
6
7
|
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
|
+
import { URL } from 'node:url';
|
|
2
3
|
import { API } from '@discordjs/core/http-only';
|
|
3
4
|
import { REST } from 'discord.js';
|
|
4
|
-
import { loadCommands } from './loaders.
|
|
5
|
+
import { loadCommands } from './loaders.[REPLACE_IMPORT_EXT]';
|
|
5
6
|
|
|
6
7
|
const commands = await loadCommands(new URL('../commands/', import.meta.url));
|
|
7
8
|
const commandData = [...commands.values()].map((command) => command.data);
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { PathLike } from 'node:fs';
|
|
2
2
|
import { glob, stat } from 'node:fs/promises';
|
|
3
|
-
import {
|
|
3
|
+
import { resolve } from 'node:path';
|
|
4
4
|
import { fileURLToPath } from 'node:url';
|
|
5
|
-
import {
|
|
6
|
-
import { predicate as
|
|
5
|
+
import type { Command } from '../commands/index.[REPLACE_IMPORT_EXT]';
|
|
6
|
+
import { predicate as commandPredicate } from '../commands/index.[REPLACE_IMPORT_EXT]';
|
|
7
|
+
import type { Event } from '../events/index.[REPLACE_IMPORT_EXT]';
|
|
8
|
+
import { predicate as eventPredicate } from '../events/index.[REPLACE_IMPORT_EXT]';
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* A predicate to check if the structure is valid
|
|
@@ -34,14 +36,14 @@ export async function loadStructures<Structure>(
|
|
|
34
36
|
// Create an empty array to store the structures
|
|
35
37
|
const structures: Structure[] = [];
|
|
36
38
|
|
|
37
|
-
// Create a glob pattern to match the .
|
|
39
|
+
// Create a glob pattern to match the .[REPLACE_IMPORT_EXT] files
|
|
38
40
|
const basePath = dir instanceof URL ? fileURLToPath(dir) : dir.toString();
|
|
39
|
-
const pattern = resolve(basePath, recursive ? '**/*.
|
|
41
|
+
const pattern = resolve(basePath, recursive ? '**/*.[REPLACE_IMPORT_EXT]' : '*.[REPLACE_IMPORT_EXT]');
|
|
40
42
|
|
|
41
43
|
// Loop through all the matching files in the directory
|
|
42
44
|
for await (const file of glob(pattern)) {
|
|
43
|
-
// If the file is index.
|
|
44
|
-
if (
|
|
45
|
+
// If the file is index.[REPLACE_IMPORT_EXT], skip the file
|
|
46
|
+
if (file.endsWith('/index.[REPLACE_IMPORT_EXT]')) {
|
|
45
47
|
continue;
|
|
46
48
|
}
|
|
47
49
|
|
|
@@ -2,15 +2,12 @@
|
|
|
2
2
|
"$schema": "https://json.schemastore.org/tsconfig.json",
|
|
3
3
|
"extends": ["@sapphire/ts-config", "@sapphire/ts-config/extra-strict"],
|
|
4
4
|
"compilerOptions": {
|
|
5
|
-
"allowImportingTsExtensions": true,
|
|
6
|
-
"erasableSyntaxOnly": true,
|
|
7
5
|
"declaration": false,
|
|
8
6
|
"declarationMap": false,
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"moduleResolution": "Bundler",
|
|
12
|
-
"noEmit": true,
|
|
7
|
+
"module": "NodeNext",
|
|
8
|
+
"moduleResolution": "NodeNext",
|
|
13
9
|
"target": "ESNext",
|
|
10
|
+
"outDir": "dist",
|
|
14
11
|
"skipLibCheck": true
|
|
15
12
|
}
|
|
16
13
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import common from 'eslint-config-neon/common';
|
|
2
|
-
import node from 'eslint-config-neon/node';
|
|
3
|
-
import prettier from 'eslint-config-neon/prettier';
|
|
4
|
-
|
|
5
|
-
const config = [
|
|
6
|
-
{
|
|
7
|
-
ignores: [],
|
|
8
|
-
},
|
|
9
|
-
...common,
|
|
10
|
-
...node,
|
|
11
|
-
...prettier,
|
|
12
|
-
{
|
|
13
|
-
rules: {
|
|
14
|
-
'jsdoc/check-tag-names': 0,
|
|
15
|
-
'jsdoc/no-undefined-types': 0,
|
|
16
|
-
'jsdoc/valid-types': 0,
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
];
|
|
20
|
-
|
|
21
|
-
export default config;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules/eslint/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules/eslint/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules/eslint/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules/eslint/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../eslint/bin/eslint.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../eslint/bin/eslint.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../prettier/bin/prettier.cjs" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../prettier/bin/prettier.cjs" "$@"
|
|
21
|
-
fi
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
console.log();
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import common from 'eslint-config-neon/common';
|
|
2
|
-
import node from 'eslint-config-neon/node';
|
|
3
|
-
import prettier from 'eslint-config-neon/prettier';
|
|
4
|
-
import typescript from 'eslint-config-neon/typescript';
|
|
5
|
-
|
|
6
|
-
const config = [
|
|
7
|
-
{
|
|
8
|
-
ignores: [],
|
|
9
|
-
},
|
|
10
|
-
...common,
|
|
11
|
-
...node,
|
|
12
|
-
...typescript,
|
|
13
|
-
...prettier,
|
|
14
|
-
{
|
|
15
|
-
languageOptions: {
|
|
16
|
-
parserOptions: {
|
|
17
|
-
project: ['./tsconfig.eslint.json'],
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
rules: {
|
|
21
|
-
'import/extensions': 0,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
];
|
|
25
|
-
|
|
26
|
-
export default config;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules/eslint/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules/eslint/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules/eslint/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules/eslint/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../eslint/bin/eslint.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../eslint/bin/eslint.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../prettier/bin/prettier.cjs" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../prettier/bin/prettier.cjs" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../typescript/bin/tsc" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../typescript/bin/tsserver" "$@"
|
|
21
|
-
fi
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
pnpm-lock.yaml
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules/eslint/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules/eslint/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules/eslint/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules/eslint/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../eslint/bin/eslint.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../eslint/bin/eslint.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../prettier/bin/prettier.cjs" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../prettier/bin/prettier.cjs" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules/eslint/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules/eslint/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules/eslint/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules/eslint/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../eslint/bin/eslint.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../eslint/bin/eslint.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/prettier@3.7.4/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../prettier/bin/prettier.cjs" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../prettier/bin/prettier.cjs" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../typescript/bin/tsc" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/discord.js/discord.js/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../typescript/bin/tsserver" "$@"
|
|
21
|
-
fi
|