chore: config overhaul

This commit is contained in:
iCrawl
2023-08-22 01:33:47 +02:00
parent 5d7c59c301
commit 1e3aed0d97
131 changed files with 353 additions and 114 deletions

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',