prettier-plugin-embed 0.4.15 → 0.5.1

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
@@ -62,9 +62,7 @@ export declare const options: {
62
62
  readonly type: "string";
63
63
  readonly array: true;
64
64
  readonly default: [{
65
- readonly value: []; /**
66
- * @deprecated Please use `embedded<Language>Comments` or `embedded<Language>Tags` to configure each embedded language, and you won't need this option anymore.
67
- */
65
+ readonly value: [];
68
66
  }];
69
67
  readonly description: "Tag or comment identifiers that prevent their subsequent template literals from being identified as embedded languages and thus from being formatted.";
70
68
  readonly deprecated: "Please use `embeddedNoopComments` or `embeddedNoopTags`.";
@@ -453,9 +451,7 @@ export declare const options: {
453
451
  readonly value: ["nginx"];
454
452
  }];
455
453
  readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded NGINX language. This option requires the `prettier-plugin-nginx` plugin.";
456
- readonly deprecated: "Please use `embeddedNginxComments` or `embeddedNginxTags`."; /**
457
- * @deprecated Please use `embedded<Language>Comments` or `embedded<Language>Tags` to configure each embedded language, and you won't need this option anymore.
458
- */
454
+ readonly deprecated: "Please use `embeddedNginxComments` or `embeddedNginxTags`.";
459
455
  };
460
456
  readonly embeddedNginxComments: {
461
457
  readonly category: "Embed";
@@ -700,9 +696,7 @@ export declare const options: {
700
696
  }];
701
697
  readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Shell language. This option requires the `prettier-plugin-sh` plugin.";
702
698
  readonly deprecated: "Please use `embeddedShComments` or `embeddedShTags`.";
