Skip to content

Commit 1cbe69a

Browse files
committed
refactor: revert changes
1 parent ba61c0a commit 1cbe69a

File tree

401 files changed

+8647
-2502
lines changed

Some content is hidden

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

401 files changed

+8647
-2502
lines changed

CHANGELOG.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,66 @@
1+
## 0.112.0 (2026-01-29)
2+
3+
### 🚀 Features
4+
5+
- **plugin-typescript:** support multiple tsconfigs ([#1229](https://github.com/code-pushup/cli/pull/1229))
6+
7+
### ❤️ Thank You
8+
9+
- Hanna Skryl @hanna-skryl
10+
11+
## 0.111.1 (2026-01-27)
12+
13+
### 🩹 Fixes
14+
15+
- add exit handler to profiler ([#1221](https://github.com/code-pushup/cli/pull/1221))
16+
17+
### ❤️ Thank You
18+
19+
- Michael Hladky @BioPhoton
20+
21+
## 0.111.0 (2026-01-27)
22+
23+
### 🚀 Features
24+
25+
- **utils:** add NodeJS profiler ([#1219](https://github.com/code-pushup/cli/pull/1219))
26+
27+
### ❤️ Thank You
28+
29+
- Michael Hladky @BioPhoton
30+
31+
## 0.110.0 (2026-01-26)
32+
33+
### 🚀 Features
34+
35+
- **utils:** add WriteAheadLog classes ([#1210](https://github.com/code-pushup/cli/pull/1210))
36+
37+
### ❤️ Thank You
38+
39+
- Michael Hladky @BioPhoton
40+
41+
## 0.109.0 (2026-01-26)
42+
43+
### 🚀 Features
44+
45+
- **models:** add URL source type for issues ([ef5a5be1](https://github.com/code-pushup/cli/commit/ef5a5be1))
46+
- **plugin-axe:** add source field to issues ([fe6f94ea](https://github.com/code-pushup/cli/commit/fe6f94ea))
47+
- **utils:** add type guards and URL source formatting ([cde6309e](https://github.com/code-pushup/cli/commit/cde6309e))
48+
49+
### ❤️ Thank You
50+
51+
- hanna-skryl
52+
53+
## 0.108.2 (2026-01-26)
54+
55+
### 🩹 Fixes
56+
57+
- add missing vitest.d.ts to test tsconfigs ([c9c47f36](https://github.com/code-pushup/cli/commit/c9c47f36))
58+
- **zod2md-jsdocs:** exclude tests from build ([69707ff8](https://github.com/code-pushup/cli/commit/69707ff8))
59+
60+
### ❤️ Thank You
61+
62+
- hanna-skryl
63+
164
## 0.108.1 (2026-01-20)
265

366
### 🩹 Fixes

code-pushup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default mergeConfigs(
2020
await configureEslintPlugin(),
2121
await configureCoveragePlugin(),
2222
await configureJsPackagesPlugin(),
23-
configureTypescriptPlugin(),
23+
await configureTypescriptPlugin(),
2424
configureJsDocsPlugin(),
2525
await configureLighthousePlugin(TARGET_URL),
2626
configureAxePlugin(TARGET_URL),

code-pushup.preset.ts

Lines changed: 31 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
/* eslint-disable @nx/enforce-module-boundaries */
22
import { createProjectGraphAsync } from '@nx/devkit';
33
import type { CoreConfig, PluginUrls } from './packages/models/src/index.js';
4+
import axePlugin, {
5+
type AxePluginOptions,
6+
axeGroupRefs,
7+
} from './packages/plugin-axe/src/index.js';
8+
import coveragePlugin, {
9+
type CoveragePluginConfig,
10+
getNxCoveragePaths,
11+
} from './packages/plugin-coverage/src/index.js';
12+
import eslintPlugin, {
13+
eslintConfigFromAllNxProjects,
14+
} from './packages/plugin-eslint/src/index.js';
15+
import jsPackagesPlugin from './packages/plugin-js-packages/src/index.js';
16+
import jsDocsPlugin from './packages/plugin-jsdocs/src/index.js';
17+
import {
18+
lighthouseGroupRefs,
19+
lighthousePlugin,
20+
} from './packages/plugin-lighthouse/src/index.js';
21+
import typescriptPlugin, {
22+
getCategories,
23+
tsconfigFromAllNxProjects,
24+
} from './packages/plugin-typescript/src/index.js';
425

526
export function configureUpload(projectName: string = 'workspace'): CoreConfig {
627
return {
@@ -19,10 +40,6 @@ export function configureUpload(projectName: string = 'workspace'): CoreConfig {
1940
export async function configureEslintPlugin(
2041
projectName?: string,
2142
): Promise<CoreConfig> {
22-
const { default: eslintPlugin, eslintConfigFromAllNxProjects } = await import(
23-
'./packages/plugin-eslint/src/index.js'
24-
);
25-
2643
return {
2744
plugins: [
2845
projectName
@@ -65,12 +82,8 @@ export async function configureEslintPlugin(
6582
export async function configureCoveragePlugin(
6683
projectName?: string,
6784
): Promise<CoreConfig> {
68-
const { default: coveragePlugin, getNxCoveragePaths } = await import(
69-
'./packages/plugin-coverage/src/index.js'
70-
);
71-
7285
const targets = ['unit-test', 'int-test'];
73-
const config = projectName
86+
const config: CoveragePluginConfig = projectName
7487
? // We do not need to run a coverageToolCommand. This is handled over the Nx task graph.
7588
{
7689
reports: Object.keys(
@@ -105,10 +118,6 @@ export async function configureCoveragePlugin(
105118
}
106119

107120
export async function configureJsPackagesPlugin(): Promise<CoreConfig> {
108-
const { default: jsPackagesPlugin } = await import(
109-
'./packages/plugin-js-packages/src/index.js'
110-
);
111-
112121
return {
113122
plugins: [await jsPackagesPlugin()],
114123
categories: [
@@ -145,26 +154,21 @@ export async function configureJsPackagesPlugin(): Promise<CoreConfig> {
145154
export async function configureTypescriptPlugin(
146155
projectName?: string,
147156
): Promise<CoreConfig> {
148-
const { default: typescriptPlugin, getCategories } = await import(
149-
'./packages/plugin-typescript/src/index.js'
150-
);
151-
152157
const tsconfig = projectName
153158
? `packages/${projectName}/tsconfig.lib.json`
154-
: 'tsconfig.code-pushup.json';
159+
: await tsconfigFromAllNxProjects({
160+
exclude: [
161+
'test-fixtures', // Intentionally incomplete tsconfigs
162+
'models', // Uses ts-patch transformer plugin
163+
],
164+
});
155165
return {
156166
plugins: [typescriptPlugin({ tsconfig })],
157167
categories: getCategories(),
158168
};
159169
}
160170

161-
export async function configureJsDocsPlugin(
162-
projectName?: string,
163-
): Promise<CoreConfig> {
164-
const { default: jsDocsPlugin } = await import(
165-
'./packages/plugin-jsdocs/src/index.js'
166-
);
167-
171+
export function configureJsDocsPlugin(projectName?: string): CoreConfig {
168172
const patterns: string[] = [
169173
`packages/${projectName ?? '*'}/src/**/*.ts`,
170174
`!**/node_modules`,
@@ -196,10 +200,6 @@ export async function configureJsDocsPlugin(
196200
export async function configureLighthousePlugin(
197201
urls: PluginUrls,
198202
): Promise<CoreConfig> {
199-
const { lighthousePlugin, lighthouseGroupRefs } = await import(
200-
'./packages/plugin-lighthouse/src/index.js'
201-
);
202-
203203
const lhPlugin = await lighthousePlugin(urls);
204204
return {
205205
plugins: [lhPlugin],
@@ -228,14 +228,10 @@ export async function configureLighthousePlugin(
228228
};
229229
}
230230

231-
export async function configureAxePlugin(
231+
export function configureAxePlugin(
232232
urls: PluginUrls,
233233
options?: AxePluginOptions,
234-
): Promise<CoreConfig> {
235-
const { default: axePlugin, axeGroupRefs } = await import(
236-
'./packages/plugin-axe/src/index.js'
237-
);
238-
234+
): CoreConfig {
239235
const axe = axePlugin(urls, options);
240236
return {
241237
plugins: [axe],

e2e/ci-e2e/eslint.config.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
import tseslint from 'typescript-eslint';
22
import baseConfig from '../../eslint.config.js';
33

4-
export default tseslint.config(
5-
...(await (typeof baseConfig === 'function' ? baseConfig() : baseConfig)),
6-
{
7-
files: ['**/*.ts'],
8-
languageOptions: {
9-
parserOptions: {
10-
projectService: true,
11-
tsconfigRootDir: import.meta.dirname,
12-
},
4+
export default tseslint.config(...baseConfig, {
5+
files: ['**/*.ts'],
6+
languageOptions: {
7+
parserOptions: {
8+
projectService: true,
9+
tsconfigRootDir: import.meta.dirname,
1310
},
1411
},
15-
);
12+
});

e2e/ci-e2e/tests/basic.e2e.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { readFile, rename } from 'node:fs/promises';
22
import path from 'node:path';
33
import type { SimpleGit } from 'simple-git';
4-
import { afterEach } from 'vitest';
54
import {
65
type GitRefs,
76
type Options,

e2e/ci-e2e/tests/npm-workspaces.e2e.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { readFile, rename } from 'node:fs/promises';
22
import path from 'node:path';
33
import type { SimpleGit } from 'simple-git';
4-
import { afterEach } from 'vitest';
54
import {
65
type GitRefs,
76
type Options,

e2e/ci-e2e/tests/nx-monorepo.e2e.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { readFile, rename, writeFile } from 'node:fs/promises';
22
import path from 'node:path';
33
import type { SimpleGit } from 'simple-git';
4-
import { afterEach } from 'vitest';
54
import {
65
type GitRefs,
76
type Options,

e2e/ci-e2e/tsconfig.test.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"vitest.e2e.config.ts",
99
"tests/**/*.e2e.test.ts",
1010
"tests/**/*.d.ts",
11-
"mocks/**/*.ts"
11+
"mocks/**/*.ts",
12+
"../../testing/test-setup/src/vitest.d.ts"
1213
]
1314
}

e2e/cli-e2e/eslint.config.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
import tseslint from 'typescript-eslint';
22
import baseConfig from '../../eslint.config.js';
33

4-
export default tseslint.config(
5-
...(await (typeof baseConfig === 'function' ? baseConfig() : baseConfig)),
6-
{
7-
files: ['**/*.ts'],
8-
languageOptions: {
9-
parserOptions: {
10-
projectService: true,
11-
tsconfigRootDir: import.meta.dirname,
12-
},
4+
export default tseslint.config(...baseConfig, {
5+
files: ['**/*.ts'],
6+
languageOptions: {
7+
parserOptions: {
8+
projectService: true,
9+
tsconfigRootDir: import.meta.dirname,
1310
},
1411
},
15-
);
12+
});

e2e/cli-e2e/tests/collect.e2e.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { cp } from 'node:fs/promises';
22
import path from 'node:path';
3-
import { afterEach, beforeAll, describe, expect, it } from 'vitest';
43
import { nxTargetProject } from '@code-pushup/test-nx-utils';
54
import {
65
E2E_ENVIRONMENTS_DIR,

0 commit comments

Comments
 (0)