Skip to content

Commit

Permalink
Update Dependencies, Remove production dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Netfloex committed May 8, 2022
1 parent e7bca21 commit 9f5ffb9
Show file tree
Hide file tree
Showing 4 changed files with 889 additions and 1,004 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ COPY src ./src
COPY --from=deps /app/node_modules ./node_modules

RUN yarn build
RUN yarn install --production --ignore-scripts --prefer-offline
# Disabled production dependecies, see below
# RUN yarn install --production --ignore-scripts --prefer-offline

FROM nginx:stable-alpine AS runner

Expand Down Expand Up @@ -53,7 +54,8 @@ COPY --from=builder /app/dist/index.js ./index.js
COPY entrypoint.sh .

# Copy production node_modules
COPY --from=builder /app/node_modules ./node_modules
# Not needed anymore since there are no production modules
# COPY --from=builder /app/node_modules ./node_modules

HEALTHCHECK --interval=5s --timeout=5s --retries=3 \
CMD wget -nv -t1 --spider 'http://localhost/healthcheck' || exit 1
Expand Down
52 changes: 25 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,51 +11,49 @@
"dev": "tsnd --respawn -T --rs --cls -r tsconfig-paths/register --experimental-modules -- src",
"prepare": "husky install"
},
"dependencies": {
"glob": "^7.2.0"
},
"dependencies": {},
"devDependencies": {
"@rollup/plugin-commonjs": "^21.0.2",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"@rollup/plugin-node-resolve": "^13.3.0",
"@trivago/prettier-plugin-sort-imports": "^3.2.0",
"@types/clean-css": "^4.2.5",
"@types/fs-extra": "^9.0.13",
"@types/jest": "^27.4.1",
"@types/jest": "^27.5.0",
"@types/js-yaml": "^4.0.5",
"@types/luxon": "^2.3.0",
"@types/node": "^17.0.21",
"@typescript-eslint/eslint-plugin": "^5.12.1",
"@typescript-eslint/parser": "^5.12.1",
"@types/luxon": "^2.3.2",
"@types/node": "^17.0.31",
"@typescript-eslint/eslint-plugin": "^5.22.0",
"@typescript-eslint/parser": "^5.22.0",
"@webantic/nginx-config-parser": "^1.4.1",
"apache-md5": "^1.1.7",
"asn1.js": "^5.4.1",
"axios": "^0.26.0",
"axios": "^0.27.2",
"cert2json": "^1.0.12",
"chalk": "4.1.2",
"chalk": "^4",
"chokidar": "^3.5.3",
"clean-css": "^5.2.4",
"eslint": "^8.10.0",
"eslint-config-prettier": "^8.4.0",
"eslint-plugin-import": "^2.25.4",
"clean-css": "^5.3.0",
"eslint": "^8.15.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.0.0",
"exec-sh": "^0.4.0",
"fs-extra": "^10.0.1",
"fs-extra": "^10.1.0",
"husky": "^7.0.4",
"jest": "^27.5.1",
"jest": "^28.1.0",
"js-yaml": "^4.1.0",
"json5": "^2.2.0",
"luxon": "^2.3.1",
"prettier": "^2.5.1",
"rollup": "^2.68.0",
"json5": "^2.2.1",
"luxon": "^2.3.2",
"prettier": "^2.6.2",
"rollup": "^2.72.1",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.31.2",
"string-width": "4",
"ts-jest": "^27.1.3",
"string-width": "^4",
"ts-jest": "^28.0.2",
"ts-node-dev": "^1.1.8",
"tslib": "^2.3.1",
"typescript": "^4.5.5",
"yn": "4.0.0",
"tslib": "^2.4.0",
"typescript": "^4.6.4",
"yn": "^4",
"zod": "3.8"
},
"license": "MIT"
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default defineConfig({
typescript({
exclude: ["src/tests"]
}),
commonjs({ ignore: ["glob"] }),
commonjs(),
nodeResolve()
]
});
Loading

0 comments on commit 9f5ffb9

Please sign in to comment.