From a9172bb263cc200cd163012c97d0726449305dfa Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Fri, 6 Jan 2023 23:34:10 +0900 Subject: [PATCH 01/14] fix: apply tsconfig to matched files --- package.json | 2 +- pnpm-lock.yaml | 11 +++++++++-- src/index.ts | 7 ++++--- .../tsconfig-custom/tsconfig.custom-name.json | 5 ++++- 4 files changed, 18 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 9c581e3..9581847 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ }, "dependencies": { "@esbuild-kit/core-utils": "^3.0.0", - "get-tsconfig": "^4.2.0" + "get-tsconfig": "github:privatenumber/get-tsconfig#npm/file-matcher" }, "devDependencies": { "@pvtnbr/eslint-config": "^0.30.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2ad6384..60824f9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,7 +10,7 @@ specifiers: eslint: ^8.24.0 execa: ^6.1.0 get-node: ^13.2.0 - get-tsconfig: ^4.2.0 + get-tsconfig: github:privatenumber/get-tsconfig#npm/file-matcher manten: ^0.3.0 pkgroll: ^1.4.0 semver: ^7.3.7 @@ -19,7 +19,7 @@ specifiers: dependencies: '@esbuild-kit/core-utils': 3.0.0 - get-tsconfig: 4.2.0 + get-tsconfig: github.com/privatenumber/get-tsconfig/76a834efa6b5e6ae13318bedc53122dfeddc8393 devDependencies: '@pvtnbr/eslint-config': 0.30.1_ypn2ylkkyfa5i233caldtndbqa @@ -2109,6 +2109,7 @@ packages: /get-tsconfig/4.2.0: resolution: {integrity: sha512-X8u8fREiYOE6S8hLbq99PeykTDoLVnxvF4DjWKJmz9xy2nNRdUcV8ZN9tniJFeKyTU3qnC9lL8n4Chd6LmVKHg==} + dev: true /glob-parent/5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} @@ -3862,3 +3863,9 @@ packages: resolution: {integrity: sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==} engines: {node: '>=12.20'} dev: true + + github.com/privatenumber/get-tsconfig/76a834efa6b5e6ae13318bedc53122dfeddc8393: + resolution: {tarball: https://codeload.github.com/privatenumber/get-tsconfig/tar.gz/76a834efa6b5e6ae13318bedc53122dfeddc8393} + name: get-tsconfig + version: 0.0.0-semantic-release + dev: false diff --git a/src/index.ts b/src/index.ts index 5dcc41f..2817d42 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,6 +12,7 @@ import { getTsconfig, parseTsconfig, createPathsMatcher, + createFilesMatcher, } from 'get-tsconfig'; import type { TransformOptions } from 'esbuild'; @@ -22,13 +23,13 @@ const nodeModulesPath = `${path.sep}node_modules${path.sep}`; const tsconfig = ( process.env.ESBK_TSCONFIG_PATH ? { - path: process.env.ESBK_TSCONFIG_PATH, + path: path.resolve(process.env.ESBK_TSCONFIG_PATH), config: parseTsconfig(process.env.ESBK_TSCONFIG_PATH), } : getTsconfig() ); -const tsconfigRaw = tsconfig?.config; +const fileMatcher = tsconfig && createFilesMatcher(tsconfig); const tsconfigPathsMatcher = tsconfig && createPathsMatcher(tsconfig); const applySourceMap = installSourceMapSupport(); @@ -70,7 +71,7 @@ function transformer( code, filePath, { - tsconfigRaw: tsconfigRaw as TransformOptions['tsconfigRaw'], + tsconfigRaw: fileMatcher?.(filePath) as TransformOptions['tsconfigRaw'], }, ); diff --git a/tests/fixtures/tsconfig/tsconfig-custom/tsconfig.custom-name.json b/tests/fixtures/tsconfig/tsconfig-custom/tsconfig.custom-name.json index b437804..f8e6499 100644 --- a/tests/fixtures/tsconfig/tsconfig-custom/tsconfig.custom-name.json +++ b/tests/fixtures/tsconfig/tsconfig-custom/tsconfig.custom-name.json @@ -2,5 +2,8 @@ "extends": "../tsconfig.json", "compilerOptions": { "jsxFactory": "console.error" - } + }, + "include": [ + "../src" + ] } From e4da702ca0c90cd8b74bc46183f7fda0c3041f78 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Fri, 6 Jan 2023 23:52:37 +0900 Subject: [PATCH 02/14] wip --- .github/workflows/test.yml | 12 +-- src/index.ts | 3 + tests/index.ts | 20 ++--- tests/specs/typescript/index.ts | 12 +-- tests/specs/typescript/tsconfig.ts | 116 ++++++++++++++--------------- 5 files changed, 83 insertions(+), 80 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6274a2b..27db0cc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,13 +29,13 @@ jobs: version: 7 run_install: true - - name: Lint - if: ${{ matrix.os == 'ubuntu-latest' }} - run: pnpm lint + # - name: Lint + # if: ${{ matrix.os == 'ubuntu-latest' }} + # run: pnpm lint - - name: Type check - if: ${{ matrix.os == 'ubuntu-latest' }} - run: pnpm type-check + # - name: Type check + # if: ${{ matrix.os == 'ubuntu-latest' }} + # run: pnpm type-check - name: Test run: pnpm test diff --git a/src/index.ts b/src/index.ts index 2817d42..de7d0a0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -67,6 +67,9 @@ function transformer( code = applySourceMap(transformed, filePath); } } else { + console.log({ + filePath, + }); const transformed = transformSync( code, filePath, diff --git a/tests/index.ts b/tests/index.ts index d566772..a828418 100644 --- a/tests/index.ts +++ b/tests/index.ts @@ -3,14 +3,14 @@ import { createNode } from './utils/node-with-loader'; const nodeVersions = [ '12.16.2', // Pre ESM import - '12.22.11', + // '12.22.11', ...( process.env.CI ? [ - '14.19.1', - '16.14.2', - '17.8.0', - '18.0.0', + // '14.19.1', + // '16.14.2', + // '17.8.0', + // '18.0.0', ] : [] ), @@ -21,11 +21,11 @@ const nodeVersions = [ const node = await createNode(nodeVersion, './tests/fixtures'); await describe(`Node ${node.version}`, ({ runTestSuite }) => { - runTestSuite( - // eslint-disable-next-line node/global-require,@typescript-eslint/no-var-requires - (require('./specs/javascript') as typeof import('./specs/javascript')).default, - node, - ); + // runTestSuite( + // // eslint-disable-next-line node/global-require,@typescript-eslint/no-var-requires + // (require('./specs/javascript') as typeof import('./specs/javascript')).default, + // node, + // ); runTestSuite( // eslint-disable-next-line node/global-require,@typescript-eslint/no-var-requires (require('./specs/typescript') as typeof import('./specs/typescript')).default, diff --git a/tests/specs/typescript/index.ts b/tests/specs/typescript/index.ts index faecbcf..deb56d1 100644 --- a/tests/specs/typescript/index.ts +++ b/tests/specs/typescript/index.ts @@ -10,12 +10,12 @@ import specDependencies from './dependencies'; export default testSuite(async ({ describe }, node: NodeApis) => { describe('TypeScript', async ({ runTestSuite }) => { - runTestSuite(specTs, node); - runTestSuite(specTsx, node); - runTestSuite(specJsx, node); - runTestSuite(specMts, node); - runTestSuite(specCts, node); + // runTestSuite(specTs, node); + // runTestSuite(specTsx, node); + // runTestSuite(specJsx, node); + // runTestSuite(specMts, node); + // runTestSuite(specCts, node); runTestSuite(specTsconfig, node); - runTestSuite(specDependencies, node); + // runTestSuite(specDependencies, node); }); }); diff --git a/tests/specs/typescript/tsconfig.ts b/tests/specs/typescript/tsconfig.ts index 47edd78..06d372a 100644 --- a/tests/specs/typescript/tsconfig.ts +++ b/tests/specs/typescript/tsconfig.ts @@ -21,71 +21,71 @@ export default testSuite(async ({ describe }, node: NodeApis) => { expect(nodeProcess.stderr).toBe('div null hello world\nnull null goodbye world'); }); - describe('paths', ({ test, describe }) => { - test('resolves baseUrl', async () => { - const nodeProcess = await node.load('./src/base-url.ts', { - cwd: './tsconfig', - }); - expect(nodeProcess.stdout).toBe('resolve-target loaded\nresolve-target value'); - }); + // describe('paths', ({ test, describe }) => { + // test('resolves baseUrl', async () => { + // const nodeProcess = await node.load('./src/base-url.ts', { + // cwd: './tsconfig', + // }); + // expect(nodeProcess.stdout).toBe('resolve-target loaded\nresolve-target value'); + // }); - test('Require flag', async () => { - const nodeProcess = await node.requireFlag('resolve-target', { - cwd: './tsconfig', - }); - expect(nodeProcess.stdout).toMatch('resolve-target loaded'); - }); + // test('Require flag', async () => { + // const nodeProcess = await node.requireFlag('resolve-target', { + // cwd: './tsconfig', + // }); + // expect(nodeProcess.stdout).toMatch('resolve-target loaded'); + // }); - test('resolves paths exact match', async () => { - const nodeProcess = await node.load('./src/paths-exact-match.ts', { - cwd: './tsconfig', - }); - expect(nodeProcess.stdout).toBe('resolve-target loaded\nresolve-target value'); - }); + // test('resolves paths exact match', async () => { + // const nodeProcess = await node.load('./src/paths-exact-match.ts', { + // cwd: './tsconfig', + // }); + // expect(nodeProcess.stdout).toBe('resolve-target loaded\nresolve-target value'); + // }); - test('resolves paths prefix', async () => { - const nodeProcess = await node.load('./src/paths-prefix-match.ts', { - cwd: './tsconfig', - }); - expect(nodeProcess.stdout).toBe('nested-resolve-target'); - }); + // test('resolves paths prefix', async () => { + // const nodeProcess = await node.load('./src/paths-prefix-match.ts', { + // cwd: './tsconfig', + // }); + // expect(nodeProcess.stdout).toBe('nested-resolve-target'); + // }); - test('resolves paths suffix', async () => { - const nodeProcess = await node.load('./src/paths-suffix-match.ts', { - cwd: './tsconfig', - }); - expect(nodeProcess.stdout).toBe('nested-resolve-target'); - }); + // test('resolves paths suffix', async () => { + // const nodeProcess = await node.load('./src/paths-suffix-match.ts', { + // cwd: './tsconfig', + // }); + // expect(nodeProcess.stdout).toBe('nested-resolve-target'); + // }); - test('resolves paths via .js', async () => { - const nodeProcess = await node.load('./src/paths-prefix-match-js.ts', { - cwd: './tsconfig', - }); - expect(nodeProcess.stdout).toBe('nested-resolve-target'); - }); + // test('resolves paths via .js', async () => { + // const nodeProcess = await node.load('./src/paths-prefix-match-js.ts', { + // cwd: './tsconfig', + // }); + // expect(nodeProcess.stdout).toBe('nested-resolve-target'); + // }); - describe('dependency', ({ test }) => { - test('resolve current directory', async () => { - const nodeProcess = await node.load('./dependency-resolve-current-directory', { - cwd: './tsconfig', - }); - expect(nodeProcess.stdout).toBe('resolved'); - }); + // describe('dependency', ({ test }) => { + // test('resolve current directory', async () => { + // const nodeProcess = await node.load('./dependency-resolve-current-directory', { + // cwd: './tsconfig', + // }); + // expect(nodeProcess.stdout).toBe('resolved'); + // }); - test('should not resolve baseUrl', async () => { - const nodeProcess = await node.load('./dependency-should-not-resolve-baseUrl', { - cwd: './tsconfig', - }); - expect(nodeProcess.stdout).toBe('resolved'); - }); + // test('should not resolve baseUrl', async () => { + // const nodeProcess = await node.load('./dependency-should-not-resolve-baseUrl', { + // cwd: './tsconfig', + // }); + // expect(nodeProcess.stdout).toBe('resolved'); + // }); - test('should not resolve paths', async () => { - const nodeProcess = await node.load('./dependency-should-not-resolve-paths', { - cwd: './tsconfig', - }); - expect(nodeProcess.stdout).toBe('resolved'); - }); - }); - }); + // test('should not resolve paths', async () => { + // const nodeProcess = await node.load('./dependency-should-not-resolve-paths', { + // cwd: './tsconfig', + // }); + // expect(nodeProcess.stdout).toBe('resolved'); + // }); + // }); + // }); }); }); From e72748583294a7090620fb30c11df607945e15c7 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Fri, 6 Jan 2023 23:55:18 +0900 Subject: [PATCH 03/14] wip --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 27db0cc..6c2ee5b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest] + os: [windows-latest] timeout-minutes: 10 steps: From 0531b2411e1ccf2f58d879b20757099fc33c3ef9 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Sat, 7 Jan 2023 12:55:29 +0900 Subject: [PATCH 04/14] wip --- pnpm-lock.yaml | 6 +++--- src/index.ts | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 60824f9..8992827 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -19,7 +19,7 @@ specifiers: dependencies: '@esbuild-kit/core-utils': 3.0.0 - get-tsconfig: github.com/privatenumber/get-tsconfig/76a834efa6b5e6ae13318bedc53122dfeddc8393 + get-tsconfig: github.com/privatenumber/get-tsconfig/b256d7d3a508b5eaf0c2154e7ffaca368b056803 devDependencies: '@pvtnbr/eslint-config': 0.30.1_ypn2ylkkyfa5i233caldtndbqa @@ -3864,8 +3864,8 @@ packages: engines: {node: '>=12.20'} dev: true - github.com/privatenumber/get-tsconfig/76a834efa6b5e6ae13318bedc53122dfeddc8393: - resolution: {tarball: https://codeload.github.com/privatenumber/get-tsconfig/tar.gz/76a834efa6b5e6ae13318bedc53122dfeddc8393} + github.com/privatenumber/get-tsconfig/b256d7d3a508b5eaf0c2154e7ffaca368b056803: + resolution: {tarball: https://codeload.github.com/privatenumber/get-tsconfig/tar.gz/b256d7d3a508b5eaf0c2154e7ffaca368b056803} name: get-tsconfig version: 0.0.0-semantic-release dev: false diff --git a/src/index.ts b/src/index.ts index de7d0a0..2817d42 100644 --- a/src/index.ts +++ b/src/index.ts @@ -67,9 +67,6 @@ function transformer( code = applySourceMap(transformed, filePath); } } else { - console.log({ - filePath, - }); const transformed = transformSync( code, filePath, From 9a86a57d3e7ba203311189c39c935881802718f8 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Sat, 7 Jan 2023 12:59:07 +0900 Subject: [PATCH 05/14] wip --- .github/workflows/test.yml | 14 ++-- tests/index.ts | 20 ++--- tests/specs/typescript/index.ts | 12 +-- tests/specs/typescript/tsconfig.ts | 116 ++++++++++++++--------------- 4 files changed, 81 insertions(+), 81 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6c2ee5b..6274a2b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [windows-latest] + os: [ubuntu-latest, windows-latest] timeout-minutes: 10 steps: @@ -29,13 +29,13 @@ jobs: version: 7 run_install: true - # - name: Lint - # if: ${{ matrix.os == 'ubuntu-latest' }} - # run: pnpm lint + - name: Lint + if: ${{ matrix.os == 'ubuntu-latest' }} + run: pnpm lint - # - name: Type check - # if: ${{ matrix.os == 'ubuntu-latest' }} - # run: pnpm type-check + - name: Type check + if: ${{ matrix.os == 'ubuntu-latest' }} + run: pnpm type-check - name: Test run: pnpm test diff --git a/tests/index.ts b/tests/index.ts index a828418..d566772 100644 --- a/tests/index.ts +++ b/tests/index.ts @@ -3,14 +3,14 @@ import { createNode } from './utils/node-with-loader'; const nodeVersions = [ '12.16.2', // Pre ESM import - // '12.22.11', + '12.22.11', ...( process.env.CI ? [ - // '14.19.1', - // '16.14.2', - // '17.8.0', - // '18.0.0', + '14.19.1', + '16.14.2', + '17.8.0', + '18.0.0', ] : [] ), @@ -21,11 +21,11 @@ const nodeVersions = [ const node = await createNode(nodeVersion, './tests/fixtures'); await describe(`Node ${node.version}`, ({ runTestSuite }) => { - // runTestSuite( - // // eslint-disable-next-line node/global-require,@typescript-eslint/no-var-requires - // (require('./specs/javascript') as typeof import('./specs/javascript')).default, - // node, - // ); + runTestSuite( + // eslint-disable-next-line node/global-require,@typescript-eslint/no-var-requires + (require('./specs/javascript') as typeof import('./specs/javascript')).default, + node, + ); runTestSuite( // eslint-disable-next-line node/global-require,@typescript-eslint/no-var-requires (require('./specs/typescript') as typeof import('./specs/typescript')).default, diff --git a/tests/specs/typescript/index.ts b/tests/specs/typescript/index.ts index deb56d1..faecbcf 100644 --- a/tests/specs/typescript/index.ts +++ b/tests/specs/typescript/index.ts @@ -10,12 +10,12 @@ import specDependencies from './dependencies'; export default testSuite(async ({ describe }, node: NodeApis) => { describe('TypeScript', async ({ runTestSuite }) => { - // runTestSuite(specTs, node); - // runTestSuite(specTsx, node); - // runTestSuite(specJsx, node); - // runTestSuite(specMts, node); - // runTestSuite(specCts, node); + runTestSuite(specTs, node); + runTestSuite(specTsx, node); + runTestSuite(specJsx, node); + runTestSuite(specMts, node); + runTestSuite(specCts, node); runTestSuite(specTsconfig, node); - // runTestSuite(specDependencies, node); + runTestSuite(specDependencies, node); }); }); diff --git a/tests/specs/typescript/tsconfig.ts b/tests/specs/typescript/tsconfig.ts index 06d372a..47edd78 100644 --- a/tests/specs/typescript/tsconfig.ts +++ b/tests/specs/typescript/tsconfig.ts @@ -21,71 +21,71 @@ export default testSuite(async ({ describe }, node: NodeApis) => { expect(nodeProcess.stderr).toBe('div null hello world\nnull null goodbye world'); }); - // describe('paths', ({ test, describe }) => { - // test('resolves baseUrl', async () => { - // const nodeProcess = await node.load('./src/base-url.ts', { - // cwd: './tsconfig', - // }); - // expect(nodeProcess.stdout).toBe('resolve-target loaded\nresolve-target value'); - // }); + describe('paths', ({ test, describe }) => { + test('resolves baseUrl', async () => { + const nodeProcess = await node.load('./src/base-url.ts', { + cwd: './tsconfig', + }); + expect(nodeProcess.stdout).toBe('resolve-target loaded\nresolve-target value'); + }); - // test('Require flag', async () => { - // const nodeProcess = await node.requireFlag('resolve-target', { - // cwd: './tsconfig', - // }); - // expect(nodeProcess.stdout).toMatch('resolve-target loaded'); - // }); + test('Require flag', async () => { + const nodeProcess = await node.requireFlag('resolve-target', { + cwd: './tsconfig', + }); + expect(nodeProcess.stdout).toMatch('resolve-target loaded'); + }); - // test('resolves paths exact match', async () => { - // const nodeProcess = await node.load('./src/paths-exact-match.ts', { - // cwd: './tsconfig', - // }); - // expect(nodeProcess.stdout).toBe('resolve-target loaded\nresolve-target value'); - // }); + test('resolves paths exact match', async () => { + const nodeProcess = await node.load('./src/paths-exact-match.ts', { + cwd: './tsconfig', + }); + expect(nodeProcess.stdout).toBe('resolve-target loaded\nresolve-target value'); + }); - // test('resolves paths prefix', async () => { - // const nodeProcess = await node.load('./src/paths-prefix-match.ts', { - // cwd: './tsconfig', - // }); - // expect(nodeProcess.stdout).toBe('nested-resolve-target'); - // }); + test('resolves paths prefix', async () => { + const nodeProcess = await node.load('./src/paths-prefix-match.ts', { + cwd: './tsconfig', + }); + expect(nodeProcess.stdout).toBe('nested-resolve-target'); + }); - // test('resolves paths suffix', async () => { - // const nodeProcess = await node.load('./src/paths-suffix-match.ts', { - // cwd: './tsconfig', - // }); - // expect(nodeProcess.stdout).toBe('nested-resolve-target'); - // }); + test('resolves paths suffix', async () => { + const nodeProcess = await node.load('./src/paths-suffix-match.ts', { + cwd: './tsconfig', + }); + expect(nodeProcess.stdout).toBe('nested-resolve-target'); + }); - // test('resolves paths via .js', async () => { - // const nodeProcess = await node.load('./src/paths-prefix-match-js.ts', { - // cwd: './tsconfig', - // }); - // expect(nodeProcess.stdout).toBe('nested-resolve-target'); - // }); + test('resolves paths via .js', async () => { + const nodeProcess = await node.load('./src/paths-prefix-match-js.ts', { + cwd: './tsconfig', + }); + expect(nodeProcess.stdout).toBe('nested-resolve-target'); + }); - // describe('dependency', ({ test }) => { - // test('resolve current directory', async () => { - // const nodeProcess = await node.load('./dependency-resolve-current-directory', { - // cwd: './tsconfig', - // }); - // expect(nodeProcess.stdout).toBe('resolved'); - // }); + describe('dependency', ({ test }) => { + test('resolve current directory', async () => { + const nodeProcess = await node.load('./dependency-resolve-current-directory', { + cwd: './tsconfig', + }); + expect(nodeProcess.stdout).toBe('resolved'); + }); - // test('should not resolve baseUrl', async () => { - // const nodeProcess = await node.load('./dependency-should-not-resolve-baseUrl', { - // cwd: './tsconfig', - // }); - // expect(nodeProcess.stdout).toBe('resolved'); - // }); + test('should not resolve baseUrl', async () => { + const nodeProcess = await node.load('./dependency-should-not-resolve-baseUrl', { + cwd: './tsconfig', + }); + expect(nodeProcess.stdout).toBe('resolved'); + }); - // test('should not resolve paths', async () => { - // const nodeProcess = await node.load('./dependency-should-not-resolve-paths', { - // cwd: './tsconfig', - // }); - // expect(nodeProcess.stdout).toBe('resolved'); - // }); - // }); - // }); + test('should not resolve paths', async () => { + const nodeProcess = await node.load('./dependency-should-not-resolve-paths', { + cwd: './tsconfig', + }); + expect(nodeProcess.stdout).toBe('resolved'); + }); + }); + }); }); }); From 70824488984c3589de78f1a751546ebeac79b333 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Sat, 7 Jan 2023 18:39:03 +0900 Subject: [PATCH 06/14] wip --- pnpm-lock.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8992827..9ae1dec 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -19,7 +19,7 @@ specifiers: dependencies: '@esbuild-kit/core-utils': 3.0.0 - get-tsconfig: github.com/privatenumber/get-tsconfig/b256d7d3a508b5eaf0c2154e7ffaca368b056803 + get-tsconfig: github.com/privatenumber/get-tsconfig/2a9640126cbcea030c9d2e762f5b4411136b296d devDependencies: '@pvtnbr/eslint-config': 0.30.1_ypn2ylkkyfa5i233caldtndbqa @@ -3864,8 +3864,8 @@ packages: engines: {node: '>=12.20'} dev: true - github.com/privatenumber/get-tsconfig/b256d7d3a508b5eaf0c2154e7ffaca368b056803: - resolution: {tarball: https://codeload.github.com/privatenumber/get-tsconfig/tar.gz/b256d7d3a508b5eaf0c2154e7ffaca368b056803} + github.com/privatenumber/get-tsconfig/2a9640126cbcea030c9d2e762f5b4411136b296d: + resolution: {tarball: https://codeload.github.com/privatenumber/get-tsconfig/tar.gz/2a9640126cbcea030c9d2e762f5b4411136b296d} name: get-tsconfig version: 0.0.0-semantic-release dev: false From 739bcd5b80dcf58e26472f9e6b740d0c1e882677 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Sun, 8 Jan 2023 19:47:57 +0900 Subject: [PATCH 07/14] test: cover tsconfig scope --- .../tsconfig/src-excluded/strict-mode.ts | 5 ++++ tests/fixtures/tsconfig/src/strict-mode-js.js | 5 ++++ tests/fixtures/tsconfig/src/strict-mode.ts | 5 ++++ tests/fixtures/tsconfig/tsconfig.json | 6 ++++- tests/specs/typescript/tsconfig.ts | 23 +++++++++++++++++++ 5 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 tests/fixtures/tsconfig/src-excluded/strict-mode.ts create mode 100644 tests/fixtures/tsconfig/src/strict-mode-js.js create mode 100644 tests/fixtures/tsconfig/src/strict-mode.ts diff --git a/tests/fixtures/tsconfig/src-excluded/strict-mode.ts b/tests/fixtures/tsconfig/src-excluded/strict-mode.ts new file mode 100644 index 0000000..4355dae --- /dev/null +++ b/tests/fixtures/tsconfig/src-excluded/strict-mode.ts @@ -0,0 +1,5 @@ +(function (param) { + param = 2; + const isStrictMode = arguments[0] !== 2; + console.log(isStrictMode ? 'strict mode' : 'not strict mode'); +})(1); diff --git a/tests/fixtures/tsconfig/src/strict-mode-js.js b/tests/fixtures/tsconfig/src/strict-mode-js.js new file mode 100644 index 0000000..4355dae --- /dev/null +++ b/tests/fixtures/tsconfig/src/strict-mode-js.js @@ -0,0 +1,5 @@ +(function (param) { + param = 2; + const isStrictMode = arguments[0] !== 2; + console.log(isStrictMode ? 'strict mode' : 'not strict mode'); +})(1); diff --git a/tests/fixtures/tsconfig/src/strict-mode.ts b/tests/fixtures/tsconfig/src/strict-mode.ts new file mode 100644 index 0000000..4355dae --- /dev/null +++ b/tests/fixtures/tsconfig/src/strict-mode.ts @@ -0,0 +1,5 @@ +(function (param) { + param = 2; + const isStrictMode = arguments[0] !== 2; + console.log(isStrictMode ? 'strict mode' : 'not strict mode'); +})(1); diff --git a/tests/fixtures/tsconfig/tsconfig.json b/tests/fixtures/tsconfig/tsconfig.json index 40c2faa..aebf58f 100644 --- a/tests/fixtures/tsconfig/tsconfig.json +++ b/tests/fixtures/tsconfig/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "strict": true, "jsx": "react", "jsxFactory": "console.log", "jsxFragmentFactory": "null", @@ -9,5 +10,8 @@ "p/*": ["utils/*"], "*/s": ["utils/*"] }, - } + }, + "exclude": [ + "src-excluded" + ] } diff --git a/tests/specs/typescript/tsconfig.ts b/tests/specs/typescript/tsconfig.ts index 47edd78..c435761 100644 --- a/tests/specs/typescript/tsconfig.ts +++ b/tests/specs/typescript/tsconfig.ts @@ -10,6 +10,29 @@ export default testSuite(async ({ describe }, node: NodeApis) => { expect(nodeProcess.stdout).toBe('div null hello world\nnull null goodbye world'); }); + describe('scope', ({ test }) => { + test('applies strict mode', async () => { + const nodeProcess = await node.load('./src/strict-mode.ts', { + cwd: './tsconfig', + }); + expect(nodeProcess.stdout).toBe('strict mode'); + }); + + test('doesnt apply strict mode', async () => { + const nodeProcess = await node.load('./src-excluded/strict-mode.ts', { + cwd: './tsconfig', + }); + expect(nodeProcess.stdout).toBe('not strict mode'); + }); + + test('doesnt apply strict mode js', async () => { + const nodeProcess = await node.load('./src/strict-mode-js.js', { + cwd: './tsconfig', + }); + expect(nodeProcess.stdout).toBe('not strict mode'); + }); + }); + test('Custom tsconfig.json path', async () => { const nodeProcess = await node.load('./src/tsx.tsx', { cwd: './tsconfig', From a029197fc1ed1d9206869ea83aaddfcd007d4980 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Sun, 8 Jan 2023 19:54:24 +0900 Subject: [PATCH 08/14] test: cover tsconfig scope --- tests/fixtures/tsconfig/src-excluded/tsx.tsx | 12 ++++++++++++ tests/specs/typescript/tsconfig.ts | 7 +++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/fixtures/tsconfig/src-excluded/tsx.tsx diff --git a/tests/fixtures/tsconfig/src-excluded/tsx.tsx b/tests/fixtures/tsconfig/src-excluded/tsx.tsx new file mode 100644 index 0000000..9b97927 --- /dev/null +++ b/tests/fixtures/tsconfig/src-excluded/tsx.tsx @@ -0,0 +1,12 @@ +export default [ + ( +
+ hello world +
+ ), + ( + <> + goodbye world + + ), +]; diff --git a/tests/specs/typescript/tsconfig.ts b/tests/specs/typescript/tsconfig.ts index c435761..5fd7a20 100644 --- a/tests/specs/typescript/tsconfig.ts +++ b/tests/specs/typescript/tsconfig.ts @@ -31,6 +31,13 @@ export default testSuite(async ({ describe }, node: NodeApis) => { }); expect(nodeProcess.stdout).toBe('not strict mode'); }); + + test('jsxFactory & jsxFragmentFactory not applied', async () => { + const nodeProcess = await node.load('./src-excluded/tsx.tsx', { + cwd: './tsconfig', + }); + expect(nodeProcess.stderr).toMatch('ReferenceError: React is not defined'); + }); }); test('Custom tsconfig.json path', async () => { From 858d7c6dabf1fa89ea7a070c6189e781b67a85e3 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Mon, 9 Jan 2023 13:21:34 +0900 Subject: [PATCH 09/14] wip --- package.json | 1 + pnpm-lock.yaml | 7 ++ .../tsconfig/src-excluded/strict-mode.ts | 5 - tests/fixtures/tsconfig/src-excluded/tsx.tsx | 12 -- tests/fixtures/tsconfig/src/strict-mode-js.js | 5 - tests/fixtures/tsconfig/src/strict-mode.ts | 5 - tests/specs/typescript/tsconfig.ts | 107 +++++++++++++++--- tests/utils/node-with-loader.ts | 2 +- 8 files changed, 98 insertions(+), 46 deletions(-) delete mode 100644 tests/fixtures/tsconfig/src-excluded/strict-mode.ts delete mode 100644 tests/fixtures/tsconfig/src-excluded/tsx.tsx delete mode 100644 tests/fixtures/tsconfig/src/strict-mode-js.js delete mode 100644 tests/fixtures/tsconfig/src/strict-mode.ts diff --git a/package.json b/package.json index 9581847..6826f75 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "esbuild": "^0.15.10", "eslint": "^8.24.0", "execa": "^6.1.0", + "fs-fixture": "^1.2.0", "get-node": "^13.2.0", "manten": "^0.3.0", "pkgroll": "^1.4.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9ae1dec..54cc9a2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,6 +9,7 @@ specifiers: esbuild: ^0.15.10 eslint: ^8.24.0 execa: ^6.1.0 + fs-fixture: ^1.2.0 get-node: ^13.2.0 get-tsconfig: github:privatenumber/get-tsconfig#npm/file-matcher manten: ^0.3.0 @@ -29,6 +30,7 @@ devDependencies: esbuild: 0.15.10 eslint: 8.24.0 execa: 6.1.0 + fs-fixture: 1.2.0 get-node: 13.2.0 manten: 0.3.0 pkgroll: 1.4.0_typescript@4.8.4 @@ -2018,6 +2020,11 @@ packages: resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} dev: true + /fs-fixture/1.2.0: + resolution: {integrity: sha512-bPBNW12US81zxCXzP/BQ6ntSvMXNgX76nHVUxzQJVTmHkzXnbfp+M4mNWeJ9LuCG8M1wyeFov7oiwO9wnCEBjQ==} + engines: {node: '>=16.7.0'} + dev: true + /fs.realpath/1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} dev: true diff --git a/tests/fixtures/tsconfig/src-excluded/strict-mode.ts b/tests/fixtures/tsconfig/src-excluded/strict-mode.ts deleted file mode 100644 index 4355dae..0000000 --- a/tests/fixtures/tsconfig/src-excluded/strict-mode.ts +++ /dev/null @@ -1,5 +0,0 @@ -(function (param) { - param = 2; - const isStrictMode = arguments[0] !== 2; - console.log(isStrictMode ? 'strict mode' : 'not strict mode'); -})(1); diff --git a/tests/fixtures/tsconfig/src-excluded/tsx.tsx b/tests/fixtures/tsconfig/src-excluded/tsx.tsx deleted file mode 100644 index 9b97927..0000000 --- a/tests/fixtures/tsconfig/src-excluded/tsx.tsx +++ /dev/null @@ -1,12 +0,0 @@ -export default [ - ( -
- hello world -
- ), - ( - <> - goodbye world - - ), -]; diff --git a/tests/fixtures/tsconfig/src/strict-mode-js.js b/tests/fixtures/tsconfig/src/strict-mode-js.js deleted file mode 100644 index 4355dae..0000000 --- a/tests/fixtures/tsconfig/src/strict-mode-js.js +++ /dev/null @@ -1,5 +0,0 @@ -(function (param) { - param = 2; - const isStrictMode = arguments[0] !== 2; - console.log(isStrictMode ? 'strict mode' : 'not strict mode'); -})(1); diff --git a/tests/fixtures/tsconfig/src/strict-mode.ts b/tests/fixtures/tsconfig/src/strict-mode.ts deleted file mode 100644 index 4355dae..0000000 --- a/tests/fixtures/tsconfig/src/strict-mode.ts +++ /dev/null @@ -1,5 +0,0 @@ -(function (param) { - param = 2; - const isStrictMode = arguments[0] !== 2; - console.log(isStrictMode ? 'strict mode' : 'not strict mode'); -})(1); diff --git a/tests/specs/typescript/tsconfig.ts b/tests/specs/typescript/tsconfig.ts index 5fd7a20..f6f9c2d 100644 --- a/tests/specs/typescript/tsconfig.ts +++ b/tests/specs/typescript/tsconfig.ts @@ -1,4 +1,5 @@ import { testSuite, expect } from 'manten'; +import { createFixture } from 'fs-fixture'; import type { NodeApis } from '../../utils/node-with-loader'; export default testSuite(async ({ describe }, node: NodeApis) => { @@ -11,32 +12,102 @@ export default testSuite(async ({ describe }, node: NodeApis) => { }); describe('scope', ({ test }) => { - test('applies strict mode', async () => { - const nodeProcess = await node.load('./src/strict-mode.ts', { - cwd: './tsconfig', + const checkStrictMode = ` + (function (param) { + param = 2; + const isStrictMode = arguments[0] !== 2; + console.log(isStrictMode ? 'strict mode' : 'not strict mode'); + })(1); + `; + const checkJsx = 'export default (
)'; + + test('does not apply tsconfig to excluded', async () => { + const fixture = await createFixture({ + 'tsconfig.json': JSON.stringify({ + compilerOptions: { + strict: true, + jsxFactory: 'console.log', + }, + exclude: [ + 'excluded', + ], + }), + included: { + 'strict-mode-ts.ts': checkStrictMode, + 'strict-mode-js.js': checkStrictMode, + 'jsx.jsx': checkJsx, + 'tsx.tsx': checkJsx, + }, + excluded: { + 'strict-mode-ts.ts': checkStrictMode, + 'tsx.tsx': checkJsx, + }, }); - expect(nodeProcess.stdout).toBe('strict mode'); - }); - test('doesnt apply strict mode', async () => { - const nodeProcess = await node.load('./src-excluded/strict-mode.ts', { - cwd: './tsconfig', + const includedStrictTs = await node.load('./included/strict-mode-ts.ts', { + cwd: fixture.path, }); - expect(nodeProcess.stdout).toBe('not strict mode'); - }); + expect(includedStrictTs.stdout).toBe('strict mode'); - test('doesnt apply strict mode js', async () => { - const nodeProcess = await node.load('./src/strict-mode-js.js', { - cwd: './tsconfig', + const includedStrictJs = await node.load('./included/strict-mode-js.js', { + cwd: fixture.path, }); - expect(nodeProcess.stdout).toBe('not strict mode'); + expect(includedStrictJs.stdout).toBe('not strict mode'); + + const includedJsxTs = await node.load('./included/tsx.tsx', { + cwd: fixture.path, + }); + expect(includedJsxTs.stdout).toBe('div null'); + + const includedJsxJs = await node.load('./included/jsx.jsx', { + cwd: fixture.path, + }); + expect(includedJsxJs.stderr).toMatch('ReferenceError: React is not defined'); + + const excludedStrictTs = await node.load('./excluded/strict-mode-ts.ts', { + cwd: fixture.path, + }); + expect(excludedStrictTs.stdout).toBe('not strict mode'); + + const excludedJsxTs = await node.load('./excluded/tsx.tsx', { + cwd: fixture.path, + }); + expect(excludedJsxTs.stderr).toMatch('ReferenceError: React is not defined'); + + await fixture.rm(); }); - test('jsxFactory & jsxFragmentFactory not applied', async () => { - const nodeProcess = await node.load('./src-excluded/tsx.tsx', { - cwd: './tsconfig', + test('allowJs', async () => { + const fixture = await createFixture({ + 'tsconfig.json': JSON.stringify({ + compilerOptions: { + strict: true, + allowJs: true, + jsxFactory: 'console.log', + }, + exclude: [ + 'excluded', + ], + }), + src: { + 'strict-mode-ts.ts': checkStrictMode, + 'strict-mode-js.js': checkStrictMode, + 'jsx.jsx': checkJsx, + 'tsx.tsx': checkJsx, + }, }); - expect(nodeProcess.stderr).toMatch('ReferenceError: React is not defined'); + + const strictJs = await node.load('./src/strict-mode-js.js', { + cwd: fixture.path, + }); + expect(strictJs.stdout).toBe('strict mode'); + + const jsxJs = await node.load('./src/jsx.jsx', { + cwd: fixture.path, + }); + expect(jsxJs.stdout).toBe('div null'); + + await fixture.rm(); }); }); diff --git a/tests/utils/node-with-loader.ts b/tests/utils/node-with-loader.ts index f3dc496..1be0829 100644 --- a/tests/utils/node-with-loader.ts +++ b/tests/utils/node-with-loader.ts @@ -57,7 +57,7 @@ export async function createNode( args: [filePath], nodePath: node.path, - cwd: path.join(fixturePath, options?.cwd ?? ''), + cwd: path.resolve(fixturePath, options?.cwd ?? ''), env: options?.env, nodeOptions: options?.nodeOptions, }, From e67a0dfdd356b484abf38320e18cc10d8a92da88 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Mon, 9 Jan 2023 14:06:48 +0900 Subject: [PATCH 10/14] wip --- tests/fixtures/tsconfig/tsconfig.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/fixtures/tsconfig/tsconfig.json b/tests/fixtures/tsconfig/tsconfig.json index aebf58f..9d0c412 100644 --- a/tests/fixtures/tsconfig/tsconfig.json +++ b/tests/fixtures/tsconfig/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "strict": true, "jsx": "react", "jsxFactory": "console.log", "jsxFragmentFactory": "null", @@ -11,7 +10,4 @@ "*/s": ["utils/*"] }, }, - "exclude": [ - "src-excluded" - ] } From 6db3754ba951c307764d69e836b235d0e537cd95 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Mon, 9 Jan 2023 14:10:37 +0900 Subject: [PATCH 11/14] wip --- tests/specs/typescript/tsconfig.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/specs/typescript/tsconfig.ts b/tests/specs/typescript/tsconfig.ts index f6f9c2d..f42bd6a 100644 --- a/tests/specs/typescript/tsconfig.ts +++ b/tests/specs/typescript/tsconfig.ts @@ -85,15 +85,10 @@ export default testSuite(async ({ describe }, node: NodeApis) => { allowJs: true, jsxFactory: 'console.log', }, - exclude: [ - 'excluded', - ], }), src: { - 'strict-mode-ts.ts': checkStrictMode, 'strict-mode-js.js': checkStrictMode, 'jsx.jsx': checkJsx, - 'tsx.tsx': checkJsx, }, }); From 824de01fd2e2e4d2e716129f4a936959b7a2461b Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Sun, 5 Feb 2023 17:40:39 +0900 Subject: [PATCH 12/14] wip --- pnpm-lock.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 54cc9a2..2ad7b9c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,7 +20,7 @@ specifiers: dependencies: '@esbuild-kit/core-utils': 3.0.0 - get-tsconfig: github.com/privatenumber/get-tsconfig/2a9640126cbcea030c9d2e762f5b4411136b296d + get-tsconfig: github.com/privatenumber/get-tsconfig/2f179e1180ebc89a4a24eb8ce6526ef6b150a21b devDependencies: '@pvtnbr/eslint-config': 0.30.1_ypn2ylkkyfa5i233caldtndbqa @@ -3871,8 +3871,8 @@ packages: engines: {node: '>=12.20'} dev: true - github.com/privatenumber/get-tsconfig/2a9640126cbcea030c9d2e762f5b4411136b296d: - resolution: {tarball: https://codeload.github.com/privatenumber/get-tsconfig/tar.gz/2a9640126cbcea030c9d2e762f5b4411136b296d} + github.com/privatenumber/get-tsconfig/2f179e1180ebc89a4a24eb8ce6526ef6b150a21b: + resolution: {tarball: https://codeload.github.com/privatenumber/get-tsconfig/tar.gz/2f179e1180ebc89a4a24eb8ce6526ef6b150a21b} name: get-tsconfig version: 0.0.0-semantic-release dev: false From 1d816b272959a1db9db88d4bff119312e46612e3 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Mon, 6 Feb 2023 09:17:15 +0900 Subject: [PATCH 13/14] wip --- pnpm-lock.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2ad7b9c..874764d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,7 +20,7 @@ specifiers: dependencies: '@esbuild-kit/core-utils': 3.0.0 - get-tsconfig: github.com/privatenumber/get-tsconfig/2f179e1180ebc89a4a24eb8ce6526ef6b150a21b + get-tsconfig: github.com/privatenumber/get-tsconfig/bb3bfcb5e8d26d6732c98249f02ca0462eefa9f9 devDependencies: '@pvtnbr/eslint-config': 0.30.1_ypn2ylkkyfa5i233caldtndbqa @@ -3871,8 +3871,8 @@ packages: engines: {node: '>=12.20'} dev: true - github.com/privatenumber/get-tsconfig/2f179e1180ebc89a4a24eb8ce6526ef6b150a21b: - resolution: {tarball: https://codeload.github.com/privatenumber/get-tsconfig/tar.gz/2f179e1180ebc89a4a24eb8ce6526ef6b150a21b} + github.com/privatenumber/get-tsconfig/bb3bfcb5e8d26d6732c98249f02ca0462eefa9f9: + resolution: {tarball: https://codeload.github.com/privatenumber/get-tsconfig/tar.gz/bb3bfcb5e8d26d6732c98249f02ca0462eefa9f9} name: get-tsconfig version: 0.0.0-semantic-release dev: false From 0d0d150b0036a2cd11ec7774eeb9885a7eee8ae5 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Mon, 6 Feb 2023 09:52:33 +0900 Subject: [PATCH 14/14] wip --- package.json | 2 +- pnpm-lock.yaml | 17 +++++------------ 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 6826f75..38581b9 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ }, "dependencies": { "@esbuild-kit/core-utils": "^3.0.0", - "get-tsconfig": "github:privatenumber/get-tsconfig#npm/file-matcher" + "get-tsconfig": "^4.4.0" }, "devDependencies": { "@pvtnbr/eslint-config": "^0.30.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 874764d..003eb50 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,7 +11,7 @@ specifiers: execa: ^6.1.0 fs-fixture: ^1.2.0 get-node: ^13.2.0 - get-tsconfig: github:privatenumber/get-tsconfig#npm/file-matcher + get-tsconfig: ^4.4.0 manten: ^0.3.0 pkgroll: ^1.4.0 semver: ^7.3.7 @@ -20,7 +20,7 @@ specifiers: dependencies: '@esbuild-kit/core-utils': 3.0.0 - get-tsconfig: github.com/privatenumber/get-tsconfig/bb3bfcb5e8d26d6732c98249f02ca0462eefa9f9 + get-tsconfig: 4.4.0 devDependencies: '@pvtnbr/eslint-config': 0.30.1_ypn2ylkkyfa5i233caldtndbqa @@ -1503,7 +1503,7 @@ packages: enhanced-resolve: 5.10.0 eslint: 8.24.0 eslint-plugin-import: 2.26.0_yftuq4y7ijdos764stw23y4vam - get-tsconfig: 4.2.0 + get-tsconfig: 4.4.0 globby: 13.1.2 is-core-module: 2.10.0 is-glob: 4.0.3 @@ -2114,9 +2114,8 @@ packages: get-intrinsic: 1.1.3 dev: true - /get-tsconfig/4.2.0: - resolution: {integrity: sha512-X8u8fREiYOE6S8hLbq99PeykTDoLVnxvF4DjWKJmz9xy2nNRdUcV8ZN9tniJFeKyTU3qnC9lL8n4Chd6LmVKHg==} - dev: true + /get-tsconfig/4.4.0: + resolution: {integrity: sha512-0Gdjo/9+FzsYhXCEFueo2aY1z1tpXrxWZzP7k8ul9qt1U5o8rYJwTJYmaeHdrVosYIVYkOy2iwCJ9FdpocJhPQ==} /glob-parent/5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} @@ -3870,9 +3869,3 @@ packages: resolution: {integrity: sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==} engines: {node: '>=12.20'} dev: true - - github.com/privatenumber/get-tsconfig/bb3bfcb5e8d26d6732c98249f02ca0462eefa9f9: - resolution: {tarball: https://codeload.github.com/privatenumber/get-tsconfig/tar.gz/bb3bfcb5e8d26d6732c98249f02ca0462eefa9f9} - name: get-tsconfig - version: 0.0.0-semantic-release - dev: false