prettier-plugin-embed 0.4.14 → 0.5.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/README.md +2 -0
- package/dist/embedded/css/options.d.ts +2 -2
- package/dist/embedded/es/options.d.ts +2 -2
- package/dist/embedded/glsl/options.d.ts +2 -2
- package/dist/embedded/graphql/options.d.ts +2 -2
- package/dist/embedded/html/options.d.ts +2 -2
- package/dist/embedded/index.d.ts +1 -1
- package/dist/embedded/ini/options.d.ts +2 -2
- package/dist/embedded/java/options.d.ts +2 -2
- package/dist/embedded/json/options.d.ts +2 -2
- package/dist/embedded/jsonata/options.d.ts +2 -2
- package/dist/embedded/latex/options.d.ts +2 -2
- package/dist/embedded/markdown/options.d.ts +2 -2
- package/dist/embedded/nginx/options.d.ts +2 -2
- package/dist/embedded/noop/options.d.ts +2 -2
- package/dist/embedded/pegjs/options.d.ts +2 -2
- package/dist/embedded/php/options.d.ts +2 -2
- package/dist/embedded/prisma/options.d.ts +2 -2
- package/dist/embedded/properties/options.d.ts +2 -2
- package/dist/embedded/pug/options.d.ts +2 -2
- package/dist/embedded/register.d.ts +14 -14
- package/dist/embedded/ruby/options.d.ts +2 -2
- package/dist/embedded/sh/options.d.ts +2 -2
- package/dist/embedded/sql/options.d.ts +2 -2
- package/dist/embedded/toml/options.d.ts +2 -2
- package/dist/embedded/ts/options.d.ts +2 -2
- package/dist/embedded/utils.d.ts +1 -0
- package/dist/embedded/xml/options.d.ts +2 -2
- package/dist/embedded/yaml/options.d.ts +2 -2
- package/dist/index.js +1049 -1027
- package/dist/options.d.ts +53 -62
- package/dist/parsers.d.ts +20 -20
- package/dist/utils.d.ts +25 -22
- package/package.json +57 -68
package/dist/utils.d.ts
CHANGED
|
@@ -6,20 +6,21 @@ export declare function resolveEmbeddedOverrideOptions(embeddedOverridesString:
|
|
|
6
6
|
kind: "comment" | "tag";
|
|
7
7
|
filepath?: string;
|
|
8
8
|
}): Promise<{
|
|
9
|
-
embeddedCssParser?: "css" | "less" | "scss" | undefined;
|
|
10
|
-
embeddedEsParser?: "
|
|
11
|
-
embeddedHtmlParser?: "html" | "vue" | "angular" | "lwc" | undefined;
|
|
12
|
-
embeddedJsonParser?: "json" | "json5" | "jsonc" | "json-stringify" | undefined;
|
|
13
|
-
embeddedMarkdownParser?: "markdown" | "mdx" | "remark" | undefined;
|
|
14
|
-
embeddedTsParser?: "
|
|
15
|
-
embeddedRubyParser?: "ruby" |
|
|
16
|
-
embeddedSqlPlugin?: "prettier-plugin-sql" | "prettier-plugin-sql-cst" | undefined;
|
|
17
|
-
embeddedSqlParser?: "bigquery" | "mariadb" | "mysql" | "postgresql" | "sqlite" | undefined;
|
|
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
18
|
semi?: boolean | undefined;
|
|
19
19
|
singleQuote?: boolean | undefined;
|
|
20
20
|
jsxSingleQuote?: boolean | undefined;
|
|
21
21
|
trailingComma?: "none" | "es5" | "all" | undefined;
|
|
22
22
|
bracketSpacing?: boolean | undefined;
|
|
23
|
+
objectWrap?: "preserve" | "collapse" | undefined;
|
|
23
24
|
bracketSameLine?: boolean | undefined;
|
|
24
25
|
rangeStart?: number | undefined;
|
|
25
26
|
rangeEnd?: number | undefined;
|
|
@@ -32,6 +33,7 @@ export declare function resolveEmbeddedOverrideOptions(embeddedOverridesString:
|
|
|
32
33
|
quoteProps?: "preserve" | "as-needed" | "consistent" | undefined;
|
|
33
34
|
vueIndentScriptAndStyle?: boolean | undefined;
|
|
34
35
|
singleAttributePerLine?: boolean | undefined;
|
|
36
|
+
experimentalOperatorPosition?: "start" | "end" | undefined;
|
|
35
37
|
experimentalTernaries?: boolean | undefined;
|
|
36
38
|
jsxBracketSameLine?: boolean | undefined;
|
|
37
39
|
alignDirectives?: boolean | undefined;
|
|
@@ -55,6 +57,7 @@ export declare function resolveEmbeddedOverrideOptions(embeddedOverridesString:
|
|
|
55
57
|
sqlKeywordCase?: "preserve" | "upper" | "lower" | undefined;
|
|
56
58
|
sqlParamTypes?: import("sql-parser-cst/lib/ParserOptions.js").ParamType[] | undefined;
|
|
57
59
|
sqlCanonicalSyntax?: boolean | undefined;
|
|
60
|
+
sqlAcceptUnsupportedGrammar?: boolean | undefined;
|
|
58
61
|
keywordCase?: import("sql-formatter").KeywordCase | undefined;
|
|
59
62
|
identifierCase?: import("sql-formatter").KeywordCase | undefined;
|
|
60
63
|
dataTypeCase?: import("sql-formatter").KeywordCase | undefined;
|
|
@@ -68,10 +71,10 @@ export declare function resolveEmbeddedOverrideOptions(embeddedOverridesString:
|
|
|
68
71
|
params?: ((import("sql-formatter").ParamItems | string[]) & string) | undefined;
|
|
69
72
|
paramTypes?: (import("sql-formatter").ParamTypes & string) | undefined;
|
|
70
73
|
dialect?: string | undefined;
|
|
71
|
-
language?: "
|
|
74
|
+
language?: import("sql-formatter").SqlLanguage | undefined;
|
|
72
75
|
database?: string | undefined;
|
|
73
76
|
type?: string | undefined;
|
|
74
|
-
formatter?: "node-sql-parser" | "sql-cst" | "sql-formatter" | undefined;
|
|
77
|
+
formatter?: ("node-sql-parser" | "sql-cst" | "sql-formatter") | undefined;
|
|
75
78
|
alignEntries?: boolean | undefined;
|
|
76
79
|
alignComments?: boolean | undefined;
|
|
77
80
|
arrayAutoExpand?: boolean | undefined;
|
|
@@ -85,21 +88,21 @@ export declare function resolveEmbeddedOverrideOptions(embeddedOverridesString:
|
|
|
85
88
|
allowedBlankLines?: number | undefined;
|
|
86
89
|
iniSpaceAroundEquals?: boolean | undefined;
|
|
87
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;
|
|
88
|
-
actionParser?: "
|
|
91
|
+
actionParser?: (import("./embedded/es/options.js").EsParser | import("./embedded/ts/options.js").TsParser) | undefined;
|
|
89
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;
|
|
90
93
|
trailingCommaPHP?: boolean | undefined;
|
|
91
94
|
braceStyle?: "psr-2" | "per-cs" | "1tbs" | undefined;
|
|
92
95
|
escapeNonLatin1?: boolean | undefined;
|
|
93
|
-
keySeparator?: "
|
|
96
|
+
keySeparator?: " " | ":" | "=" | ": " | "= " | " : " | " = " | undefined;
|
|
94
97
|
pugPrintWidth?: number | undefined;
|
|
95
98
|
pugSingleQuote?: boolean | undefined;
|
|
96
99
|
pugTabWidth?: number | undefined;
|
|
97
100
|
pugUseTabs?: boolean | undefined;
|
|
98
101
|
pugBracketSpacing?: boolean | undefined;
|
|
99
|
-
pugArrowParens?: "
|
|
102
|
+
pugArrowParens?: "avoid" | "always" | undefined;
|
|
100
103
|
pugSemi?: boolean | undefined;
|
|
101
104
|
pugBracketSameLine?: boolean | undefined;
|
|
102
|
-
pugAttributeSeparator?: "
|
|
105
|
+
pugAttributeSeparator?: "always" | "as-needed" | "none" | undefined;
|
|
103
106
|
pugCommentPreserveSpaces?: "keep-all" | "keep-leading" | "trim-all" | undefined;
|
|
104
107
|
pugSortAttributes?: "asc" | "desc" | "as-is" | undefined;
|
|
105
108
|
pugSortAttributesBeginning?: string[] | undefined;
|
|
@@ -107,19 +110,19 @@ export declare function resolveEmbeddedOverrideOptions(embeddedOverridesString:
|
|
|
107
110
|
pugWrapAttributesThreshold?: number | undefined;
|
|
108
111
|
pugWrapAttributesPattern?: string | undefined;
|
|
109
112
|
pugClassLocation?: "before-attributes" | "after-attributes" | undefined;
|
|
110
|
-
pugClassNotation?: "literal" | "
|
|
113
|
+
pugClassNotation?: "literal" | "attribute" | "as-is" | undefined;
|
|
111
114
|
pugIdNotation?: "literal" | "as-is" | undefined;
|
|
112
|
-
pugEmptyAttributes?: "
|
|
113
|
-
pugEmptyAttributesForceQuotes?: "
|
|
115
|
+
pugEmptyAttributes?: "as-is" | "none" | "all" | undefined;
|
|
116
|
+
pugEmptyAttributesForceQuotes?: "as-is" | "none" | "all" | undefined;
|
|
114
117
|
pugSingleFileComponentIndentation?: boolean | undefined;
|
|
115
|
-
pugFramework?: "
|
|
118
|
+
pugFramework?: "auto" | "vue" | "svelte" | "angular" | undefined;
|
|
116
119
|
pugExplicitDiv?: boolean | undefined;
|
|
117
120
|
pugPreserveAttributeBrackets?: boolean | undefined;
|
|
118
121
|
rubyPlugins?: import("./embedded/utils.js").AutocompleteStringList<"plugin/single_quotes" | "plugin/trailing_comma" | "plugin/disable_auto_ternary"> | undefined;
|
|
119
122
|
rubySingleQuote?: boolean | undefined;
|
|
120
123
|
rubyExecutablePath?: string | undefined;
|
|
121
124
|
xmlSelfClosingSpace?: boolean | undefined;
|
|
122
|
-
xmlWhitespaceSensitivity?: "
|
|
125
|
+
xmlWhitespaceSensitivity?: "strict" | "preserve" | "ignore" | undefined;
|
|
123
126
|
xmlSortAttributesByKey?: boolean | undefined;
|
|
124
127
|
xmlQuoteAttributes?: "preserve" | "single" | "double" | undefined;
|
|
125
128
|
} | undefined>;
|
|
@@ -130,8 +133,8 @@ export declare function parseCommentFromTemplateLiteralAstPath({ node, parent, }
|
|
|
130
133
|
export declare function parseTagFromTemplateLiteralAstPath({ parent, }: AstPath<Node> & {
|
|
131
134
|
node: TemplateLiteral;
|
|
132
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;
|
|
133
|
-
export declare function createCommentsInOptionsGenerator(options: Options, comment: string): (
|
|
134
|
-
export declare function createTagsInOptionsGenerator(options: Options, tag?: string): (
|
|
136
|
+
export declare function createCommentsInOptionsGenerator(options: Options, comment: string): (_: EmbeddedLanguage) => Generator<string, void, undefined>;
|
|
137
|
+
export declare function createTagsInOptionsGenerator(options: Options, tag?: string): (_: EmbeddedLanguage) => Generator<string, void, undefined>;
|
|
135
138
|
export declare function createEmbeddedDoc(node: TemplateLiteral, embeddedLanguage: EmbeddedLanguage, commentOrTag: EmbeddedComment | EmbeddedTag, kind: "comment" | "tag", options: Options): ReturnType<Exclude<Printer["embed"], undefined>>;
|
|
136
139
|
export declare function assumeAs<T>(_: unknown): asserts _ is T;
|
|
137
140
|
export declare function compareObjects<T1 extends Record<string | number | symbol, unknown>, T2 extends Record<string | number | symbol, unknown>>(value1: T1, value2: T2, ignoreSet?: Set<keyof T1 | keyof T2>): boolean;
|
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
|
+
"version": "0.5.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"./dist"
|
|
@@ -53,88 +53,77 @@
|
|
|
53
53
|
"name": "Ze-Zheng Wu"
|
|
54
54
|
},
|
|
55
55
|
"license": "MIT",
|
|
56
|
-
"config": {},
|
|
57
56
|
"publishConfig": {
|
|
58
57
|
"access": "public"
|
|
59
58
|
},
|
|
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",
|
|
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",
|
|
81
|
+
"prettier-plugin-ini": "^1.3.0",
|
|
82
|
+
"prettier-plugin-java": "^2.6.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.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"
|
|
98
|
+
},
|
|
99
|
+
"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"
|
|
106
|
+
},
|
|
60
107
|
"scripts": {
|
|
61
108
|
"update-hooks": "simple-git-hooks",
|
|
62
|
-
"changeset": "changeset",
|
|
63
|
-
"bump": "changeset version 2>/dev/null | grep . && npm i; exit 0",
|
|
64
|
-
"dev": "vite",
|
|
65
109
|
"lint": "biome lint .",
|
|
66
110
|
"type-check": "tsc --noEmit --emitDeclarationOnly false",
|
|
67
111
|
"format:prettier": "prettier . --write",
|
|
68
112
|
"format:biome": "biome format . --write",
|
|
69
|
-
"format": "conc \"
|
|
70
|
-
"check:biome": "biome check --
|
|
71
|
-
"check": "conc \"
|
|
72
|
-
"prebuild": "
|
|
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",
|
|
73
117
|
"build": "vite build",
|
|
74
118
|
"add-glob-import-types": "tsx ./scripts/add-glob-import-types.ts",
|
|
75
119
|
"nocheck-chevrotain-types": "tsx ./scripts/nocheck-chevrotain-types.ts",
|
|
76
120
|
"copy": "copy-files-from-to",
|
|
77
|
-
"postbuild": "tsc --project ./tsconfig.production.json && conc \"
|
|
78
|
-
"prebuild:ci": "npm run type-check",
|
|
79
|
-
"build:ci": "vite build",
|
|
80
|
-
"postbuild:ci": "npm run postbuild",
|
|
121
|
+
"postbuild": "tsc --project ./tsconfig.production.json && conc \"pnpm:add-glob-import-types\" \"pnpm:nocheck-chevrotain-types\" \"pnpm:copy\"",
|
|
81
122
|
"test": "vitest",
|
|
82
123
|
"test:ui": "vitest --ui",
|
|
83
|
-
"preview": "vite preview",
|
|
84
124
|
"process-readme": "tsx ./scripts/process-readme",
|
|
85
125
|
"restore-readme": "tsx ./scripts/restore-readme",
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"ncu": "ncu",
|
|
89
|
-
"postncu": "npm i",
|
|
90
|
-
"bump-biome": "npm i @biomejs/biome@latest --save-exact"
|
|
91
|
-
},
|
|
92
|
-
"devDependencies": {
|
|
93
|
-
"@biomejs/biome": "1.5.3",
|
|
94
|
-
"@changesets/cli": "^2.27.1",
|
|
95
|
-
"@commitlint/cli": "^18.6.1",
|
|
96
|
-
"@commitlint/config-conventional": "^18.6.2",
|
|
97
|
-
"@prettier/plugin-php": "^0.22.1",
|
|
98
|
-
"@prettier/plugin-pug": "^3.0.0",
|
|
99
|
-
"@prettier/plugin-ruby": "^4.0.4",
|
|
100
|
-
"@prettier/plugin-xml": "^3.2.2",
|
|
101
|
-
"@stedi/prettier-plugin-jsonata": "^2.1.1",
|
|
102
|
-
"@types/node": "^20.11.19",
|
|
103
|
-
"@vitest/coverage-istanbul": "^1.3.0",
|
|
104
|
-
"@vitest/ui": "^1.3.0",
|
|
105
|
-
"@xml-tools/parser": "^1.0.11",
|
|
106
|
-
"chevrotain": "7.1.1",
|
|
107
|
-
"concurrently": "^8.2.2",
|
|
108
|
-
"copy-files-from-to": "^3.9.1",
|
|
109
|
-
"esbuild": "^0.20.1",
|
|
110
|
-
"fast-glob": "^3.3.2",
|
|
111
|
-
"lint-staged": "^15.2.2",
|
|
112
|
-
"npm-check-updates": "^16.14.15",
|
|
113
|
-
"prettier": "^3.2.4",
|
|
114
|
-
"prettier-plugin-glsl": "^0.1.3",
|
|
115
|
-
"prettier-plugin-ini": "^1.1.0",
|
|
116
|
-
"prettier-plugin-java": "^2.5.0",
|
|
117
|
-
"prettier-plugin-latex": "^2.0.1",
|
|
118
|
-
"prettier-plugin-nginx": "^1.0.3",
|
|
119
|
-
"prettier-plugin-pegjs": "^2.0.2",
|
|
120
|
-
"prettier-plugin-prisma": "^5.0.0",
|
|
121
|
-
"prettier-plugin-properties": "^0.3.0",
|
|
122
|
-
"prettier-plugin-sh": "^0.14.0",
|
|
123
|
-
"prettier-plugin-sql": "^0.18.0",
|
|
124
|
-
"prettier-plugin-sql-cst": "^0.11.1",
|
|
125
|
-
"prettier-plugin-toml": "^2.0.1",
|
|
126
|
-
"simple-git-hooks": "^2.9.0",
|
|
127
|
-
"tsx": "^4.7.1",
|
|
128
|
-
"typescript": "^5.3.3",
|
|
129
|
-
"vite": "^5.1.3",
|
|
130
|
-
"vitest": "^1.3.0"
|
|
131
|
-
},
|
|
132
|
-
"dependencies": {
|
|
133
|
-
"@types/estree": "^1.0.5",
|
|
134
|
-
"dedent": "^1.5.1",
|
|
135
|
-
"micro-memoize": "^4.1.2",
|
|
136
|
-
"package-up": "^5.0.0",
|
|
137
|
-
"tiny-jsonc": "^1.0.1",
|
|
138
|
-
"type-fest": "^4.10.2"
|
|
126
|
+
"bump-biome:latest": "pnpm add -DE @biomejs/biome@latest",
|
|
127
|
+
"bump-biome:nightly": "pnpm add -DE @biomejs/biome@nightly"
|
|
139
128
|
}
|
|
140
|
-
}
|
|
129
|
+
}
|