Skip to content

Commit

Permalink
fix(cli/highlight): fix web-types version
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed Oct 26, 2021
1 parent 4389a9b commit 636b408
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/varlet-cli/src/compiler/compileTemplateHighlight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
HL_DIR,
HL_TAGS_JSON,
HL_ATTRIBUTES_JSON,
CLI_PACKAGE_JSON,
} from '../shared/constant'
import { resolve } from 'path'
import { isDir, isMD } from '../shared/fsUtils'
Expand Down Expand Up @@ -164,7 +165,7 @@ export async function compileTemplateHighlight() {
const webTypes: Record<string, any> = {
$schema: 'https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json',
framework: 'vue',
version: '1.0.0',
version: require(CLI_PACKAGE_JSON).version,
name: get(varletConfig, 'title'),
contributions: {
html: {
Expand Down

0 comments on commit 636b408

Please sign in to comment.