703
- }; /**
704
- * @deprecated Please use `embedded<Language>Comments` or `embedded<Language>Tags` to configure each embedded language, and you won't need this option anymore.
705
- */
699
+ };
706
700
  readonly embeddedShComments: {
707
701
  readonly category: "Embed";
708
702
  readonly type: "string";
@@ -765,7 +759,7 @@ export declare const options: {
765
759
  default: "sqlite";
766
760
  description: string;
767
761
  choices: {
768
- value: "bigquery" | "mariadb" | "mysql" | "postgresql" | "sqlite";
762
+ value: "sqlite" | "bigquery" | "mysql" | "mariadb" | "postgresql";
769
763
  description: string;
770
764
  }[];
771
765
  };
package/dist/parsers.d.ts CHANGED
@@ -1,22 +1,22 @@
1
1
  export declare const parsers: {
2
- embeddedXml: import("prettier").Parser<any>;
3
- meriyah: import("prettier").Parser<any>;
4
- typescript: import("prettier").Parser<any>;
5
- flow: import("prettier").Parser<any>;
6
- acorn: import("prettier").Parser<any>;
7
- espree: import("prettier").Parser<any>;
8
- babel: import("prettier").Parser<any>;
9
- "babel-flow": import("prettier").Parser<any>;
10
- "babel-ts": import("prettier").Parser<any>;
11
- __js_expression: import("prettier").Parser<any>;
12
- __ts_expression: import("prettier").Parser<any>;
13
- __vue_expression: import("prettier").Parser<any>;
14
- __vue_ts_expression: import("prettier").Parser<any>;
15
- __vue_event_binding: import("prettier").Parser<any>;
16
- __vue_ts_event_binding: import("prettier").Parser<any>;
17
- __babel_estree: import("prettier").Parser<any>;
18
- json: import("prettier").Parser<any>;
19
- json5: import("prettier").Parser<any>;
20
- jsonc: import("prettier").Parser<any>;
21
- "json-stringify": import("prettier").Parser<any>;
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_estree: import("prettier").Parser;
9
+ __js_expression: import("prettier").Parser;
10
+ __ts_expression: import("prettier").Parser;
11
+ __vue_event_binding: import("prettier").Parser;
12
+ __vue_expression: import("prettier").Parser;
13
+ __vue_ts_event_binding: import("prettier").Parser;
14
+ __vue_ts_expression: import("prettier").Parser;
15
+ babel: import("prettier").Parser;
16
+ "babel-flow": import("prettier").Parser;
17
+ "babel-ts": import("prettier").Parser;
18
+ json: import("prettier").Parser;
19
+ "json-stringify": import("prettier").Parser;
20
+ json5: import("prettier").Parser;
21
+ jsonc: import("prettier").Parser;
22
22
  };
package/dist/types.d.ts CHANGED
@@ -2,7 +2,7 @@ import type { TemplateLiteral } from "estree";
2
2
  import type { AstPath, Doc, Options } from "prettier";
3
3
  import type { printer } from "prettier/doc";
4
4
  import type { OmitIndexSignature } from "type-fest";
5
- import type { AutocompleteStringList, EmbeddedDefaultComment, EmbeddedDefaultTag, EmbeddedLanguage, PluginEmbedOptions, makeCommentsOptionName, makeIdentifiersOptionName, makeTagsOptionName } from "./embedded/index.js";
5
+ import type { AutocompleteStringList, EmbeddedDefaultComment, EmbeddedDefaultTag, EmbeddedLanguage, makeCommentsOptionName, makeIdentifiersOptionName, makeTagsOptionName, PluginEmbedOptions } from "./embedded/index.js";
6
6
  import type { PluginEmbedLanguageAgnosticOptions } from "./options.js";
7
7
  export type InternalPrintFun = (selector?: string | number | (string | number)[] | AstPath<TemplateLiteral>) => Doc;
8
8
  export interface EmbedderPayload {
package/dist/utils.d.ts CHANGED
@@ -1,128 +1,12 @@
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
+ import type { EmbeddedOverride } from "./types.js";
4
5
  export declare function resolveEmbeddedOverrideOptions(embeddedOverridesString: string | undefined, { commentOrTag, kind, filepath, }: {
5
6
  commentOrTag: EmbeddedComment | EmbeddedTag;
6
7
  kind: "comment" | "tag";
7
8
  filepath?: string;
8
- }): Promise<{
9
- embeddedCssParser?: "css" | "less" | "scss" | undefined;
10
- embeddedEsParser?: "babel" | "babel-flow" | "acorn" | "espree" | "flow" | "meriyah" | undefined;
11
- embeddedHtmlParser?: "html" | "vue" | "angular" | "lwc" | undefined;
12
- embeddedJsonParser?: "json" | "json5" | "jsonc" | "json-stringify" | undefined;
13
- embeddedMarkdownParser?: "markdown" | "mdx" | "remark" | undefined;
14
- embeddedTsParser?: "typescript" | "babel-ts" | undefined;
15
- embeddedRubyParser?: "ruby" | "rbs" | "haml" | 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
- bracketSameLine?: boolean | undefined;
24
- rangeStart?: number | undefined;
25
- rangeEnd?: number | undefined;
26
- requirePragma?: boolean | undefined;
27
- insertPragma?: boolean | undefined;
28
- proseWrap?: "preserve" | "always" | "never" | undefined;
29
- arrowParens?: "always" | "avoid" | undefined;
30
- plugins?: (string | import("prettier").Plugin<any>)[] | undefined;
31
- htmlWhitespaceSensitivity?: "css" | "strict" | "ignore" | undefined;
32
- quoteProps?: "preserve" | "as-needed" | "consistent" | undefined;
33
- vueIndentScriptAndStyle?: boolean | undefined;
34
- singleAttributePerLine?: boolean | undefined;
35
- experimentalTernaries?: boolean | undefined;
36
- jsxBracketSameLine?: boolean | undefined;
37
- alignDirectives?: boolean | undefined;
38
- alignUniversally?: boolean | undefined;
39
- wrapParameters?: boolean | undefined;
40
- continuationIndent?: number | undefined;
41
- locStart?: ((node: any) => number) | undefined;
42
- locEnd?: ((node: any) => number) | undefined;
43
- originalText?: string | undefined;
44
- keepComments?: boolean | undefined;
45
- stopAt?: string | undefined;
46
- variant?: import("sh-syntax").LangVariant | undefined;
47
- indent?: number | undefined;
48
- binaryNextLine?: boolean | undefined;
49
- switchCaseIndent?: boolean | undefined;
50
- spaceRedirects?: boolean | undefined;
51
- keepPadding?: boolean | undefined;
52
- minify?: boolean | undefined;
53
- functionNextLine?: boolean | undefined;
54
- experimentalWasm?: boolean | undefined;
55
- sqlKeywordCase?: "preserve" | "upper" | "lower" | undefined;
56
- sqlParamTypes?: import("sql-parser-cst/lib/ParserOptions.js").ParamType[] | undefined;
57
- sqlCanonicalSyntax?: boolean | undefined;
58
- keywordCase?: import("sql-formatter").KeywordCase | undefined;
59
- identifierCase?: import("sql-formatter").KeywordCase | undefined;
60
- dataTypeCase?: import("sql-formatter").KeywordCase | undefined;
61
- functionCase?: import("sql-formatter").KeywordCase | undefined;
62
- indentStyle?: import("sql-formatter").IndentStyle | undefined;
63
- logicalOperatorNewline?: import("sql-formatter").LogicalOperatorNewline | undefined;
64
- expressionWidth?: number | undefined;
65
- linesBetweenQueries?: number | undefined;
66
- denseOperators?: boolean | undefined;
67
- newlineBeforeSemicolon?: boolean | undefined;
68
- params?: ((import("sql-formatter").ParamItems | string[]) & string) | undefined;
69
- paramTypes?: (import("sql-formatter").ParamTypes & string) | undefined;
70
- dialect?: string | undefined;
71
- language?: "bigquery" | "db2" | "db2i" | "hive" | "mariadb" | "mysql" | "n1ql" | "plsql" | "postgresql" | "redshift" | "singlestoredb" | "snowflake" | "spark" | "sql" | "sqlite" | "transactsql" | "trino" | "tsql" | undefined;
72
- database?: string | undefined;
73
- type?: string | undefined;
74
- formatter?: "node-sql-parser" | "sql-cst" | "sql-formatter" | undefined;
75
- alignEntries?: boolean | undefined;
76
- alignComments?: boolean | undefined;
77
- arrayAutoExpand?: boolean | undefined;
78
- arrayAutoCollapse?: boolean | undefined;
79
- compactArrays?: boolean | undefined;
80
- compactInlineTables?: boolean | undefined;
81
- compactEntries?: boolean | undefined;
82
- indentTables?: boolean | undefined;
83
- indentEntries?: boolean | undefined;
84
- reorderKeys?: boolean | undefined;
85
- allowedBlankLines?: number | undefined;
86
- iniSpaceAroundEquals?: boolean | undefined;
87
- 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;
88
- actionParser?: "typescript" | "babel" | "babel-flow" | "acorn" | "espree" | "flow" | "meriyah" | "babel-ts" | undefined;
89
- 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;
90
- trailingCommaPHP?: boolean | undefined;
91
- braceStyle?: "psr-2" | "per-cs" | "1tbs" | undefined;
92
- escapeNonLatin1?: boolean | undefined;
93
- keySeparator?: ":" | " " | "=" | ": " | "= " | " : " | " = " | undefined;
94
- pugPrintWidth?: number | undefined;
95
- pugSingleQuote?: boolean | undefined;
96
- pugTabWidth?: number | undefined;
97
- pugUseTabs?: boolean | undefined;
98
- pugBracketSpacing?: boolean | undefined;
99
- pugArrowParens?: "always" | "avoid" | undefined;
100
- pugSemi?: boolean | undefined;
101
- pugBracketSameLine?: boolean | undefined;
102
- pugAttributeSeparator?: "none" | "always" | "as-needed" | undefined;
103
- pugCommentPreserveSpaces?: "keep-all" | "keep-leading" | "trim-all" | undefined;
104
- pugSortAttributes?: "asc" | "desc" | "as-is" | undefined;
105
- pugSortAttributesBeginning?: string[] | undefined;
106
- pugSortAttributesEnd?: string[] | undefined;
107
- pugWrapAttributesThreshold?: number | undefined;
108
- pugWrapAttributesPattern?: string | undefined;
109
- pugClassLocation?: "before-attributes" | "after-attributes" | undefined;
110
- pugClassNotation?: "literal" | "as-is" | "attribute" | undefined;
111
- pugIdNotation?: "literal" | "as-is" | undefined;
112
- pugEmptyAttributes?: "none" | "all" | "as-is" | undefined;
113
- pugEmptyAttributesForceQuotes?: "none" | "all" | "as-is" | undefined;
114
- pugSingleFileComponentIndentation?: boolean | undefined;
115
- pugFramework?: "vue" | "angular" | "auto" | "svelte" | undefined;
116
- pugExplicitDiv?: boolean | undefined;
117
- pugPreserveAttributeBrackets?: boolean | undefined;
118
- rubyPlugins?: import("./embedded/utils.js").AutocompleteStringList<"plugin/single_quotes" | "plugin/trailing_comma" | "plugin/disable_auto_ternary"> | undefined;
119
- rubySingleQuote?: boolean | undefined;
120
- rubyExecutablePath?: string | undefined;
121
- xmlSelfClosingSpace?: boolean | undefined;
122
- xmlWhitespaceSensitivity?: "preserve" | "strict" | "ignore" | undefined;
123
- xmlSortAttributesByKey?: boolean | undefined;
124
- xmlQuoteAttributes?: "preserve" | "single" | "double" | undefined;
125
- } | undefined>;
9
+ }): Promise<EmbeddedOverride["options"] | undefined>;
126
10
  export declare const compareTagExpressionToTagString: (tagExpression: Expression, tagString: string, parse: (text: string) => Node | Promise<Node>) => boolean;
