Skip to content

Commit

Permalink
chore: tsup and tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
BIYUEHU committed Jun 6, 2024
1 parent f7cb1c6 commit 569c3c5
Show file tree
Hide file tree
Showing 84 changed files with 148 additions and 522 deletions.
17 changes: 4 additions & 13 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,9 @@
"env": {
"es2024": true
},
"extends": [
"airbnb-base",
"prettier",
"typescript"
],
"extends": ["airbnb-base", "prettier", "typescript"],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"plugins": ["@typescript-eslint"],
"rules": {
"import/no-extraneous-dependencies": 0,
"import/no-unresolved": 0,
Expand All @@ -21,8 +15,5 @@
"no-shadow": 0,
"no-redeclare": 0
},
"ignorePatterns": [
"*.js",
"*.d.ts"
]
}
"ignorePatterns": ["*.js", "*.d.ts"]
}
29 changes: 0 additions & 29 deletions .github/release-drafter.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/docs.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
draft: false
prerelease: false
prerelease: ${{ github.ref_name == 'v*.*.*-*'}}
body: |
Please refer to [CHANGELOG.md](https://github.com/kotorijs/kotori/blob/master/CHANGELOG.md) for details.
5 changes: 1 addition & 4 deletions modules/access/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"version": "1.0.0",
"description": "access plugin",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"keywords": [
"kotori",
"chatbot",
Expand Down Expand Up @@ -33,4 +30,4 @@
]
}
}
}
}
4 changes: 2 additions & 2 deletions modules/access/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.node.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
Expand All @@ -9,4 +9,4 @@
"path": "../../packages/kotori"
}
]
}
}
3 changes: 0 additions & 3 deletions modules/adapter-cmd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"version": "1.1.0",
"description": "Adapter For Cmd",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"keywords": [
"kotori",
"chatbot",
Expand Down
4 changes: 2 additions & 2 deletions modules/adapter-cmd/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.node.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
Expand All @@ -9,4 +9,4 @@
"path": "../../packages/kotori"
}
]
}
}
3 changes: 0 additions & 3 deletions modules/adapter-minecraft/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"version": "1.0.1",
"description": "Adapter For Minecraft Bedrock Edition",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"keywords": [
"kotori",
"chatbot",
Expand Down
4 changes: 2 additions & 2 deletions modules/adapter-minecraft/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.node.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
Expand All @@ -9,4 +9,4 @@
"path": "../../packages/kotori"
}
]
}
}
5 changes: 1 addition & 4 deletions modules/adapter-onebot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"version": "1.2.1",
"description": "Adapter For Onebot (go-cqhttp)",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"keywords": [
"kotori",
"chatbot",
Expand All @@ -26,4 +23,4 @@
"@types/ws": "^8.5.8",
"ws": "^8.14.2"
}
}
}
4 changes: 2 additions & 2 deletions modules/adapter-onebot/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.node.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
Expand All @@ -9,4 +9,4 @@
"path": "../../packages/kotori"
}
]
}
}
3 changes: 0 additions & 3 deletions modules/adapter-qq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"version": "1.1.1",
"description": "Adapter For QQ Base On Tencent Api",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"keywords": [
"kotori",
"chatbot",
Expand Down
4 changes: 2 additions & 2 deletions modules/adapter-qq/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.node.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
Expand All @@ -9,4 +9,4 @@
"path": "../../packages/kotori"
}
]
}
}
5 changes: 1 addition & 4 deletions modules/adapter-sandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"version": "1.0.0",
"description": "Kotori modules test environment,a visual sandbox",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"keywords": [
"kotori",
"chatbot",
Expand All @@ -26,4 +23,4 @@
"@types/ws": "^8.5.8",
"ws": "^8.14.2"
}
}
}
4 changes: 2 additions & 2 deletions modules/adapter-sandbox/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.node.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
Expand All @@ -9,4 +9,4 @@
"path": "../../packages/kotori"
}
]
}
}
3 changes: 0 additions & 3 deletions modules/alias/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"version": "1.0.0",
"description": "alias plugin",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"keywords": [
"kotori",
"chatbot",
Expand Down
4 changes: 2 additions & 2 deletions modules/alias/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.node.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
Expand All @@ -9,4 +9,4 @@
"path": "../../packages/kotori"
}
]
}
}
3 changes: 0 additions & 3 deletions modules/bangumi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"version": "1.2.2",
"description": "bangumi plugin",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"keywords": [
"kotori",
"chatbot",
Expand Down
4 changes: 2 additions & 2 deletions modules/bangumi/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.node.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
Expand All @@ -9,4 +9,4 @@
"path": "../../packages/kotori"
}
]
}
}
3 changes: 0 additions & 3 deletions modules/better-join/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"version": "1.1.2",
"description": "better join tips,before close manger's join welcome",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"keywords": [
"kotori",
"chatbot",
Expand Down
4 changes: 2 additions & 2 deletions modules/better-join/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.node.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
Expand All @@ -9,4 +9,4 @@
"path": "../../packages/kotori"
}
]
}
}
3 changes: 0 additions & 3 deletions modules/bilibili/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"version": "1.2.1",
"description": "bilibili plugin",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"keywords": [
"kotori",
"chatbot",
Expand Down
4 changes: 2 additions & 2 deletions modules/bilibili/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.node.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
Expand All @@ -9,4 +9,4 @@
"path": "../../packages/kotori"
}
]
}
}
3 changes: 0 additions & 3 deletions modules/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"version": "1.3.0",
"description": "core plugin",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"keywords": [
"kotori",
"chatbot",
Expand Down
4 changes: 2 additions & 2 deletions modules/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.node.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
Expand All @@ -9,4 +9,4 @@
"path": "../../packages/kotori"
}
]
}
}
3 changes: 0 additions & 3 deletions modules/drift-bottle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"version": "1.0.1",
"description": "throw and pick bottles",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"keywords": [
"kotori",
"chatbot",
Expand Down
Loading

0 comments on commit 569c3c5

Please sign in to comment.