no1b4me commited on
Commit
469d354
·
verified ·
1 Parent(s): 8d40777

Upload 3 files

Browse files
Files changed (3) hide show
  1. Dockerfile +5 -7
  2. package.json +4 -3
  3. tsconfig.json +3 -3
Dockerfile CHANGED
@@ -8,13 +8,11 @@ FROM node:${NODE_VERSION} as build
8
  WORKDIR /usr/src/app
9
 
10
  RUN npm install -g typescript@${TS_VERSION}
11
- RUN --mount=type=cache,target=/root/.npm \
12
- npm install -g pnpm@${PNPM_VERSION}
13
- RUN --mount=type=bind,source=package.json,target=package.json \
14
- --mount=type=bind,source=pnpm-lock.yaml,target=pnpm-lock.yaml \
15
- --mount=type=bind,source=patches,target=patches \
16
- --mount=type=cache,target=/root/.local/share/pnpm/store \
17
- pnpm install --no-frozen-lockfile
18
 
19
  COPY . .
20
 
 
8
  WORKDIR /usr/src/app
9
 
10
  RUN npm install -g typescript@${TS_VERSION}
11
+ RUN npm install -g pnpm@${PNPM_VERSION}
12
+
13
+ COPY package.json pnpm-lock.yaml ./
14
+
15
+ RUN pnpm install --frozen-lockfile
 
 
16
 
17
  COPY . .
18
 
package.json CHANGED
@@ -17,12 +17,13 @@
17
  "@types/express": "^4.17.21",
18
  "@types/fs-extra": "^11.0.4",
19
  "@types/localtunnel": "^2.0.4",
20
- "@types/node": "^20.11.20",
21
  "@types/stremio-addon-sdk": "^1.6.11",
22
  "@types/tough-cookie": "^4.0.5",
23
  "@types/webtorrent": "~0.109.8",
24
  "esrun": "^3.2.26",
25
- "typescript": "^5.3.3"
 
26
  },
27
  "dependencies": {
28
  "axios": "^1.6.5",
@@ -43,7 +44,7 @@
43
  },
44
  "pnpm": {
45
  "overrides": {
46
- "@types/node": "20.11.20"
47
  },
48
  "patchedDependencies": {
49
 
17
  "@types/express": "^4.17.21",
18
  "@types/fs-extra": "^11.0.4",
19
  "@types/localtunnel": "^2.0.4",
20
+ "@types/node": "16.18.11", // Pinned to prevent breaking changes
21
  "@types/stremio-addon-sdk": "^1.6.11",
22
  "@types/tough-cookie": "^4.0.5",
23
  "@types/webtorrent": "~0.109.8",
24
  "esrun": "^3.2.26",
25
+ "typescript": "^5.3.3",
26
+ "patch-package": "^6.5.0"
27
  },
28
  "dependencies": {
29
  "axios": "^1.6.5",
 
44
  },
45
  "pnpm": {
46
  "overrides": {
47
+ "@types/node": "16.18.11"
48
  },
49
  "patchedDependencies": {
50
tsconfig.json CHANGED
@@ -7,6 +7,6 @@
7
  "rootDir": "src",
8
  "outDir": "dist",
9
  "esModuleInterop": true,
10
- "skipLibCheck": true
11
- }
12
- }
 
7
  "rootDir": "src",
8
  "outDir": "dist",
9
  "esModuleInterop": true,
10
+ "skipLibCheck": true,
11
+ "strict": false
12
+ }