mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +08:00
fix: build issues
This commit is contained in:
@@ -19,10 +19,10 @@ WORKDIR /app
|
|||||||
COPY ./src ./src
|
COPY ./src ./src
|
||||||
COPY ./config.json ./
|
COPY ./config.json ./
|
||||||
COPY ./tsconfig.json ./tsconfig.json
|
COPY ./tsconfig.json ./tsconfig.json
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
COPY ./jina-ai/src ./jina-ai/src
|
COPY ./jina-ai/src ./jina-ai/src
|
||||||
COPY ./jina-ai/tsconfig.json ./jina-ai/tsconfig.json
|
COPY ./jina-ai/tsconfig.json ./jina-ai/tsconfig.json
|
||||||
|
|
||||||
RUN npm run build
|
|
||||||
WORKDIR /app/jina-ai
|
WORKDIR /app/jina-ai
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|||||||
8
jina-ai/package-lock.json
generated
8
jina-ai/package-lock.json
generated
@@ -10,7 +10,7 @@
|
|||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@google-cloud/firestore": "^7.11.0",
|
"@google-cloud/firestore": "^7.11.0",
|
||||||
"civkit": "^0.8.3-3e69606",
|
"civkit": "^0.8.3-15926cb",
|
||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.13",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"reflect-metadata": "^0.2.2",
|
"reflect-metadata": "^0.2.2",
|
||||||
@@ -851,9 +851,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/civkit": {
|
"node_modules/civkit": {
|
||||||
"version": "0.8.3-ba2d60a",
|
"version": "0.8.3-15926cb",
|
||||||
"resolved": "https://registry.npmjs.org/civkit/-/civkit-0.8.3-ba2d60a.tgz",
|
"resolved": "https://registry.npmjs.org/civkit/-/civkit-0.8.3-15926cb.tgz",
|
||||||
"integrity": "sha512-WnL5yIH8KhbtfvNoUmC69LLjDUhLAcr2ftlZCbuhqYJUlAU4ICaop/ulGAkyYtq0x6mQNG9RPa+NU4g1gyL28Q==",
|
"integrity": "sha512-RPPYF0MUcxs4TC7j1IreKDpfFPCYpyg5DG5akDPcSqesbY7mp7zgr5poorD8P6rIWD3Wvu4805RswZi/npnWeQ==",
|
||||||
"license": "AGPL",
|
"license": "AGPL",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@google-cloud/firestore": "^7.11.0",
|
"@google-cloud/firestore": "^7.11.0",
|
||||||
"civkit": "^0.8.3-3e69606",
|
"civkit": "^0.8.3-15926cb",
|
||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.13",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"reflect-metadata": "^0.2.2",
|
"reflect-metadata": "^0.2.2",
|
||||||
@@ -35,4 +35,4 @@
|
|||||||
"@types/lodash": "^4.17.15",
|
"@types/lodash": "^4.17.15",
|
||||||
"pino-pretty": "^13.0.0"
|
"pino-pretty": "^13.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export class TokenTracker extends EventEmitter {
|
|||||||
if ('asyncLocalContext' in process) {
|
if ('asyncLocalContext' in process) {
|
||||||
const asyncLocalContext = process.asyncLocalContext as any;
|
const asyncLocalContext = process.asyncLocalContext as any;
|
||||||
this.on('usage', () => {
|
this.on('usage', () => {
|
||||||
if (asyncLocalContext.hasContext()) {
|
if (asyncLocalContext.available()) {
|
||||||
asyncLocalContext.ctx.chargeAmount = this.getTotalUsage();
|
asyncLocalContext.ctx.chargeAmount = this.getTotalUsage();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,5 +12,7 @@
|
|||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"resolveJsonModule": true
|
"resolveJsonModule": true
|
||||||
}
|
},
|
||||||
|
"include": ["src/**/*"],
|
||||||
|
"exclude": ["jina-ai/**/*", "**/__tests__/**/*"],
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user