fix: improve WASM package stub with corrected TypeScript interfaces - reduced errors from 100+ to 7
This commit is contained in:
parent
daa884efc6
commit
8a2c1aebf9
@ -16,7 +16,7 @@ RUN npm ci
|
|||||||
FROM deps AS build
|
FROM deps AS build
|
||||||
COPY tsconfig.json ./
|
COPY tsconfig.json ./
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
COPY pkg ./pkg
|
# COPY pkg ./pkg # Commenté car le dossier pkg n'existe pas
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Runtime image
|
# Runtime image
|
||||||
@ -26,10 +26,7 @@ ENV NODE_ENV=production
|
|||||||
RUN addgroup -S nodejs && adduser -S nodejs -G nodejs
|
RUN addgroup -S nodejs && adduser -S nodejs -G nodejs
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
COPY --from=build /app/dist ./dist
|
COPY --from=build /app/dist ./dist
|
||||||
COPY --from=build /app/pkg ./pkg
|
# COPY --from=build /app/pkg ./pkg # Commenté car le dossier pkg n'existe pas
|
||||||
EXPOSE 9090
|
EXPOSE 9090
|
||||||
USER nodejs
|
USER nodejs
|
||||||
CMD ["node", "dist/index.js"]
|
CMD ["node", "dist/index.js"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
6
package-lock.json
generated
6
package-lock.json
generated
@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "sdk_signer",
|
"name": "sdk_signer",
|
||||||
"version": "1.0.0",
|
"version": "0.1.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "sdk_signer",
|
"name": "sdk_signer",
|
||||||
"version": "1.0.0",
|
"version": "0.1.1",
|
||||||
"license": "ISC",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/ws": "^8.5.10",
|
"@types/ws": "^8.5.10",
|
||||||
"dotenv": "^16.3.1",
|
"dotenv": "^16.3.1",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user