From 37c1f7c8c392fcb9d14553512adaf205aca382dc Mon Sep 17 00:00:00 2001 From: 3y3 <3y3@ya.ru> Date: Sat, 19 Oct 2024 17:40:22 +0300 Subject: [PATCH] fix: Fix assets bundling --- package-lock.json | 22 +++++++++++----------- package.json | 6 +++--- src/services/search.ts | 1 + 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9fdb0ada..4059a83b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "4.39.0", "license": "MIT", "dependencies": { - "@diplodoc/client": "^3.1.2", + "@diplodoc/client": "^3.1.3", "@diplodoc/search-extension": "^1.1.4", "@diplodoc/translation": "^1.4.3", "katex": "^0.16.9", @@ -24,8 +24,8 @@ "devDependencies": { "@aws-sdk/client-s3": "^3.525.0", "@diplodoc/eslint-config": "^2.0.0", - "@diplodoc/latex-extension": "^1.1.0", - "@diplodoc/mermaid-extension": "^1.2.1", + "@diplodoc/latex-extension": "^1.3.2", + "@diplodoc/mermaid-extension": "^1.3.1", "@diplodoc/openapi-extension": "^2.4.0", "@diplodoc/prettier-config": "^2.0.0", "@diplodoc/transform": "^4.32.2", @@ -1714,13 +1714,13 @@ } }, "node_modules/@diplodoc/client": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@diplodoc/client/-/client-3.1.2.tgz", - "integrity": "sha512-xuaZX+7KFdr3HAqogu3jCbYlB4pbUAFyCmTrMb5fX05ZK3rGoSoJ0pd1ShiOpYbQeKCxpTzaViAq7WDV0Mdl9w==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@diplodoc/client/-/client-3.1.3.tgz", + "integrity": "sha512-s6hzTPxfWtNePOs+q/aOjMmBv97d+Yi7zvWO6BU0auCG0XpEL0Q1JXgYzBeTsjvCUDw+4ojJ5BzSlYj94GsBDQ==", "license": "ISC", "dependencies": { - "@diplodoc/latex-extension": "^1.0.2", - "@diplodoc/mermaid-extension": "^1.2.1", + "@diplodoc/latex-extension": "^1.3.1", + "@diplodoc/mermaid-extension": "^1.3.1", "@diplodoc/transform": "^4.31.3", "@gravity-ui/icons": "^2.11.0", "url": "^0.11.0" @@ -1792,9 +1792,9 @@ } }, "node_modules/@diplodoc/latex-extension": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@diplodoc/latex-extension/-/latex-extension-1.2.0.tgz", - "integrity": "sha512-Xv/tOKXG+uEukZN4MTmNLpXUNwOEyF+8PU9VPh5rM/zGRuf/L7rWAGa0fvTbQofSgoDib2JwTiB7n0aLBMT7yQ==", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@diplodoc/latex-extension/-/latex-extension-1.3.2.tgz", + "integrity": "sha512-cD/+SW/VYRWQmVXntvjf78/huZ5Sj4OrJDljWCfU+NEGosCeDw4B4NNMePEwy9brwjoPX/kXfe80eK+daTeVfw==", "license": "MIT", "peerDependencies": { "katex": "^0.16.9", diff --git a/package.json b/package.json index 39ca3f83..92c76b61 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "node": ">=18.*" }, "dependencies": { - "@diplodoc/client": "^3.1.2", + "@diplodoc/client": "^3.1.3", "@diplodoc/search-extension": "^1.1.4", "@diplodoc/translation": "^1.4.3", "katex": "^0.16.9", @@ -46,8 +46,8 @@ "devDependencies": { "@aws-sdk/client-s3": "^3.525.0", "@diplodoc/eslint-config": "^2.0.0", - "@diplodoc/latex-extension": "^1.1.0", - "@diplodoc/mermaid-extension": "^1.2.1", + "@diplodoc/latex-extension": "^1.3.2", + "@diplodoc/mermaid-extension": "^1.3.1", "@diplodoc/openapi-extension": "^2.4.0", "@diplodoc/prettier-config": "^2.0.0", "@diplodoc/transform": "^4.32.2", diff --git a/src/services/search.ts b/src/services/search.ts index 9ee5ba3a..4a7832f6 100644 --- a/src/services/search.ts +++ b/src/services/search.ts @@ -58,6 +58,7 @@ async function release() { } if (isLocalSearchEnabled()) { + mkdirSync(bundleDir(), {recursive: true}); copyFileSync(apiPath, apiLink()); }