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

chore: bump node version to 22 #68

Merged
merged 2 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18
v22
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"name": "gnosis",
"url": "https://github.com/gnosis"
},
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
Expand All @@ -21,6 +20,7 @@
"winston": "^3.11.0"
},
"devDependencies": {
"@tsconfig/node22": "^22.0.0",
"@types/node": "^20.8.9",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
Expand Down
31 changes: 4 additions & 27 deletions packages/common/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
{
"extends": "@tsconfig/node22/tsconfig.json",
"compilerOptions": {
"allowJs": false,
"allowSyntheticDefaultImports": true,
"checkJs": false,
"declaration": true,
"declarationMap": true,
"esModuleInterop": false,
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
"importHelpers": true,
"incremental": true,
"lib": ["ES2022"],
"module": "ES2022",
"moduleResolution": "Bundler",
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "./dist",
"rootDir": "./src",
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"target": "ES2022"
},
"include": ["./src/**/*"]
}
"outDir": "./dist"
}
}
5 changes: 2 additions & 3 deletions packages/executor/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:22-alpine

WORKDIR /usr/src/app

Expand All @@ -9,7 +9,6 @@ COPY ../../package.json ../../yarn.lock ./
COPY ./packages/common ./packages/common
COPY ./packages/executor ./packages/executor


# Install dependencies at root level
RUN yarn install

Expand All @@ -20,4 +19,4 @@ RUN yarn compile
WORKDIR /usr/src/app/packages/executor
RUN yarn compile

CMD ["yarn", "start"]
CMD ["yarn", "start:prod"]
2 changes: 1 addition & 1 deletion packages/executor/nodemon.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"watch": ["src"],
"ext": "ts,json",
"exec": "ts-node --esm ./src/index.ts"
"exec": "ts-node ./src/index.ts"
}
3 changes: 2 additions & 1 deletion packages/executor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "@gnosis/hashi-executor",
"private": true,
"version": "0.1.0",
"type": "module",
"author": {
"name": "gnosis",
"url": "https://github.com/gnosis"
Expand All @@ -13,6 +12,7 @@
"prettier:check": "prettier --check \"**/*.{js,json,md,sol,ts,yml}\"",
"prettier:write": "prettier --write \"**/*.{js,json,md,sol,ts,yml}\"",
"start": "node --loader ts-node/esm ./src/index.ts",
"start:prod": "node ./dist/index.js",
"start:dev": "nodemon"
},
"dependencies": {
Expand All @@ -23,6 +23,7 @@
"winston": "^3.11.0"
},
"devDependencies": {
"@tsconfig/node22": "^22.0.0",
"@types/node": "^20.8.9",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
Expand Down
Loading
Loading