Skip to content

Commit

Permalink
chore: add fluent editor version (opentiny#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
kagol authored and huanglinhuan committed Dec 17, 2024
1 parent c4d2a7a commit 6aaaa86
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import packageJson from '@opentiny/fluent-editor/package.json'

export function inertDepsVersion() {
if (typeof document === 'undefined') return

Expand All @@ -7,9 +9,11 @@ export function inertDepsVersion() {
npm_package_dependencies_vue: VueVersion,
npm_package_dependencies_quill: QuillVersion,
} = process.env
const FluentEditorVersion = packageJson.version

document.body.setAttribute('data-vite-version', ViteVersion)
document.body.setAttribute('data-vitepress-version', VitePressVersion)
document.body.setAttribute('data-vue-version', VueVersion)
document.body.setAttribute('data-quill-version', QuillVersion)
document.body.setAttribute('data-fluent-editor-version', FluentEditorVersion)
}

0 comments on commit 6aaaa86

Please sign in to comment.