Skip to content

Commit e36e73f

Browse files
committed
fix distributable
1 parent 210b0a6 commit e36e73f

180 files changed

Lines changed: 601 additions & 586 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"version": "0.0.1",
44
"author": "Kibana ES|QL team",
55
"description": "A set of ts tools to parse, build and transform ES|QL queries programatically.",
6-
"type": "module",
76
"packageManager": "yarn@1.22.22",
87
"main": "./lib/index.js",
98
"types": "./lib/index.d.ts",
9+
"module": "./lib/index.js",
1010
"exports": {
1111
".": {
1212
"types": "./lib/index.d.ts",
@@ -63,6 +63,7 @@
6363
"typescript-eslint": "8.55.0"
6464
},
6565
"dependencies": {
66+
"@babel/runtime": "7.28.6",
6667
"antlr4": "4.13.2",
6768
"tree-dump": "1.1.0",
6869
"tslib": "2.8.1"

src/ast/builder/builder.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* 2.0.
66
*/
77

8-
import { Builder } from '.';
9-
import { BasicPrettyPrinter } from '../../pretty_print';
8+
import { Builder } from './index.ts';
9+
import { BasicPrettyPrinter } from '../../pretty_print/index.ts';
1010

1111
describe('command', () => {
1212
test('can create a LIMIT command', () => {

src/ast/builder/builder.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
/* eslint-disable @typescript-eslint/no-namespace */
99

10-
import { isStringLiteral } from '../is';
11-
import { TIME_DURATION_UNITS } from '../../parser';
12-
import { LeafPrinter } from '../../pretty_print';
10+
import { isStringLiteral } from '../is.ts';
11+
import { TIME_DURATION_UNITS } from '../../parser/index.ts';
12+
import { LeafPrinter } from '../../pretty_print/index.ts';
1313
import type {
1414
ESQLAstComment,
1515
ESQLAstCommentMultiLine,
@@ -47,8 +47,8 @@ import type {
4747
ESQLDatePeriodLiteral,
4848
ESQLAstHeaderCommand,
4949
ESQLAstSetHeaderCommand,
50-
} from '../../types';
51-
import type { AstNodeParserFields, AstNodeTemplate, PartialFields } from './types';
50+
} from '../../types.ts';
51+
import type { AstNodeParserFields, AstNodeTemplate, PartialFields } from './types.ts';
5252

5353
export namespace Builder {
5454
/**

src/ast/builder/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
* 2.0.
66
*/
77

8-
export type * from './types';
9-
export { Builder } from './builder';
8+
export type * from './types.ts';
9+
export { Builder } from './builder.ts';

src/ast/builder/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* 2.0.
66
*/
77

8-
import type { ESQLProperNode, ESQLAstBaseItem } from '../../types';
8+
import type { ESQLProperNode, ESQLAstBaseItem } from '../../types.ts';
99

1010
/**
1111
* Node fields which are available only when the node is minted by the parser.

src/ast/grouping.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* 2.0.
66
*/
77

8-
import { isBinaryExpression, isUnaryExpression } from './is';
9-
import type { ESQLAstNode } from '../types';
8+
import { isBinaryExpression, isUnaryExpression } from './is.ts';
9+
import type { ESQLAstNode } from '../types.ts';
1010

1111
/**
1212
* The group name of a binary expression. Groups are ordered by precedence.

src/ast/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
*/
77

88
// Core AST utilities
9-
export * from './is';
10-
export * from './location';
11-
export * from './grouping';
9+
export * from './is.ts';
10+
export * from './location.ts';
11+
export * from './grouping.ts';
1212

1313
// AST manipulation tools
14-
export { Builder, type AstNodeParserFields, type AstNodeTemplate } from './builder';
15-
export { singleItems, resolveItem, lastItem, firstItem } from './visitor/utils';
16-
export { Walker, type WalkerOptions, walk, type WalkerAstNode } from './walker';
17-
export * as mutate from './mutate';
14+
export { Builder, type AstNodeParserFields, type AstNodeTemplate } from './builder/index.ts';
15+
export { singleItems, resolveItem, lastItem, firstItem } from './visitor/utils.ts';
16+
export { Walker, type WalkerOptions, walk, type WalkerAstNode } from './walker/index.ts';
17+
export * as mutate from './mutate/index.ts';

src/ast/is.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* 2.0.
66
*/
77

8-
import type * as types from '../types';
9-
import type { ESQLInlineCast, ESQLProperNode } from '../types';
10-
import { Walker } from './walker';
8+
import type * as types from '../types.ts';
9+
import type { ESQLInlineCast, ESQLProperNode } from '../types.ts';
10+
import { Walker } from './walker/index.ts';
1111

1212
export const isProperNode = (node: unknown): node is types.ESQLProperNode =>
1313
!!node &&

src/ast/location.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* 2.0.
66
*/
77

8-
import type { ESQLAstComment, ESQLLocation, ESQLSingleAstItem } from '../types';
8+
import type { ESQLAstComment, ESQLLocation, ESQLSingleAstItem } from '../types.ts';
99

1010
export const within = (
1111
inner: number | { location: ESQLLocation },

src/ast/mutate/commands/from/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* 2.0.
66
*/
77

8-
import * as sources from './sources';
9-
import * as metadata from './metadata';
8+
import * as sources from './sources.ts';
9+
import * as metadata from './metadata.ts';
1010

1111
export { sources, metadata };

0 commit comments

Comments
 (0)