diff --git a/src/bindgen/typescript-resources/pipeline-worker-url.ts b/src/bindgen/typescript-resources/pipeline-worker-url.ts index a2f92336a..d4e040a87 100644 --- a/src/bindgen/typescript-resources/pipeline-worker-url.ts +++ b/src/bindgen/typescript-resources/pipeline-worker-url.ts @@ -1,5 +1,6 @@ +// @ts-expect-error error TS2732: Cannot find module '../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension. import packageJson from '../package.json' -let pipelineWorkerUrl: string | URL | null = `https://cdn.jsdelivr.net/npm/@${packageJson.version}/dist/web-workers/pipeline.worker.js` +let pipelineWorkerUrl: string | URL | null = `https://cdn.jsdelivr.net/npm/@${packageJson.version as string}/dist/web-workers/pipeline.worker.js` export function setPipelineWorkerUrl (workerUrl: string | URL | null): void { pipelineWorkerUrl = workerUrl diff --git a/src/bindgen/typescript-resources/pipelines-base-url.ts b/src/bindgen/typescript-resources/pipelines-base-url.ts index fadddd533..1be63f43c 100644 --- a/src/bindgen/typescript-resources/pipelines-base-url.ts +++ b/src/bindgen/typescript-resources/pipelines-base-url.ts @@ -1,5 +1,6 @@ +// @ts-expect-error error TS2732: Cannot find module '../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension. import packageJson from '../package.json' -let pipelinesBaseUrl: string | URL = `https://cdn.jsdelivr.net/npm/@${packageJson.version}/dist/pipelines` +let pipelinesBaseUrl: string | URL = `https://cdn.jsdelivr.net/npm/@${packageJson.version as string}/dist/pipelines` export function setPipelinesBaseUrl (baseUrl: string | URL): void { pipelinesBaseUrl = baseUrl