prettier-plugin-embed 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/options.d.ts CHANGED
@@ -157,7 +157,7 @@ export declare const options: {
157
157
  default: "babel";
158
158
  description: string;
159
159
  choices: {
160
- value: "babel" | "babel-flow" | "acorn" | "espree" | "flow" | "meriyah";
160
+ value: "acorn" | "babel" | "babel-flow" | "espree" | "flow" | "meriyah";
161
161
  description: string;
162
162
  }[];
163
163
  };
@@ -251,7 +251,7 @@ export declare const options: {
251
251
  default: "html";
252
252
  description: string;
253
253
  choices: {
254
- value: "html" | "vue" | "angular" | "lwc";
254
+ value: "angular" | "html" | "lwc" | "vue";
255
255
  description: string;
256
256
  }[];
257
257
  };
@@ -345,7 +345,7 @@ export declare const options: {
345
345
  default: "json";
346
346
  description: string;
347
347
  choices: {
348
- value: "json" | "json5" | "jsonc" | "json-stringify";
348
+ value: "json" | "json-stringify" | "json5" | "jsonc";
349
349
  description: string;
350
350
  }[];
351
351
  };
@@ -533,7 +533,7 @@ export declare const options: {
533
533
  default: "typescript";
534
534
  description: string;
535
535
  choices: {
536
- value: "typescript" | "babel-ts";
536
+ value: "babel-ts" | "typescript";
537
537
  description: string;
538
538
  }[];
539
539
  };
@@ -683,7 +683,7 @@ export declare const options: {
683
683
  default: "ruby";
684
684
  description: string;
685
685
  choices: {
686
- value: "ruby" | "rbs" | "haml";
686
+ value: "haml" | "rbs" | "ruby";
687
687
  description: string;
688
688
  }[];
689
689
  };
package/dist/parsers.d.ts CHANGED
@@ -1,22 +1,22 @@
1
1
  export declare const parsers: {
2
- embeddedXml: import("prettier").Parser;
3
- meriyah: import("prettier").Parser;
4
- typescript: import("prettier").Parser;
5
- flow: import("prettier").Parser;
6
- acorn: import("prettier").Parser;
7
- espree: import("prettier").Parser;
8
- babel: import("prettier").Parser;
9
- "babel-flow": import("prettier").Parser;
10
- "babel-ts": import("prettier").Parser;
2
+ __babel_estree: import("prettier").Parser;
11
3
  __js_expression: import("prettier").Parser;
12
4
  __ts_expression: import("prettier").Parser;
13
- __vue_expression: import("prettier").Parser;
14
- __vue_ts_expression: import("prettier").Parser;
15
5
  __vue_event_binding: import("prettier").Parser;
6
+ __vue_expression: import("prettier").Parser;
16
7
  __vue_ts_event_binding: import("prettier").Parser;
17
- __babel_estree: import("prettier").Parser;
8
+ __vue_ts_expression: import("prettier").Parser;
9
+ babel: import("prettier").Parser;
10
+ "babel-flow": import("prettier").Parser;
11
+ "babel-ts": import("prettier").Parser;
18
12
  json: import("prettier").Parser;
13
+ "json-stringify": import("prettier").Parser;
19
14
  json5: import("prettier").Parser;
20
15
  jsonc: import("prettier").Parser;
21
- "json-stringify": import("prettier").Parser;
16
+ acorn: import("prettier").Parser;
17
+ espree: import("prettier").Parser;
18
+ flow: import("prettier").Parser;
19
+ meriyah: import("prettier").Parser;
20
+ typescript: import("prettier").Parser;
21
+ embeddedXml: import("prettier").Parser;
22
22
  };
@@ -0,0 +1,5 @@
1
+ export type LiteralUnion<LiteralType, BaseType extends string> = LiteralType | (BaseType & Record<never, never>);
2
+ export type OmitIndexSignature<T> = {
3
+ [K in keyof T as Record<never, never> extends Record<K, unknown> ? never : K]: T[K];
4
+ };
5
+ export type UnionToIntersection<T> = (T extends unknown ? (value: T) => void : never) extends (value: infer Intersection) => void ? Intersection & T : never;
package/dist/types.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import type { TemplateLiteral } from "estree";
2
2
  import type { AstPath, Doc, Options } from "prettier";
