Skip to content

Commit

Permalink
build(node)!: use ES module
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Nov 27, 2023
1 parent b16f9d9 commit 999ba3e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.nyc_output
/*-*.*.*.tgz
coverage
dist
Expand Down
25 changes: 9 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
},
Expand All @@ -34,31 +37,21 @@
"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",
"!*.test.*"
],
"main": "./dist/source/index.js",
"types": "./dist/source/index.d.ts",
"nyc": {
"all": true,
"reporter": [
"lcov",
"text"
]
},
"publishConfig": {
"access": "public"
},
"xo": {
"space": 2,
"rules": {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"test"
],
"compilerOptions": {
"module": "CommonJS",
"lib": ["ES2020"],
"target": "ES2020", // Node.js 14
"outDir": "dist"
}
}

0 comments on commit 999ba3e

Please sign in to comment.