Skip to content

Commit

Permalink
refactor: make package compatible to yakumo
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikoTan committed Nov 30, 2023
1 parent 11b2839 commit 08b131b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ typings/
# Nuxt.js build / generate output
.nuxt
dist
lib

# Gatsby files
.cache/
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@
},
"homepage": "https://github.com/AwesomeHamster/koishi-plugin-hitokoto",
"license": "MIT",
"main": "dist/index.bundle.js",
"main": "lib/index.js",
"directories": {
"src": "src",
"test": "__tests__"
},
"files": [
"dist",
"lib",
"README.md",
"LICENSE"
],
"types": "dist/index.d.ts",
"types": "lib/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/AwesomeHamster/koishi-plugin-hitokoto.git"
},
"scripts": {
"build": "constructeur build && tsc --emitDeclarationOnly",
"build": "tsc",
"dev": "constructeur build --minify false && tsc --emitDeclarationOnly",
"clean": "rimraf dist/*",
"test": "mocha -r ts-node/register -r yml-register --extension .spec.ts ./__tests__",
Expand Down
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"extends": "@hamster-bot/tsconfig/tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"types": ["node", "mocha"]
"module": "CommonJS",
"outDir": "lib",
"types": ["node", "mocha"],
"skipLibCheck": true
},
"include": ["src/**/*.ts"]
}

0 comments on commit 08b131b

Please sign in to comment.