3
3
  import type { printer } from "prettier/doc";
4
- import type { OmitIndexSignature } from "type-fest";
5
- import type { AutocompleteStringList, EmbeddedDefaultComment, EmbeddedDefaultTag, EmbeddedLanguage, PluginEmbedOptions, makeCommentsOptionName, makeIdentifiersOptionName, makeTagsOptionName } from "./embedded/index.js";
4
+ import type { AutocompleteStringList, EmbeddedDefaultComment, EmbeddedDefaultTag, EmbeddedLanguage, makeCommentsOptionName, makeIdentifiersOptionName, makeTagsOptionName, PluginEmbedOptions } from "./embedded/index.js";
6
5
  import type { PluginEmbedLanguageAgnosticOptions } from "./options.js";
6
+ import type { OmitIndexSignature } from "./type-utils.js";
7
7
  export type InternalPrintFun = (selector?: string | number | (string | number)[] | AstPath<TemplateLiteral>) => Doc;
8
8
  export interface EmbedderPayload {
9
9
  commentOrTag: string;
package/dist/utils.d.ts CHANGED
@@ -1,138 +1,19 @@
1
1
  import type { Expression, Node, TemplateLiteral } from "estree";
2
2
  import { type AstPath, type Options, type Printer } from "prettier";
3
3
  import { type EmbeddedComment, type EmbeddedLanguage, type EmbeddedTag } from "./embedded/index.js";
4
- export declare function resolveEmbeddedOverrideOptions(embeddedOverridesString: string | undefined, { commentOrTag, kind, filepath, }: {
4
+ import type { EmbeddedOverride } from "./types.js";
5
+ export declare function resolveEmbeddedOverrideOptions(options: Options, { commentOrTag, kind, }: {
5
6
  commentOrTag: EmbeddedComment | EmbeddedTag;
6
7
  kind: "comment" | "tag";
7
- filepath?: string;
8
- }): Promise<{
9
- embeddedCssParser?: ("css" | "less" | "scss") | undefined;
10
- embeddedEsParser?: import("./embedded/es/options.js").EsParser | undefined;
11
- embeddedHtmlParser?: ("html" | "vue" | "angular" | "lwc") | undefined;
12
- embeddedJsonParser?: ("json" | "json5" | "jsonc" | "json-stringify") | undefined;
13
- embeddedMarkdownParser?: ("markdown" | "mdx" | "remark") | undefined;
14
- embeddedTsParser?: import("./embedded/ts/options.js").TsParser | undefined;
15
- embeddedRubyParser?: import("./embedded/ruby/options.js").RubyParser | undefined;
16
- embeddedSqlPlugin?: ("prettier-plugin-sql" | "prettier-plugin-sql-cst") | undefined;
17
- embeddedSqlParser?: ("bigquery" | "mariadb" | "mysql" | "postgresql" | "sqlite") | undefined;
18
- semi?: boolean | undefined;
19
- singleQuote?: boolean | undefined;
20
- jsxSingleQuote?: boolean | undefined;
21
- trailingComma?: "none" | "es5" | "all" | undefined;
22
- bracketSpacing?: boolean | undefined;
23
- objectWrap?: "preserve" | "collapse" | undefined;
24
- bracketSameLine?: boolean | undefined;
25
- rangeStart?: number | undefined;
26
- rangeEnd?: number | undefined;
27
- requirePragma?: boolean | undefined;
28
- insertPragma?: boolean | undefined;
29
- proseWrap?: "preserve" | "always" | "never" | undefined;
30
- arrowParens?: "always" | "avoid" | undefined;
31
- plugins?: (string | import("prettier").Plugin<any>)[] | undefined;
32
- htmlWhitespaceSensitivity?: "css" | "strict" | "ignore" | undefined;
33
- quoteProps?: "preserve" | "as-needed" | "consistent" | undefined;
34
- vueIndentScriptAndStyle?: boolean | undefined;
35
- singleAttributePerLine?: boolean | undefined;
36
- experimentalOperatorPosition?: "start" | "end" | undefined;
37
- experimentalTernaries?: boolean | undefined;
38
- jsxBracketSameLine?: boolean | undefined;
39
- alignDirectives?: boolean | undefined;
40
- alignUniversally?: boolean | undefined;
41
- wrapParameters?: boolean | undefined;
42
- continuationIndent?: number | undefined;
43
- locStart?: ((node: any) => number) | undefined;
44
- locEnd?: ((node: any) => number) | undefined;
45
- originalText?: string | undefined;
46
- keepComments?: boolean | undefined;
47
- stopAt?: string | undefined;
48
- variant?: import("sh-syntax").LangVariant | undefined;
49
- indent?: number | undefined;
50
- binaryNextLine?: boolean | undefined;
51
- switchCaseIndent?: boolean | undefined;
52
- spaceRedirects?: boolean | undefined;
53
- keepPadding?: boolean | undefined;
54
- minify?: boolean | undefined;
55
- functionNextLine?: boolean | undefined;
56
- experimentalWasm?: boolean | undefined;
57
- sqlKeywordCase?: "preserve" | "upper" | "lower" | undefined;
58
- sqlParamTypes?: import("sql-parser-cst/lib/ParserOptions.js").ParamType[] | undefined;
59
- sqlCanonicalSyntax?: boolean | undefined;
60
- sqlAcceptUnsupportedGrammar?: boolean | undefined;
61
- keywordCase?: import("sql-formatter").KeywordCase | undefined;
62
- identifierCase?: import("sql-formatter").KeywordCase | undefined;
63
- dataTypeCase?: import("sql-formatter").KeywordCase | undefined;
64
- functionCase?: import("sql-formatter").KeywordCase | undefined;
65
- indentStyle?: import("sql-formatter").IndentStyle | undefined;
66
- logicalOperatorNewline?: import("sql-formatter").LogicalOperatorNewline | undefined;
67
- expressionWidth?: number | undefined;
68
- linesBetweenQueries?: number | undefined;
69
- denseOperators?: boolean | undefined;
70
- newlineBeforeSemicolon?: boolean | undefined;
71
- params?: ((import("sql-formatter").ParamItems | string[]) & string) | undefined;
72
- paramTypes?: (import("sql-formatter").ParamTypes & string) | undefined;
73
- dialect?: string | undefined;
74
- language?: import("sql-formatter").SqlLanguage | undefined;
75
- database?: string | undefined;
76
- type?: string | undefined;
77
- formatter?: ("node-sql-parser" | "sql-cst" | "sql-formatter") | undefined;
78
- alignEntries?: boolean | undefined;
79
- alignComments?: boolean | undefined;
80
- arrayAutoExpand?: boolean | undefined;
81
- arrayAutoCollapse?: boolean | undefined;
82
- compactArrays?: boolean | undefined;
83
- compactInlineTables?: boolean | undefined;
84
- compactEntries?: boolean | undefined;
85
- indentTables?: boolean | undefined;
86
- indentEntries?: boolean | undefined;
87
- reorderKeys?: boolean | undefined;
88
- allowedBlankLines?: number | undefined;
89
- iniSpaceAroundEquals?: boolean | undefined;
90
- entrypoint?: "arrayInitializer" | "variableInitializerList" | "block" | "blockStatements" | "blockStatement" | "localVariableDeclarationStatement" | "localVariableDeclaration" | "localVariableType" | "statement" | "statementWithoutTrailingSubstatement" | "emptyStatement" | "labeledStatement" | "expressionStatement" | "statementExpression" | "ifStatement" | "assertStatement" | "switchStatement" | "switchBlock" | "switchBlockStatementGroup" | "switchLabel" | "switchRule" | "caseConstant" | "whileStatement" | "doStatement" | "forStatement" | "basicForStatement" | "forInit" | "forUpdate" | "statementExpressionList" | "enhancedForStatement" | "breakStatement" | "continueStatement" | "returnStatement" | "throwStatement" | "synchronizedStatement" | "tryStatement" | "catches" | "catchClause" | "catchFormalParameter" | "catchType" | "finally" | "tryWithResourcesStatement" | "resourceSpecification" | "resourceList" | "resource" | "yieldStatement" | "variableAccess" | "classDeclaration" | "normalClassDeclaration" | "classModifier" | "typeParameters" | "typeParameterList" | "superclass" | "superinterfaces" | "interfaceTypeList" | "classPermits" | "classBody" | "classBodyDeclaration" | "classMemberDeclaration" | "fieldDeclaration" | "fieldModifier" | "variableDeclaratorList" | "variableDeclarator" | "variableDeclaratorId" | "variableInitializer" | "unannType" | "unannPrimitiveTypeWithOptionalDimsSuffix" | "unannPrimitiveType" | "unannReferenceType" | "unannClassOrInterfaceType" | "unannClassType" | "unannInterfaceType" | "unannTypeVariable" | "methodDeclaration" | "methodModifier" | "methodHeader" | "result" | "methodDeclarator" | "receiverParameter" | "formalParameterList" | "formalParameter" | "variableParaRegularParameter" | "variableArityParameter" | "variableModifier" | "throws" | "exceptionTypeList" | "exceptionType" | "methodBody" | "instanceInitializer" | "staticInitializer" | "constructorDeclaration" | "constructorModifier" | "constructorDeclarator" | "simpleTypeName" | "constructorBody" | "explicitConstructorInvocation" | "unqualifiedExplicitConstructorInvocation" | "qualifiedExplicitConstructorInvocation" | "enumDeclaration" | "enumBody" | "enumConstantList" | "enumConstant" | "enumConstantModifier" | "enumBodyDeclarations" | "recordDeclaration" | "recordHeader" | "recordComponentList" | "recordComponent" | "variableArityRecordComponent" | "recordComponentModifier" | "recordBody" | "recordBodyDeclaration" | "compactConstructorDeclaration" | "isDims" | "expression" | "lambdaExpression" | "lambdaParameters" | "lambdaParametersWithBraces" | "lambdaParameterList" | "inferredLambdaParameterList" | "explicitLambdaParameterList" | "lambdaParameter" | "regularLambdaParameter" | "lambdaParameterType" | "lambdaBody" | "ternaryExpression" | "binaryExpression" | "unaryExpression" | "unaryExpressionNotPlusMinus" | "primary" | "primaryPrefix" | "primarySuffix" | "fqnOrRefType" | "fqnOrRefTypePartRest" | "fqnOrRefTypePartCommon" | "fqnOrRefTypePartFirst" | "parenthesisExpression" | "castExpression" | "primitiveCastExpression" | "referenceTypeCastExpression" | "newExpression" | "unqualifiedClassInstanceCreationExpression" | "classOrInterfaceTypeToInstantiate" | "typeArgumentsOrDiamond" | "diamond" | "methodInvocationSuffix" | "argumentList" | "arrayCreationExpression" | "arrayCreationDefaultInitSuffix" | "arrayCreationExplicitInitSuffix" | "dimExprs" | "dimExpr" | "classLiteralSuffix" | "arrayAccessSuffix" | "methodReferenceSuffix" | "pattern" | "typePattern" | "recordPattern" | "componentPatternList" | "componentPattern" | "unnamedPattern" | "guard" | "isRefTypeInMethodRef" | "interfaceDeclaration" | "normalInterfaceDeclaration" | "interfaceModifier" | "extendsInterfaces" | "interfacePermits" | "interfaceBody" | "interfaceMemberDeclaration" | "constantDeclaration" | "constantModifier" | "interfaceMethodDeclaration" | "interfaceMethodModifier" | "annotationTypeDeclaration" | "annotationTypeBody" | "annotationTypeMemberDeclaration" | "annotationTypeElementDeclaration" | "annotationTypeElementModifier" | "defaultValue" | "annotation" | "elementValuePairList" | "elementValuePair" | "elementValue" | "elementValueArrayInitializer" | "elementValueList" | "literal" | "integerLiteral" | "floatingPointLiteral" | "booleanLiteral" | "moduleName" | "packageName" | "typeName" | "expressionName" | "methodName" | "packageOrTypeName" | "ambiguousName" | "compilationUnit" | "ordinaryCompilationUnit" | "modularCompilationUnit" | "packageDeclaration" | "packageModifier" | "importDeclaration" | "typeDeclaration" | "moduleDeclaration" | "moduleDirective" | "requiresModuleDirective" | "exportsModuleDirective" | "opensModuleDirective" | "usesModuleDirective" | "providesModuleDirective" | "requiresModifier" | "primitiveType" | "numericType" | "integralType" | "floatingPointType" | "referenceType" | "classOrInterfaceType" | "classType" | "interfaceType" | "typeVariable" | "dims" | "typeParameter" | "typeParameterModifier" | "typeBound" | "additionalBound" | "typeArguments" | "typeArgumentList" | "typeArgument" | "wildcard" | "wildcardBounds" | undefined;
91
- actionParser?: (import("./embedded/es/options.js").EsParser | import("./embedded/ts/options.js").TsParser) | undefined;
92
- phpVersion?: "5.0" | "5.1" | "5.2" | "5.3" | "5.4" | "5.5" | "5.6" | "7.0" | "7.1" | "7.2" | "7.3" | "7.4" | "8.0" | "8.1" | "8.2" | undefined;
93
- trailingCommaPHP?: boolean | undefined;
94
- braceStyle?: "psr-2" | "per-cs" | "1tbs" | undefined;
95
- escapeNonLatin1?: boolean | undefined;
96
- keySeparator?: " " | ":" | "=" | ": " | "= " | " : " | " = " | undefined;
97
- pugPrintWidth?: number | undefined;
98
- pugSingleQuote?: boolean | undefined;
99
- pugTabWidth?: number | undefined;
100
- pugUseTabs?: boolean | undefined;
101
- pugBracketSpacing?: boolean | undefined;
102
- pugArrowParens?: "avoid" | "always" | undefined;
103
- pugSemi?: boolean | undefined;
104
- pugBracketSameLine?: boolean | undefined;
105
- pugAttributeSeparator?: "always" | "as-needed" | "none" | undefined;
106
- pugCommentPreserveSpaces?: "keep-all" | "keep-leading" | "trim-all" | undefined;
107
- pugSortAttributes?: "asc" | "desc" | "as-is" | undefined;
108
- pugSortAttributesBeginning?: string[] | undefined;
109
- pugSortAttributesEnd?: string[] | undefined;
110
- pugWrapAttributesThreshold?: number | undefined;
111
- pugWrapAttributesPattern?: string | undefined;
112
- pugClassLocation?: "before-attributes" | "after-attributes" | undefined;
113
- pugClassNotation?: "literal" | "attribute" | "as-is" | undefined;
114
- pugIdNotation?: "literal" | "as-is" | undefined;
115
- pugEmptyAttributes?: "as-is" | "none" | "all" | undefined;
116
- pugEmptyAttributesForceQuotes?: "as-is" | "none" | "all" | undefined;
117
- pugSingleFileComponentIndentation?: boolean | undefined;
118
- pugFramework?: "auto" | "vue" | "svelte" | "angular" | undefined;
119
- pugExplicitDiv?: boolean | undefined;
120
- pugPreserveAttributeBrackets?: boolean | undefined;
121
- rubyPlugins?: import("./embedded/utils.js").AutocompleteStringList<"plugin/single_quotes" | "plugin/trailing_comma" | "plugin/disable_auto_ternary"> | undefined;
122
- rubySingleQuote?: boolean | undefined;
123
- rubyExecutablePath?: string | undefined;
124
- xmlSelfClosingSpace?: boolean | undefined;
125
- xmlWhitespaceSensitivity?: "strict" | "preserve" | "ignore" | undefined;
126
- xmlSortAttributesByKey?: boolean | undefined;
127
- xmlQuoteAttributes?: "preserve" | "single" | "double" | undefined;
128
- } | undefined>;
8
+ }): Promise<EmbeddedOverride["options"] | undefined>;
9
+ export declare function matchTagExpressionPattern(tagExpression: Expression, pattern: string): boolean;
129
10
  export declare const compareTagExpressionToTagString: (tagExpression: Expression, tagString: string, parse: (text: string) => Node | Promise<Node>) => boolean;
130
11
  export declare function parseCommentFromTemplateLiteralAstPath({ node, parent, }: AstPath<Node> & {
131
12
  node: TemplateLiteral;
132
13
  }): string | undefined;
133
14
  export declare function parseTagFromTemplateLiteralAstPath({ parent, }: AstPath<Node> & {
134
15
  node: TemplateLiteral;
135
- }): string | TemplateLiteral | import("estree").ArrayExpression | import("estree").ArrowFunctionExpression | import("estree").AssignmentExpression | import("estree").AwaitExpression | import("estree").BinaryExpression | import("estree").CallExpression | import("estree").ChainExpression | import("estree").ClassExpression | import("estree").ConditionalExpression | import("estree").FunctionExpression | import("estree").ImportExpression | import("estree").Literal | import("estree").LogicalExpression | import("estree").MemberExpression | import("estree").MetaProperty | import("estree").ObjectExpression | import("estree").SequenceExpression | import("estree").TaggedTemplateExpression | import("estree").ThisExpression | import("estree").UnaryExpression | import("estree").UpdateExpression | import("estree").YieldExpression | undefined;
16
+ }): string | import("estree").ArrayExpression | import("estree").ArrowFunctionExpression | import("estree").AssignmentExpression | import("estree").AwaitExpression | import("estree").BinaryExpression | import("estree").ChainExpression | import("estree").ClassExpression | import("estree").ConditionalExpression | import("estree").FunctionExpression | import("estree").ImportExpression | import("estree").LogicalExpression | import("estree").MemberExpression | import("estree").MetaProperty | import("estree").ObjectExpression | import("estree").SequenceExpression | import("estree").TaggedTemplateExpression | TemplateLiteral | import("estree").ThisExpression | import("estree").UnaryExpression | import("estree").UpdateExpression | import("estree").YieldExpression | import("estree").CallExpression | import("estree").Literal | undefined;
136
17
  export declare function createCommentsInOptionsGenerator(options: Options, comment: string): (_: EmbeddedLanguage) => Generator<string, void, undefined>;
