1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2025-05-18 12:02:53 +02:00

refactor: no duplicate of package.json in solutions

This commit is contained in:
Divlo
2021-12-06 19:04:16 +01:00
parent cffaa9ec40
commit 938702c23f
13 changed files with 42 additions and 31 deletions

View File

@ -1,4 +1,8 @@
FROM node:16.13.1
RUN npm install --global ts-node typescript @types/node
COPY ./ ./
CMD ["ts-node", "solution.ts"]
WORKDIR /usr/app
COPY ./ /usr/app
RUN npm install
RUN npm run build
CMD ["node", "build/solution.js"]

View File

@ -0,0 +1,10 @@
{
"type": "module",
"scripts": {
"build": "tsc"
},
"devDependencies": {
"@types/node": "latest",
"typescript": "latest"
}
}

View File

@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"lib": ["ESNext"],
"moduleResolution": "node",
"outDir": "./build",
"rootDir": "./",
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true
}
}