Skip to content

Commit 74d98c2

Browse files
fix: npm erro (#21)
Co-authored-by: guilhermeacar-alves <[email protected]>
1 parent d5ed467 commit 74d98c2

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM node:20-alpine
1+
FROM node:22-alpine
22

3-
RUN npm i -g ejs-cli ts-node typescript @cubos/kube-templates @types/node@~20 firebase-tools && npm cache clean --force
3+
RUN npm i -g ejs-cli ts-node typescript @cubos/kube-templates @types/node@~24 firebase-tools && npm cache clean --force
44

55
RUN apk add --update docker libc6-compat libssl3 git nano openssh python3 py3-pip py3-cffi py3-cryptography findutils gettext bash jq ca-certificates moreutils curl ruby docker-cli openssl aws-cli php php-phar php-mbstring && \
66
pip install --upgrade pip --break-system-packages && \

kubectl/deploy

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,20 @@
22
set -e
33

44
rm -f tsconfig.json package.json
5-
npx tsc --init --target es2018 --lib es2018 --strict false --noImplicitAny false > /dev/null
5+
6+
cat > tsconfig.json <<EOF
7+
{
8+
"compilerOptions": {
9+
"target": "ES2022",
10+
"lib": ["ES2022"],
11+
"module": "CommonJS",
12+
"moduleResolution": "nodenext",
13+
"types": ["node"],
14+
"strict": false,
15+
"noImplicitAny": false
16+
}
17+
}
18+
EOF
619

720
mkdir -p node_modules/@cubos
821
rm -rf node_modules/@cubos/kube-templates

0 commit comments

Comments
 (0)