diff --git a/config/dependencies.yaml b/config/dependencies.yaml index 73068446d29..ea7b3018d48 100644 --- a/config/dependencies.yaml +++ b/config/dependencies.yaml @@ -192,7 +192,7 @@ react-pattern: '@freesewing/i18n': *freesewing rehype-jargon: _: - 'unist-util-visit': '^2.0.3' + 'unist-util-visit': '^4.1.0' 'hast-util-from-html': '^1.0.0' remark-jargon: _: diff --git a/packages/rehype-jargon/package.json b/packages/rehype-jargon/package.json index f30eccaac7b..e5ce558baf1 100644 --- a/packages/rehype-jargon/package.json +++ b/packages/rehype-jargon/package.json @@ -32,7 +32,7 @@ }, "peerDependencies": {}, "dependencies": { - "unist-util-visit": "^2.0.3", + "unist-util-visit": "^4.1.0", "hast-util-from-html": "^1.0.0" }, "devDependencies": {}, diff --git a/packages/rehype-jargon/src/index.js b/packages/rehype-jargon/src/index.js index 78df9f89462..004249f7d80 100644 --- a/packages/rehype-jargon/src/index.js +++ b/packages/rehype-jargon/src/index.js @@ -1,4 +1,4 @@ -import visit from 'unist-util-visit' +import { visit } from 'unist-util-visit' import { fromHtml } from 'hast-util-from-html' const jargonTransform = (term, html) => `${term}${html}` diff --git a/sites/shared/prebuild/i18n.mjs b/sites/shared/prebuild/i18n.mjs index 4bdc76c880c..240a290fb5d 100644 --- a/sites/shared/prebuild/i18n.mjs +++ b/sites/shared/prebuild/i18n.mjs @@ -1,5 +1,3 @@ -import path from 'path' -import fs from 'fs' import {build} from '../../../packages/i18n/src/prebuild.mjs' export const prebuildI18n = async(site, only=false) => { diff --git a/yarn.lock b/yarn.lock index 3c246ce0a5f..74cf1660055 100644 --- a/yarn.lock +++ b/yarn.lock @@ -23670,7 +23670,7 @@ unist-util-visit@^1.4.1: dependencies: unist-util-visit-parents "^2.0.0" -unist-util-visit@^2.0.0, unist-util-visit@^2.0.3: +unist-util-visit@^2.0.0: version "2.0.3" resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-2.0.3.tgz#c3703893146df47203bb8a9795af47d7b971208c" integrity sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==