Skip to content

Commit 219e6a2

Browse files
authored
Merge pull request #355 from VictorBravo9er/changes
2 parents 43081c5 + a85edb6 commit 219e6a2

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ package-lock.json
4646
/output
4747
/db
4848
/data
49+
/dist
4950
/Bruno
5051
/tsconfig.tsbuildinfo
5152
/public/generated.css

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,13 @@ RUN apt-get update && apt-get install -y \
7777

7878
COPY --from=install /temp/prod/node_modules node_modules
7979
COPY --from=prerelease /app/public/generated.css /app/public/
80-
COPY . .
80+
COPY --from=prerelease /app/dist /app/dist
81+
82+
# COPY . .
83+
RUN mkdir data
8184

8285
EXPOSE 3000/tcp
8386
# used for calibre
8487
ENV QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox"
8588
ENV NODE_ENV=production
86-
ENTRYPOINT [ "bun", "run", "./src/index.tsx" ]
89+
ENTRYPOINT [ "bun", "run", "dist/src/index.js" ]

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"format": "run-p 'format:*'",
88
"format:eslint": "eslint --fix .",
99
"format:prettier": "prettier --write .",
10-
"build": "bun x @tailwindcss/cli -i ./src/main.css -o ./public/generated.css",
10+
"build:js": "tsc",
11+
"build": "bun x @tailwindcss/cli -i ./src/main.css -o ./public/generated.css && bun run build:js",
1112
"lint": "run-p 'lint:*'",
1213
"lint:tsc": "tsc --noEmit",
1314
"lint:knip": "knip",

tsconfig.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"target": "ES2021",
66
"moduleResolution": "bundler",
77
"moduleDetection": "force",
8-
"allowImportingTsExtensions": true,
9-
"noEmit": true,
8+
// "allowImportingTsExtensions": true,
9+
"outDir": "dist",
10+
"noEmit": false,
1011
"composite": true,
1112
"strict": true,
1213
"downlevelIteration": true,
@@ -24,7 +25,10 @@
2425
// "noUnusedParameters": true,
2526
"exactOptionalPropertyTypes": true,
2627
"noFallthroughCasesInSwitch": true,
27-
"noImplicitOverride": true
28+
"noImplicitOverride": true,
29+
"resolveJsonModule": true,
30+
"esModuleInterop": true
2831
// "noImplicitReturns": true
29-
}
32+
},
33+
"include": ["src", "package.json"]
3034
}

0 commit comments

Comments
 (0)