137
18
  export declare function createTagsInOptionsGenerator(options: Options, tag?: string): (_: EmbeddedLanguage) => Generator<string, void, undefined>;
138
19
  export declare function createEmbeddedDoc(node: TemplateLiteral, embeddedLanguage: EmbeddedLanguage, commentOrTag: EmbeddedComment | EmbeddedTag, kind: "comment" | "tag", options: Options): ReturnType<Exclude<Printer["embed"], undefined>>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "prettier-plugin-embed",
3
3
  "description": "A configurable Prettier plugin to format embedded languages in JS/TS files.",
4
4
  "private": false,
5
- "version": "0.5.0",
5
+ "version": "0.6.0",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "./dist"
@@ -57,68 +57,60 @@
57
57
  "access": "public"
58
58
  },
59
59
  "devDependencies": {
60
- "@biomejs/biome": "1.9.4",
61
- "@changesets/cli": "^2.28.1",
62
- "@commitlint/cli": "^19.7.1",
63
- "@commitlint/config-conventional": "^19.7.1",
64
- "@prettier/plugin-php": "^0.22.4",
65
- "@prettier/plugin-pug": "^3.2.1",
60
+ "@biomejs/biome": "2.5.15",
61
+ "@changesets/cli": "^3.0.3",
62
+ "@commitlint/cli": "^21.2.3",
63
+ "@commitlint/config-conventional": "^21.2.3",
64
+ "@prettier/plugin-php": "^0.25.0",
65
+ "@prettier/plugin-pug": "^3.6.0",
66
66
  "@prettier/plugin-ruby": "^4.0.4",
67
- "@prettier/plugin-xml": "^3.4.1",
68
- "@stedi/prettier-plugin-jsonata": "^2.1.3",
69
- "@types/node": "^22.13.5",
70
- "@vitest/coverage-istanbul": "^3.0.6",
71
- "@vitest/ui": "^3.0.6",
72
- "@xml-tools/parser": "^1.0.11",
73
- "chevrotain": "7.1.1",
74
- "concurrently": "^9.1.2",
75
- "copy-files-from-to": "^3.12.1",
76
- "esbuild": "^0.25.0",
77
- "lint-staged": "^15.4.3",
78
- "npm-check-updates": "^17.1.14",
79
- "prettier": "^3.5.2",
80
- "prettier-plugin-glsl": "^0.2.0",
67
+ "@prettier/plugin-xml": "^3.4.2",
68
+ "@stedi/prettier-plugin-jsonata": "^2.1.8",
69
+ "@types/node": "^26.6.5",
70
+ "@vitest/coverage-v8": "5.0.3",
71
+ "@vitest/ui": "^5.0.3",
72
+ "concurrently": "^10.0.6",
73
+ "copy-files-from-to": "^4.0.1",
74
+ "lint-staged": "^17.6.0",
75
+ "npm-check-updates": "^23.1.1",
76
+ "prettier": "^3.9.10",
77
+ "prettier-plugin-glsl": "^0.3.1",
81
78
  "prettier-plugin-ini": "^1.3.0",
82
- "prettier-plugin-java": "^2.6.7",
79
+ "prettier-plugin-java": "^2.11.0",
83
80
  "prettier-plugin-latex": "^2.0.1",
84
- "prettier-plugin-nginx": "^1.0.3",
81
+ "prettier-plugin-nginx": "^2.0.0",
85
82
  "prettier-plugin-pegjs": "^2.0.2",
86
83
  "prettier-plugin-prisma": "^5.0.0",
87
- "prettier-plugin-properties": "^0.3.0",
88
- "prettier-plugin-sh": "^0.15.0",
89
- "prettier-plugin-sql": "^0.18.1",
90
- "prettier-plugin-sql-cst": "^0.12.2",
91
- "prettier-plugin-toml": "^2.0.2",
92
- "simple-git-hooks": "^2.11.1",
93
- "tinyglobby": "^0.2.12",
94
- "tsx": "^4.19.3",
95
- "typescript": "^5.7.3",
96
- "vite": "^6.1.1",
97
- "vitest": "^3.0.6"
84
+ "prettier-plugin-properties": "^0.3.1",
85
+ "prettier-plugin-sh": "^0.20.2",
86
+ "prettier-plugin-sql": "^0.20.0",
87
+ "prettier-plugin-sql-cst": "^0.23.0",
88
+ "prettier-plugin-toml": "^3.0.2",
89
+ "simple-git-hooks": "^2.14.0",
90
+ "tinyglobby": "^0.2.17",
91
+ "tsx": "^4.23.15",
92
+ "typescript": "^7.0.2",
93
+ "vite": "^8.3.4",
94
+ "vitest": "^5.0.3"
98
95
  },
