Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functionsの開発環境を整える #3

Open
wants to merge 16 commits into
base: development
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ESモジュールにしてNodeバージョンを20に
hiroro-work committed Oct 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 31cbd51e28b7c27ac5c8f78971b11c72501d4d4e
File renamed without changes.
3 changes: 2 additions & 1 deletion functions/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "functions",
"type": "module",
"scripts": {
"lint": "eslint --ext .js,.ts .",
"build": "tsc",
@@ -11,7 +12,7 @@
"logs": "firebase functions:log"
},
"engines": {
"node": "18"
"node": "20"
},
"main": "lib/index.js",
"dependencies": {
4 changes: 1 addition & 3 deletions functions/tsconfig.dev.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"include": [
".eslintrc.js"
]
"include": [".eslintrc.cjs"]
}
10 changes: 5 additions & 5 deletions functions/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"compilerOptions": {
"module": "commonjs",
"module": "NodeNext",
"noImplicitReturns": true,
"noUnusedLocals": true,
"outDir": "lib",
"sourceMap": true,
"strict": true,
"target": "es2017"
"target": "ES2017",
"skipLibCheck": true,
"esModuleInterop": true
},
"compileOnSave": true,
"include": [
"src"
]
"include": ["src"]
}