Skip to content

Commit

Permalink
Merge pull request #68 from gnosis/chore/node-22
Browse files Browse the repository at this point in the history
chore: bump node version to 22
  • Loading branch information
allemanfredi authored Sep 25, 2024
2 parents 94810c9 + 71d4a2d commit 83da4d2
Show file tree
Hide file tree
Showing 34 changed files with 1,725 additions and 1,645 deletions.
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

0 comments on commit 83da4d2

Please sign in to comment.