diff --git a/.gitignore b/.gitignore index cab290e..05098a1 100644 --- a/.gitignore +++ b/.gitignore @@ -81,6 +81,7 @@ typings/ # Nuxt.js build / generate output .nuxt dist +lib # Gatsby files .cache/ diff --git a/package.json b/package.json index acbcd9d..8c9a284 100644 --- a/package.json +++ b/package.json @@ -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__", diff --git a/tsconfig.json b/tsconfig.json index d4c7734..208ec6a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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"] }