diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 9c239ee..d3e6edc 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -46,10 +46,9 @@ jobs: run: yarn wp-env - name: Run Playwright tests - run: npx playwright test --reporter=github + run: npx playwright test - uses: actions/upload-artifact@v4 - if: always() with: name: playwright-report path: playwright-report/ diff --git a/src/components/snippets/TsSupport.tsx b/src/components/snippets/TsSupport.tsx index e5d9493..bfc51e6 100644 --- a/src/components/snippets/TsSupport.tsx +++ b/src/components/snippets/TsSupport.tsx @@ -24,10 +24,11 @@ export {};`;

{__('TypeScript support', 'codeb-feature-flags')}

Create a file named{' '} - flags.d.ts at - the entrypoint of TypeScript code for the plugin/theme ( usually - src directory ) - and add the following declaration. + flags.d.ts{' '} + at the entrypoint of TypeScript code for the plugin/theme ( + usually + src directory + ) and add the following declaration.

diff --git a/tsconfig.json b/tsconfig.json index 89d8902..f60b543 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,9 +2,9 @@ "compilerOptions": { "outDir": "./build", "jsx": "react-jsx", - "module": "ESNext", + "module": "NodeNext", "target": "es2022", - "moduleResolution": "node", + "moduleResolution": "NodeNext", "resolveJsonModule": true, "sourceMap": true, "noImplicitAny": true,