barkql 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 eli0shin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,108 @@
1
+ # barkql
2
+
3
+ Type-safe query builder with compile-time validation. Build complex queries with operators and get helpful error messages when the structure is invalid.
4
+
5
+ ## Why?
6
+
7
+ Query strings are hard to work with:
8
+
9
+ - Long strings lack syntax highlighting and can't be formatted
10
+ - Errors are invisible until runtime
11
+ - Easy to put two operators next to each other or forget one
12
+
13
+ This library lets you build queries as structured data with compile-time validation.
14
+
15
+ ## Installation
16
+
17
+ ```bash
18
+ bun add barkql
19
+ ```
20
+
21
+ ## Quick Start
22
+
23
+ ```typescript
24
+ import { query, compileDatadogQuery } from 'barkql';
25
+
26
+ // Build a query with compile-time validation
27
+ const q = query([{ service: 'api' }, 'AND', { env: 'production' }]);
28
+
29
+ // Compile to Datadog query string
30
+ const str = compileDatadogQuery(q);
31
+ // '(service:"api" AND env:"production")'
32
+ ```
33
+
34
+ ## Usage
35
+
36
+ ### Simple query
37
+
38
+ ```typescript
39
+ query([{ name: 'John' }]);
40
+ ```
41
+
42
+ ### Query with operators
43
+
44
+ ```typescript
45
+ query([{ name: 'John' }, 'AND', { age: 30 }]);
46
+ query([{ status: 'active' }, 'OR', { role: 'admin' }]);
47
+ query([{ env: 'prod' }, 'AND NOT', { service: 'debug' }]);
48
+ ```
49
+
50
+ ### Nested queries
51
+
52
+ ```typescript
53
+ query([[{ name: 'John' }, 'OR', { name: 'Jane' }], 'AND', { age: 30 }]);
54
+
55
+ query([
56
+ [{ country: 'USA' }, 'OR', { country: 'Canada' }],
57
+ 'AND',
58
+ [{ age: 25 }, 'OR', { experience: 5 }],
59
+ ]);
60
+ ```
61
+
62
+ ### Query builder
63
+
64
+ ```typescript
65
+ import { queryBuilder } from 'barkql';
66
+
67
+ const q = queryBuilder({ name: 'John' })
68
+ .and({ age: 30 })
69
+ .or({ active: true })
70
+ .build();
71
+ ```
72
+
73
+ ### Compile to Datadog format
74
+
75
+ ```typescript
76
+ import { compileDatadogQuery } from 'barkql';
77
+
78
+ compileDatadogQuery({ name: 'John', age: 30 });
79
+ // 'name:"John" AND age:30'
80
+
81
+ compileDatadogQuery([{ a: 1 }, 'AND', { b: 2 }]);
82
+ // '(a:1 AND b:2)'
83
+
84
+ compileDatadogQuery({ tags: ['error', 'warning'] });
85
+ // 'tags:("error" OR "warning")'
86
+ ```
87
+
88
+ ## Query Syntax
89
+
90
+ - **Operators**: `'AND' | 'OR' | 'AND NOT' | 'OR NOT'`
91
+ - **Values**: `string | number | boolean | null | Array<string | number | boolean | null>`
92
+ - **Pattern**: `[Query]` or `[Query, Operator, Query, ...]`
93
+ - **Nesting**: Any query position accepts a nested query chain
94
+ - **Arrays**: Compiled as `(value1 OR value2 OR ...)`
95
+
96
+ ## API
97
+
98
+ ### `query(input)`
99
+
100
+ Creates a type-safe query. Returns the input unchanged but validates the structure at compile time.
101
+
102
+ ### `queryBuilder(initialQuery)`
103
+
104
+ Fluent builder with `.and()`, `.or()`, `.andNot()`, `.orNot()` methods. Call `.build()` to get the query.
105
+
106
+ ### `compileDatadogQuery(query)`
107
+
108
+ Compiles a query to Datadog query string format.
package/dist/index.cjs ADDED
@@ -0,0 +1,105 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __moduleCache = /* @__PURE__ */ new WeakMap;
6
+ var __toCommonJS = (from) => {
7
+ var entry = __moduleCache.get(from), desc;
8
+ if (entry)
9
+ return entry;
10
+ entry = __defProp({}, "__esModule", { value: true });
11
+ if (from && typeof from === "object" || typeof from === "function")
12
+ __getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ }));
16
+ __moduleCache.set(from, entry);
17
+ return entry;
18
+ };
19
+ var __export = (target, all) => {
20
+ for (var name in all)
21
+ __defProp(target, name, {
22
+ get: all[name],
23
+ enumerable: true,
24
+ configurable: true,
25
+ set: (newValue) => all[name] = () => newValue
26
+ });
27
+ };
28
+
29
+ // src/index.ts
30
+ var exports_src = {};
31
+ __export(exports_src, {
32
+ queryBuilder: () => queryBuilder,
33
+ query: () => query,
34
+ compileDatadogQuery: () => compileDatadogQuery
35
+ });
36
+ module.exports = __toCommonJS(exports_src);
37
+ function query(query2) {
38
+ return query2;
39
+ }
40
+ function formatValue(value) {
41
+ if (typeof value === "string") {
42
+ return `"${value}"`;
43
+ }
44
+ return String(value);
45
+ }
46
+ function formatArrayValue(values) {
47
+ return `(${values.map(formatValue).join(" OR ")})`;
48
+ }
49
+ function isQueryChain(value) {
50
+ return Array.isArray(value);
51
+ }
52
+ function isOperator(value) {
53
+ return value === "AND" || value === "OR" || value === "AND NOT" || value === "OR NOT";
54
+ }
55
+ function compileBaseQuery(query2) {
56
+ const entries = Object.entries(query2);
57
+ if (entries.length === 0)
58
+ return "";
59
+ return entries.map(([key, value]) => {
60
+ if (Array.isArray(value)) {
61
+ return `${key}:${formatArrayValue(value)}`;
62
+ }
63
+ return `${key}:${formatValue(value)}`;
64
+ }).join(" AND ");
65
+ }
66
+ function compileDatadogQuery(query2) {
67
+ if (isQueryChain(query2)) {
68
+ const parts = [];
69
+ for (const element of query2) {
70
+ if (isOperator(element)) {
71
+ parts.push(element);
72
+ } else if (isQueryChain(element)) {
73
+ parts.push(compileDatadogQuery(element));
74
+ } else {
75
+ parts.push(compileBaseQuery(element));
76
+ }
77
+ }
78
+ return `(${parts.join(" ")})`;
79
+ }
80
+ return compileBaseQuery(query2);
81
+ }
82
+ function queryBuilder(initialQuery) {
83
+ const wrapIfNeeded = (q) => Array.isArray(q) ? q : [q];
84
+ const queries = [wrapIfNeeded(initialQuery)];
85
+ const builder = {
86
+ build: () => [...queries],
87
+ and: (query2) => {
88
+ queries.push("AND", wrapIfNeeded(query2));
89
+ return builder;
90
+ },
91
+ or: (query2) => {
92
+ queries.push("OR", wrapIfNeeded(query2));
93
+ return builder;
94
+ },
95
+ andNot: (query2) => {
96
+ queries.push("AND NOT", wrapIfNeeded(query2));
97
+ return builder;
98
+ },
99
+ orNot: (query2) => {
100
+ queries.push("OR NOT", wrapIfNeeded(query2));
101
+ return builder;
102
+ }
103
+ };
104
+ return builder;
105
+ }
@@ -0,0 +1,54 @@
1
+ export type Operator = 'AND' | 'OR' | 'AND NOT' | 'OR NOT';
2
+ export type QueryValue = string | null | boolean | number;
3
+ export type BaseQueryType = Record<string, QueryValue | QueryValue[] | readonly QueryValue[]>;
4
+ export type QueryChain<T extends readonly unknown[] = readonly unknown[]> = ValidatePattern<T>;
5
+ export type Query = BaseQueryType | QueryChain;
6
+ type ValidatedQueryInput<Q> = Q extends readonly unknown[] ? Q & ValidatePattern<Q> : Q extends BaseQueryType ? Q : never;
7
+ type IsValidQuery<T> = T extends BaseQueryType ? true : T extends readonly unknown[] ? ValidatePatternWithError<T> extends 'valid' ? true : false : false;
8
+ export type ValidatePatternWithError<T extends readonly unknown[]> = T extends readonly [] ? 'ERROR: Query cannot be empty. Expected: [Query] or [Query, Operator, Query, ...]' : T extends readonly [infer First, ...infer Rest] ? IsValidQuery<First> extends true ? Rest extends readonly [] ? 'valid' : Rest extends readonly [infer Op, ...infer After] ? Op extends Operator ? After extends readonly [] ? 'ERROR: Query cannot end with an Operator. Expected a Query after the Operator.' : After extends readonly [infer Next, ...infer RestAfter] ? IsValidQuery<Next> extends true ? ValidatePatternWithError<readonly [Next, ...RestAfter]> : 'ERROR: After an Operator, expected a Query (BaseQueryType or nested QueryChain) but found something else.' : 'ERROR: Invalid pattern structure. Expected: Query, Operator, Query, ...' : "ERROR: After a Query, expected an Operator ('AND' | 'OR' | 'AND NOT' | 'OR NOT') but found something else." : 'ERROR: Invalid pattern structure. After Query, expected an Operator followed by another Query.' : First extends Operator ? 'ERROR: Query cannot start with an Operator. It must start with a Query.' : 'ERROR: Query must start with a Query (BaseQueryType or nested QueryChain).' : 'ERROR: Invalid query pattern.';
9
+ export type ValidatePattern<T extends readonly unknown[]> = ValidatePatternWithError<T> extends 'valid' ? T : ValidatePatternWithError<T>;
10
+ /**
11
+ * Creates a type-safe query with compile-time validation.
12
+ *
13
+ * @example
14
+ * query([{ name: 'John' }])
15
+ * query([{ name: 'John' }, 'AND', { age: 30 }])
16
+ * query([[{ a: 1 }, 'OR', { b: 2 }], 'AND', { c: 3 }])
17
+ */
18
+ export declare function query<const T extends readonly unknown[]>(query: T & ValidatePattern<T>): T;
19
+ type QueryBuilder<T extends readonly unknown[] = []> = {
20
+ build: () => ValidatePattern<T>;
21
+ and: <Q extends BaseQueryType | readonly unknown[]>(query: ValidatedQueryInput<Q>) => QueryBuilder<readonly [...T, 'AND', Q extends readonly unknown[] ? Q : readonly [Q]]>;
22
+ or: <Q extends BaseQueryType | readonly unknown[]>(query: ValidatedQueryInput<Q>) => QueryBuilder<readonly [...T, 'OR', Q extends readonly unknown[] ? Q : readonly [Q]]>;
23
+ andNot: <Q extends BaseQueryType | readonly unknown[]>(query: ValidatedQueryInput<Q>) => QueryBuilder<readonly [...T, 'AND NOT', Q extends readonly unknown[] ? Q : readonly [Q]]>;
24
+ orNot: <Q extends BaseQueryType | readonly unknown[]>(query: ValidatedQueryInput<Q>) => QueryBuilder<readonly [...T, 'OR NOT', Q extends readonly unknown[] ? Q : readonly [Q]]>;
25
+ };
26
+ /**
27
+ * Compiles a query to Datadog query string format.
28
+ *
29
+ * @example
30
+ * compileDatadogQuery({ name: 'John', age: 30 })
31
+ * // Returns: 'name:"John" AND age:30'
32
+ *
33
+ * compileDatadogQuery([{ a: 1 }, 'AND', { b: 2 }])
34
+ * // Returns: '(a:1 AND b:2)'
35
+ */
36
+ export declare function compileDatadogQuery(query: BaseQueryType): string;
37
+ export declare function compileDatadogQuery<const T extends readonly unknown[]>(query: T & ValidatePattern<T>): string;
38
+ /**
39
+ * Fluent builder for constructing queries with method chaining.
40
+ *
41
+ * @example
42
+ * queryBuilder({ name: 'John' })
43
+ * .and({ age: 30 })
44
+ * .or({ active: true })
45
+ * .build()
46
+ *
47
+ * @example
48
+ * queryBuilder([{ a: 1 }, 'OR', { b: 2 }] as const)
49
+ * .and({ c: 3 })
50
+ * .build()
51
+ */
52
+ export declare function queryBuilder<Q extends BaseQueryType>(initialQuery: Q): QueryBuilder<readonly [readonly [Q]]>;
53
+ export declare function queryBuilder<const T extends readonly unknown[]>(initialQuery: T & ValidatePattern<T>): QueryBuilder<readonly [T]>;
54
+ export {};
@@ -0,0 +1,54 @@
1
+ export type Operator = 'AND' | 'OR' | 'AND NOT' | 'OR NOT';
2
+ export type QueryValue = string | null | boolean | number;
3
+ export type BaseQueryType = Record<string, QueryValue | QueryValue[] | readonly QueryValue[]>;
4
+ export type QueryChain<T extends readonly unknown[] = readonly unknown[]> = ValidatePattern<T>;
5
+ export type Query = BaseQueryType | QueryChain;
6
+ type ValidatedQueryInput<Q> = Q extends readonly unknown[] ? Q & ValidatePattern<Q> : Q extends BaseQueryType ? Q : never;
7
+ type IsValidQuery<T> = T extends BaseQueryType ? true : T extends readonly unknown[] ? ValidatePatternWithError<T> extends 'valid' ? true : false : false;
8
+ export type ValidatePatternWithError<T extends readonly unknown[]> = T extends readonly [] ? 'ERROR: Query cannot be empty. Expected: [Query] or [Query, Operator, Query, ...]' : T extends readonly [infer First, ...infer Rest] ? IsValidQuery<First> extends true ? Rest extends readonly [] ? 'valid' : Rest extends readonly [infer Op, ...infer After] ? Op extends Operator ? After extends readonly [] ? 'ERROR: Query cannot end with an Operator. Expected a Query after the Operator.' : After extends readonly [infer Next, ...infer RestAfter] ? IsValidQuery<Next> extends true ? ValidatePatternWithError<readonly [Next, ...RestAfter]> : 'ERROR: After an Operator, expected a Query (BaseQueryType or nested QueryChain) but found something else.' : 'ERROR: Invalid pattern structure. Expected: Query, Operator, Query, ...' : "ERROR: After a Query, expected an Operator ('AND' | 'OR' | 'AND NOT' | 'OR NOT') but found something else." : 'ERROR: Invalid pattern structure. After Query, expected an Operator followed by another Query.' : First extends Operator ? 'ERROR: Query cannot start with an Operator. It must start with a Query.' : 'ERROR: Query must start with a Query (BaseQueryType or nested QueryChain).' : 'ERROR: Invalid query pattern.';
9
+ export type ValidatePattern<T extends readonly unknown[]> = ValidatePatternWithError<T> extends 'valid' ? T : ValidatePatternWithError<T>;
10
+ /**
11
+ * Creates a type-safe query with compile-time validation.
12
+ *
13
+ * @example
14
+ * query([{ name: 'John' }])
15
+ * query([{ name: 'John' }, 'AND', { age: 30 }])
16
+ * query([[{ a: 1 }, 'OR', { b: 2 }], 'AND', { c: 3 }])
17
+ */
18
+ export declare function query<const T extends readonly unknown[]>(query: T & ValidatePattern<T>): T;
19
+ type QueryBuilder<T extends readonly unknown[] = []> = {
20
+ build: () => ValidatePattern<T>;
21
+ and: <Q extends BaseQueryType | readonly unknown[]>(query: ValidatedQueryInput<Q>) => QueryBuilder<readonly [...T, 'AND', Q extends readonly unknown[] ? Q : readonly [Q]]>;
22
+ or: <Q extends BaseQueryType | readonly unknown[]>(query: ValidatedQueryInput<Q>) => QueryBuilder<readonly [...T, 'OR', Q extends readonly unknown[] ? Q : readonly [Q]]>;
23
+ andNot: <Q extends BaseQueryType | readonly unknown[]>(query: ValidatedQueryInput<Q>) => QueryBuilder<readonly [...T, 'AND NOT', Q extends readonly unknown[] ? Q : readonly [Q]]>;
24
+ orNot: <Q extends BaseQueryType | readonly unknown[]>(query: ValidatedQueryInput<Q>) => QueryBuilder<readonly [...T, 'OR NOT', Q extends readonly unknown[] ? Q : readonly [Q]]>;
25
+ };
26
+ /**
27
+ * Compiles a query to Datadog query string format.
28
+ *
29
+ * @example
30
+ * compileDatadogQuery({ name: 'John', age: 30 })
31
+ * // Returns: 'name:"John" AND age:30'
32
+ *
33
+ * compileDatadogQuery([{ a: 1 }, 'AND', { b: 2 }])
34
+ * // Returns: '(a:1 AND b:2)'
35
+ */
36
+ export declare function compileDatadogQuery(query: BaseQueryType): string;
37
+ export declare function compileDatadogQuery<const T extends readonly unknown[]>(query: T & ValidatePattern<T>): string;
38
+ /**
39
+ * Fluent builder for constructing queries with method chaining.
40
+ *
41
+ * @example
42
+ * queryBuilder({ name: 'John' })
43
+ * .and({ age: 30 })
44
+ * .or({ active: true })
45
+ * .build()
46
+ *
47
+ * @example
48
+ * queryBuilder([{ a: 1 }, 'OR', { b: 2 }] as const)
49
+ * .and({ c: 3 })
50
+ * .build()
51
+ */
52
+ export declare function queryBuilder<Q extends BaseQueryType>(initialQuery: Q): QueryBuilder<readonly [readonly [Q]]>;
53
+ export declare function queryBuilder<const T extends readonly unknown[]>(initialQuery: T & ValidatePattern<T>): QueryBuilder<readonly [T]>;
54
+ export {};
package/dist/index.js ADDED
@@ -0,0 +1,75 @@
1
+ // src/index.ts
2
+ function query(query2) {
3
+ return query2;
4
+ }
5
+ function formatValue(value) {
6
+ if (typeof value === "string") {
7
+ return `"${value}"`;
8
+ }
9
+ return String(value);
10
+ }
11
+ function formatArrayValue(values) {
12
+ return `(${values.map(formatValue).join(" OR ")})`;
13
+ }
14
+ function isQueryChain(value) {
15
+ return Array.isArray(value);
16
+ }
17
+ function isOperator(value) {
18
+ return value === "AND" || value === "OR" || value === "AND NOT" || value === "OR NOT";
19
+ }
20
+ function compileBaseQuery(query2) {
21
+ const entries = Object.entries(query2);
22
+ if (entries.length === 0)
23
+ return "";
24
+ return entries.map(([key, value]) => {
25
+ if (Array.isArray(value)) {
26
+ return `${key}:${formatArrayValue(value)}`;
27
+ }
28
+ return `${key}:${formatValue(value)}`;
29
+ }).join(" AND ");
30
+ }
31
+ function compileDatadogQuery(query2) {
32
+ if (isQueryChain(query2)) {
33
+ const parts = [];
34
+ for (const element of query2) {
35
+ if (isOperator(element)) {
36
+ parts.push(element);
37
+ } else if (isQueryChain(element)) {
38
+ parts.push(compileDatadogQuery(element));
39
+ } else {
40
+ parts.push(compileBaseQuery(element));
41
+ }
42
+ }
43
+ return `(${parts.join(" ")})`;
44
+ }
45
+ return compileBaseQuery(query2);
46
+ }
47
+ function queryBuilder(initialQuery) {
48
+ const wrapIfNeeded = (q) => Array.isArray(q) ? q : [q];
49
+ const queries = [wrapIfNeeded(initialQuery)];
50
+ const builder = {
51
+ build: () => [...queries],
52
+ and: (query2) => {
53
+ queries.push("AND", wrapIfNeeded(query2));
54
+ return builder;
55
+ },
56
+ or: (query2) => {
57
+ queries.push("OR", wrapIfNeeded(query2));
58
+ return builder;
59
+ },
60
+ andNot: (query2) => {
61
+ queries.push("AND NOT", wrapIfNeeded(query2));
62
+ return builder;
63
+ },
64
+ orNot: (query2) => {
65
+ queries.push("OR NOT", wrapIfNeeded(query2));
66
+ return builder;
67
+ }
68
+ };
69
+ return builder;
70
+ }
71
+ export {
72
+ queryBuilder,
73
+ query,
74
+ compileDatadogQuery
75
+ };
package/package.json ADDED
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "barkql",
3
+ "version": "0.1.1",
4
+ "description": "Type-safe query builder for Datadog metrics",
5
+ "license": "MIT",
6
+ "author": "eli0shin",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/eli0shin/barkql.git"
10
+ },
11
+ "homepage": "https://github.com/eli0shin/barkql#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/eli0shin/barkql/issues"
14
+ },
15
+ "keywords": [
16
+ "datadog",
17
+ "query",
18
+ "metrics",
19
+ "typescript",
20
+ "type-safe"
21
+ ],
22
+ "type": "module",
23
+ "exports": {
24
+ ".": {
25
+ "import": {
26
+ "types": "./dist/index.d.ts",
27
+ "default": "./dist/index.js"
28
+ },
29
+ "require": {
30
+ "types": "./dist/index.d.cts",
31
+ "default": "./dist/index.cjs"
32
+ }
33
+ }
34
+ },
35
+ "files": [
36
+ "dist"
37
+ ],
38
+ "scripts": {
39
+ "build": "bun run build:esm && bun run build:cjs && bun run build:types",
40
+ "build:esm": "bun build src/index.ts --outdir dist --format esm --target node",
41
+ "build:cjs": "bun build src/index.ts --outfile dist/index.cjs --format cjs --target node",
42
+ "build:types": "tsc --project tsconfig.build.json && cp dist/index.d.ts dist/index.d.cts",
43
+ "test": "vitest run",
44
+ "test:types": "vitest --typecheck",
45
+ "type:check": "tsc --noEmit",
46
+ "format": "prettier --write .",
47
+ "format:check": "prettier --check .",
48
+ "prepare": "husky"
49
+ },
50
+ "devDependencies": {
51
+ "@changesets/changelog-github": "^0.5.2",
52
+ "@changesets/cli": "^2.29.7",
53
+ "@types/bun": "latest",
54
+ "husky": "^9.1.7",
55
+ "lint-staged": "^16.2.7",
56
+ "prettier": "^3.6.2",
57
+ "vitest": "^4.0.13"
58
+ },
59
+ "peerDependencies": {
60
+ "typescript": "^5"
61
+ },
62
+ "lint-staged": {
63
+ "*.{ts,tsx,js,jsx,json,md,yml,yaml}": "prettier --write"
64
+ }
65
+ }