127
11
  export declare function parseCommentFromTemplateLiteralAstPath({ node, parent, }: AstPath<Node> & {
128
12
  node: TemplateLiteral;
package/package.json CHANGED
@@ -2,9 +2,11 @@
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.4.15",
5
+ "version": "0.5.1",
6
6
  "type": "module",
7
- "files": ["./dist"],
7
+ "files": [
8
+ "./dist"
9
+ ],
8
10
  "main": "./dist/index.js",
9
11
  "module": "./dist/index.js",
10
12
  "exports": {
@@ -51,87 +53,78 @@
51
53
  "name": "Ze-Zheng Wu"
52
54
  },
53
55
  "license": "MIT",
54
- "config": {},
55
56
  "publishConfig": {
56
57
  "access": "public"
57
58
  },
59
+ "devDependencies": {
60
+ "@biomejs/biome": "2.3.10",
61
+ "@changesets/cli": "^2.29.8",
62
+ "@commitlint/cli": "^20.2.0",
63
+ "@commitlint/config-conventional": "^20.2.0",
64
+ "@prettier/plugin-php": "^0.24.0",
65
+ "@prettier/plugin-pug": "^3.4.2",
66
+ "@prettier/plugin-ruby": "^4.0.4",
67
+ "@prettier/plugin-xml": "^3.4.2",
68
+ "@stedi/prettier-plugin-jsonata": "^2.1.8",
69
+ "@types/node": "^25.0.3",
70
+ "@vitest/coverage-istanbul": "^4.0.16",
71
+ "@vitest/ui": "^4.0.16",
72
+ "@xml-tools/parser": "^1.0.11",
73
+ "chevrotain": "7.1.1",
74
+ "concurrently": "^9.2.1",
75
+ "copy-files-from-to": "^3.13.0",
76
+ "esbuild": "^0.27.1",
77
+ "lint-staged": "^16.2.7",
78
+ "npm-check-updates": "^19.2.0",
79
+ "prettier": "^3.7.4",
80
+ "prettier-plugin-glsl": "^0.2.2",
81
+ "prettier-plugin-ini": "^1.3.0",
82
+ "prettier-plugin-java": "^2.7.7",
83
+ "prettier-plugin-latex": "^2.0.1",
84
+ "prettier-plugin-nginx": "^1.0.3",
85
+ "prettier-plugin-pegjs": "^2.0.2",
86
+ "prettier-plugin-prisma": "^5.0.0",
87
+ "prettier-plugin-properties": "^0.3.0",
88
+ "prettier-plugin-sh": "^0.18.0",
89
+ "prettier-plugin-sql": "^0.19.2",
90
+ "prettier-plugin-sql-cst": "^0.17.2",
91
+ "prettier-plugin-toml": "^2.0.6",
92
+ "simple-git-hooks": "^2.13.1",
93
+ "tinyglobby": "^0.2.15",
94
+ "tsx": "^4.21.0",
95
+ "typescript": "^5.9.3",
96
+ "vite": "^7.3.0",
97
+ "vitest": "^4.0.16"
98
+ },
99
+ "dependencies": {
100
+ "@types/estree": "^1.0.8",
101
+ "dedent": "^1.7.1",
102
+ "micro-memoize": "^5.1.1",
103
+ "package-up": "^5.0.0",
104
+ "tiny-jsonc": "^1.0.2",
105
+ "type-fest": "^5.3.1"
106
+ },
58
107
  "scripts": {
59
- "install:ci": "npm ci && ./scripts/prepare.sh",
60
108
  "update-hooks": "simple-git-hooks",
61
- "changeset": "changeset",
62
- "bump": "changeset version 2>/dev/null | grep . && npm i; exit 0",
63
- "dev": "vite",
64
109
  "lint": "biome lint .",
65
110
  "type-check": "tsc --noEmit --emitDeclarationOnly false",
66
111
  "format:prettier": "prettier . --write",
67
112
  "format:biome": "biome format . --write",
68
- "format": "conc \"npm:format:prettier\" \"npm:format:biome\"",
69
- "check:biome": "biome check --apply .",
70
- "check": "conc \"npm:format:prettier\" \"npm:check:biome\"",
71
- "prebuild": "npm run check && npm run type-check",
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",
72
117
  "build": "vite build",
73
118
  "add-glob-import-types": "tsx ./scripts/add-glob-import-types.ts",
74
119
  "nocheck-chevrotain-types": "tsx ./scripts/nocheck-chevrotain-types.ts",
75
120
  "copy": "copy-files-from-to",
76
- "postbuild": "tsc --project ./tsconfig.production.json && conc \"npm:add-glob-import-types\" \"npm:nocheck-chevrotain-types\" \"npm:copy\"",
121
+ "postbuild": "tsc --project ./tsconfig.production.json && conc \"pnpm:add-glob-import-types\" \"pnpm:nocheck-chevrotain-types\" \"pnpm:copy\"",
122
+ "test:ci": "vitest --run",
77
123
  "test": "vitest",
78
124
  "test:ui": "vitest --ui",
79
- "preview": "vite preview",
80
125
  "process-readme": "tsx ./scripts/process-readme",
81
126
  "restore-readme": "tsx ./scripts/restore-readme",
82
- "prepublishOnly": "npm run build && npm run process-readme",
83
- "postpublish": "npm run restore-readme",
84
- "ncu": "ncu",
85
- "postncu": "npm i",
86
- "bump-biome:latest": "npm i -DE @biomejs/biome@latest",
87
- "bump-biome:nightly": "npm i -DE @biomejs/biome@nightly"
88
- },
89
- "devDependencies": {
90
- "@biomejs/biome": "1.5.3-nightly.69f9031",
91
- "@changesets/cli": "^2.27.1",
92
- "@commitlint/cli": "^18.6.1",
93
- "@commitlint/config-conventional": "^18.6.2",
94
- "@prettier/plugin-php": "^0.22.1",
95
- "@prettier/plugin-pug": "^3.0.0",
96
- "@prettier/plugin-ruby": "^4.0.4",
97
- "@prettier/plugin-xml": "^3.2.2",
98
- "@stedi/prettier-plugin-jsonata": "^2.1.1",
99
- "@types/node": "^20.11.20",
100
- "@vitest/coverage-istanbul": "^1.3.1",
101
- "@vitest/ui": "^1.3.1",
102
- "@xml-tools/parser": "^1.0.11",
103
- "chevrotain": "7.1.1",
104
- "concurrently": "^8.2.2",
105
- "copy-files-from-to": "^3.9.1",
106
- "esbuild": "^0.20.1",
107
- "fast-glob": "^3.3.2",
108
- "lint-staged": "^15.2.2",
109
- "npm-check-updates": "^16.14.15",
110
- "prettier": "^3.2.4",
111
- "prettier-plugin-glsl": "^0.1.3",
112
- "prettier-plugin-ini": "^1.1.0",
113
- "prettier-plugin-java": "^2.5.0",
114
- "prettier-plugin-latex": "^2.0.1",
115
- "prettier-plugin-nginx": "^1.0.3",
116
- "prettier-plugin-pegjs": "^2.0.2",
117
- "prettier-plugin-prisma": "^5.0.0",
118
- "prettier-plugin-properties": "^0.3.0",
119
- "prettier-plugin-sh": "^0.14.0",
120
- "prettier-plugin-sql": "^0.18.0",
121
- "prettier-plugin-sql-cst": "^0.11.1",
122
- "prettier-plugin-toml": "^2.0.1",
123
- "simple-git-hooks": "^2.9.0",
124
- "tsx": "^4.7.1",
125
- "typescript": "^5.3.3",
126
- "vite": "^5.1.4",
127
- "vitest": "^1.3.1"
128
- },
129
- "dependencies": {
130
- "@types/estree": "^1.0.5",
131
- "dedent": "^1.5.1",
132
- "micro-memoize": "^4.1.2",
133
- "package-up": "^5.0.0",
134
- "tiny-jsonc": "^1.0.1",
135
- "type-fest": "^4.10.3"
127
+ "bump-biome:latest": "pnpm add -DE @biomejs/biome@latest",
128
+ "bump-biome:nightly": "pnpm add -DE @biomejs/biome@nightly"
136
129
  }
137
- }
130
+ }