Skip to content

Commit

Permalink
chore(global): bumps node version to 22
Browse files Browse the repository at this point in the history
  • Loading branch information
allemanfredi committed Sep 25, 2024
1 parent 94810c9 commit b8bc96e
Show file tree
Hide file tree
Showing 33 changed files with 1,723 additions and 1,643 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 b8bc96e

Please sign in to comment.