Skip to content

Commit b8ab5c7

Browse files
ErwanRauloRaulo Erwan
andauthored
refactor(js-x-ray): migrate to node type stripping (#441)
refactor(js-x-ray-ai): migrate to node type stripping refactor(estree-ast-utils): migrate to node type stripping refactor(sec-literal): migrate to node type stripping refactor(tracer): migrate to node type stripping refactor(ts-source-parser): migrate to node type stripping fix #440 Co-authored-by: Raulo Erwan <[email protected]>
1 parent 462bc6c commit b8ab5c7

File tree

124 files changed

+372
-365
lines changed

Some content is hidden

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

124 files changed

+372
-365
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@
2323
"@changesets/changelog-github": "^0.5.1",
2424
"@changesets/cli": "^2.29.4",
2525
"@openally/config.eslint": "^2.0.0",
26-
"@openally/config.typescript": "^1.1.0",
26+
"@openally/config.typescript": "^1.2.1",
2727
"@types/node": "^25.0.3",
2828
"c8": "^10.1.2",
2929
"iterator-matcher": "^2.1.0",
30-
"tsx": "^4.20.3",
31-
"typescript": "^5.8.3"
30+
"typescript": "^5.9.3"
3231
}
3332
}

tsconfig.base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@openally/config.typescript",
2+
"extends": "@openally/config.typescript/esm-ts-next",
33
"compilerOptions": {
44
"composite": true
55
}

workspaces/estree-ast-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"scripts": {
99
"prepublishOnly": "npm run build",
1010
"build": "tsc",
11-
"test-only": "tsx --test-reporter=spec --test \"./test/**/*.spec.ts\"",
11+
"test-only": "node --test-reporter=spec --test ./test/**/*.spec.ts",
1212
"test": "c8 -r html npm run test-only"
1313
},
1414
"publishConfig": {

workspaces/estree-ast-utils/src/arrayExpression.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
import type { ESTree } from "meriyah";
33

44
// Import Internal Dependencies
5+
import {
6+
getMemberExpressionIdentifier
7+
} from "./getMemberExpressionIdentifier.ts";
58
import {
69
type DefaultOptions,
710
noop
8-
} from "./options.js";
11+
} from "./options.ts";
912
import {
10-
isNode,
1113
isCallExpression,
12-
isLiteral
13-
} from "./utils/is.js";
14-
import {
15-
getMemberExpressionIdentifier
16-
} from "./getMemberExpressionIdentifier.js";
14+
isLiteral,
15+
isNode
16+
} from "./utils/is.ts";
1717

1818
export interface ArrayExpressionToStringOptions extends DefaultOptions {
1919
/**

workspaces/estree-ast-utils/src/concatBinaryExpression.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
import type { ESTree } from "meriyah";
33

44
// Import Internal Dependencies
5-
import { arrayExpressionToString } from "./arrayExpression.js";
5+
import { arrayExpressionToString } from "./arrayExpression.ts";
66
import {
77
type DefaultOptions,
88
noop
9-
} from "./options.js";
9+
} from "./options.ts";
1010

1111
// CONSTANTS
1212
const kBinaryExprTypes = new Set([

workspaces/estree-ast-utils/src/getCallExpressionArguments.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { Hex } from "@nodesecure/sec-literal";
33
import type { ESTree } from "meriyah";
44

55
// Import Internal Dependencies
6-
import { concatBinaryExpression } from "./concatBinaryExpression.js";
6+
import { concatBinaryExpression } from "./concatBinaryExpression.ts";
77
import {
88
type DefaultOptions,
99
noop
10-
} from "./options.js";
10+
} from "./options.ts";
1111

1212
export function getCallExpressionArguments(
1313
node: ESTree.Node,

workspaces/estree-ast-utils/src/getCallExpressionIdentifier.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
import type { ESTree } from "meriyah";
33

44
// Import Internal Dependencies
5-
import { getMemberExpressionIdentifier } from "./getMemberExpressionIdentifier.js";
5+
import { getMemberExpressionIdentifier } from "./getMemberExpressionIdentifier.ts";
66
import {
77
type DefaultOptions,
88
noop
9-
} from "./options.js";
9+
} from "./options.ts";
1010

1111
export interface GetCallExpressionIdentifierOptions extends DefaultOptions {
1212
/**

workspaces/estree-ast-utils/src/getMemberExpressionIdentifier.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Import Third-party Dependencies
2-
import type { ESTree } from "meriyah";
32
import { Hex } from "@nodesecure/sec-literal";
3+
import type { ESTree } from "meriyah";
44

55
// Import Internal Dependencies
6-
import { concatBinaryExpression } from "./concatBinaryExpression.js";
6+
import { concatBinaryExpression } from "./concatBinaryExpression.ts";
77
import {
88
type DefaultOptions,
99
noop
10-
} from "./options.js";
10+
} from "./options.ts";
1111

1212
/**
1313
* Return the complete identifier of a MemberExpression
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
export * from "./getMemberExpressionIdentifier.js";
2-
export * from "./getCallExpressionIdentifier.js";
3-
export * from "./getVariableDeclarationIdentifiers.js";
4-
export * from "./getCallExpressionArguments.js";
5-
export * from "./concatBinaryExpression.js";
6-
export * from "./arrayExpression.js";
7-
export * from "./extractLogicalExpression.js";
8-
export * from "./utils/is.js";
9-
export type { DefaultOptions } from "./options.js";
1+
export * from "./arrayExpression.ts";
2+
export * from "./concatBinaryExpression.ts";
3+
export * from "./extractLogicalExpression.ts";
4+
export * from "./getCallExpressionArguments.ts";
5+
export * from "./getCallExpressionIdentifier.ts";
6+
export * from "./getMemberExpressionIdentifier.ts";
7+
export * from "./getVariableDeclarationIdentifiers.ts";
8+
export type { DefaultOptions } from "./options.ts";
9+
export * from "./utils/is.ts";
10+

workspaces/estree-ast-utils/test/arrayExpression.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Import Node.js Dependencies
2-
import { describe, test } from "node:test";
32
import assert from "node:assert";
3+
import { describe, test } from "node:test";
44

55
// Import Third-party Dependencies
66
import { IteratorMatcher } from "iterator-matcher";
@@ -9,12 +9,12 @@ import { IteratorMatcher } from "iterator-matcher";
99
import {
1010
arrayExpressionToString,
1111
joinArrayExpression
12-
} from "../src/index.js";
12+
} from "../src/index.ts";
1313
import {
1414
codeToAst,
1515
getExpressionFromStatement,
1616
getExpressionFromStatementIf
17-
} from "./utils.js";
17+
} from "./utils.ts";
1818

1919
describe("arrayExpressionToString", () => {
2020
test("given an ArrayExpression with two Literals then the iterable must return them one by one", () => {

0 commit comments

Comments
 (0)