diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index de5da12..b3c86ab 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: "20.x" + node-version: "23.x" registry-url: "https://registry.npmjs.org" - name: Run npm ci run: npm ci diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5e3a902..eb86b21 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -49,7 +49,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: "20.x" + node-version: "23.x" registry-url: "https://registry.npmjs.org" - name: Publish to NPM diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 423b87f..cf5ce2a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: "20.x" + node-version: "23.x" registry-url: "https://registry.npmjs.org" - name: Run npm ci run: npm ci diff --git a/.mocharc.json b/.mocharc.json index 8e3925f..1cfef9e 100644 --- a/.mocharc.json +++ b/.mocharc.json @@ -2,8 +2,5 @@ "require": [ "ts-node/register" ], - "loader": "ts-node/esm", - "spec": "src/**/*.test.ts", - "watch-extensions": "ts", - "recursive": true + "spec": "src/**/*.test.ts" } diff --git a/tsconfig.json b/tsconfig.json index 8cfb3e8..2ec31d6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,6 +2,7 @@ "compilerOptions": { "target": "es6", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ "module": "CommonJS", /* Specify what module code is generated. */ + "moduleResolution": "node", "outDir": "./dist", "rootDir": "./src", "sourceMap": true, @@ -9,7 +10,6 @@ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ "strict": true, /* Enable all strict type-checking options. */ - "moduleResolution": "node", "noImplicitAny": true, "strictNullChecks": true, "alwaysStrict": true,