99
96
  "dependencies": {
100
- "@types/estree": "^1.0.6",
101
- "dedent": "^1.5.3",
102
- "micro-memoize": "^4.1.3",
103
- "package-up": "^5.0.0",
104
- "tiny-jsonc": "^1.0.2",
105
- "type-fest": "^4.35.0"
97
+ "@types/estree": "^1.0.9",
98
+ "dedent": "^1.7.2",
99
+ "tiny-jsonc": "^1.0.2"
106
100
  },
107
101
  "scripts": {
108
102
  "update-hooks": "simple-git-hooks",
109
103
  "lint": "biome lint .",
110
104
  "type-check": "tsc --noEmit --emitDeclarationOnly false",
111
- "format:prettier": "prettier . --write",
112
- "format:biome": "biome format . --write",
113
- "format": "conc \"pnpm:format:prettier\" \"pnpm:format:biome\"",
114
- "check:biome": "biome check . --write",
115
- "check": "conc \"pnpm:format:prettier\" \"pnpm:check:biome\"",
116
- "prebuild": "pnpm -s check && pnpm -s type-check",
105
+ "format": "prettier . --write && biome check --write .",
106
+ "check": "prettier . --check && biome check .",
107
+ "prebuild": "pnpm check && pnpm type-check",
117
108
  "build": "vite build",
118
109
  "add-glob-import-types": "tsx ./scripts/add-glob-import-types.ts",
119
- "nocheck-chevrotain-types": "tsx ./scripts/nocheck-chevrotain-types.ts",
120
110
  "copy": "copy-files-from-to",
121
- "postbuild": "tsc --project ./tsconfig.production.json && conc \"pnpm:add-glob-import-types\" \"pnpm:nocheck-chevrotain-types\" \"pnpm:copy\"",
111
+ "postbuild": "tsc --project ./tsconfig.production.json && conc \"pnpm:add-glob-import-types\" \"pnpm:copy\"",
112
+ "test:ci": "vitest --run --pool=threads --coverage",
113
+ "test:consumer": "pnpm build && node ./scripts/test-consumer.mjs",
122
114
  "test": "vitest",
123
115
  "test:ui": "vitest --ui",
124
116
  "process-readme": "tsx ./scripts/process-readme",