diff --git a/.gitignore b/.gitignore index 3ce786f..3148a6d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -.nyc_output /*-*.*.*.tgz coverage dist diff --git a/package.json b/package.json index 3008573..f284bb5 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,10 @@ "message" ], "license": "MIT", - "repository": "grammyjs/stateless-question", + "repository": { + "type": "git", + "url": "https://github.com/grammyjs/stateless-question.git" + }, "author": { "name": "EdJoPaTo", "email": "stateless-question-telegram-typescript@edjopato.de", @@ -21,9 +24,9 @@ "scripts": { "build": "del-cli dist && tsc", "prepack": "npm run build", - "test": "tsc --sourceMap && xo && nyc ava" + "test": "tsc --sourceMap && xo && c8 --all ava" }, - "type": "commonjs", + "type": "module", "engines": { "node": ">=14" }, @@ -34,14 +37,14 @@ "grammy": "^1.10.1" }, "devDependencies": { - "@sindresorhus/tsconfig": "^3.0.1", + "@sindresorhus/tsconfig": "^5.0.0", "@types/node": "^14.18.22", "ava": "^5.0.1", + "c8": "^8.0.1", "del-cli": "^5.0.0", "grammy": "^1.10.1", - "nyc": "^15.0.0", "typescript": "^5.0.2", - "xo": "^0.54.0" + "xo": "^0.56.0" }, "files": [ "dist/source", @@ -49,16 +52,6 @@ ], "main": "./dist/source/index.js", "types": "./dist/source/index.d.ts", - "nyc": { - "all": true, - "reporter": [ - "lcov", - "text" - ] - }, - "publishConfig": { - "access": "public" - }, "xo": { "space": 2, "rules": { diff --git a/tsconfig.json b/tsconfig.json index 9f089bd..842c24c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,8 @@ "test" ], "compilerOptions": { - "module": "CommonJS", + "lib": ["ES2020"], + "target": "ES2020", // Node.js 14 "outDir": "dist" } }