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

Node 20 & dependencies upgrade #165

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 .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Login to DockerHub
uses: docker/login-action@v1
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "15"
node-version: "20"
- run: yarn install --frozen-lockfile
- run: yarn test
- run: yarn run lint
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ node_modules

#editor stuff
.lvimrc
.idea

#Elm
elm-stuff
Expand All @@ -47,4 +48,4 @@ src/public/*
!src/public/index.html

.env
.DS_Store
.DS_Store
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

pretty-quick --staged && yarn lint && yarn test
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM node:14-alpine as build
FROM node:20-alpine as build
WORKDIR /www
COPY package.json yarn.lock ./
RUN yarn install --production --frozen-lockfile
COPY . /www/

FROM node:14-alpine as release
FROM node:20-alpine as release
RUN apk --no-cache add tini
ENTRYPOINT ["tini", "--"]
USER node
Expand Down
39 changes: 18 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"test:debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand",
"lint": "eslint src",
"format": "prettier --write .",
"start": "node src/web-server.js"
"start": "node src/web-server.js",
"prepare": "husky"
},
"repository": {
"type": "git",
Expand All @@ -24,42 +25,38 @@
"author": "nhumrich",
"license": "Apache-2.0",
"engines": {
"node": ">=14.0.0"
"node": ">=20.0.0"
},
"packageManager": "[email protected]",
"bugs": {
"url": "https://github.com/single-spa/import-map-deployer/issues"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged && yarn lint && yarn test"
}
},
"homepage": "https://github.com/single-spa/import-map-deployer#readme",
"dependencies": {
"@azure/storage-blob": "^12.1.2",
"@google-cloud/storage": "^5.7.4",
"@google-cloud/storage": "^6.12.0",
"aws-sdk": "^2.2.27",
"basic-auth": "^1.0.3",
"body-parser": "^1.14.2",
"dotenv": "^8.2.0",
"express": "^4.13.3",
"lodash": "^4.17.11",
"minimist": "^1.2.0",
"morgan": "^1.8.1",
"request": "^2.79.0",
"basic-auth": "^1.1.0",
"body-parser": "^1.20.2",
"dotenv": "^8.6.0",
"express": "^4.19.2",
"lodash": "^4.17.21",
"minimist": "^1.2.8",
"morgan": "^1.10.0",
"request": "^2.88.2",
"rwlock": "^5.0.0"
},
"devDependencies": {
"eslint": "^7.2.0",
"eslint-config-node-important-stuff": "^1.0.0",
"eslint": "^7.32.0",
"eslint-config-node-important-stuff": "^1.1.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3",
"husky": "^4.2.5",
"husky": "^9.1.5",
"jest": "^26.0.1",
"jest-cli": "^26.0.1",
"prettier": "^2.0.4",
"pretty-quick": "^2.0.1",
"supertest": "^4.0.2"
"pretty-quick": "^2.0.2",
"supertest": "^6.3.4"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
Expand Down
Loading