File tree 3 files changed +15
-22
lines changed
3 files changed +15
-22
lines changed Original file line number Diff line number Diff line change 1
1
import 'dotenv/config' ;
2
2
import { z } from 'zod' ;
3
+ import { mergeConfigs } from '@code-pushup/utils' ;
3
4
import {
4
5
coverageCoreConfigNx ,
5
6
eslintCoreConfigNx ,
6
7
jsPackagesCoreConfig ,
7
8
lighthouseCoreConfig ,
8
- } from './code-pushup.preset' ;
9
+ } from './code-pushup.preset.js ' ;
9
10
import {
10
11
fileSizePlugin ,
11
12
fileSizeRecommendedRefs ,
12
13
packageJsonDocumentationGroupRef ,
13
14
packageJsonPerformanceGroupRef ,
14
15
packageJsonPlugin ,
15
- } from './dist/examples/plugins' ;
16
- import { mergeConfigs } from './dist/packages/utils' ;
16
+ } from './examples/plugins/src/index.js' ;
17
17
import type { CoreConfig } from './packages/models/src' ;
18
18
19
19
// load upload configuration from environment
Original file line number Diff line number Diff line change 1
1
import coveragePlugin , {
2
2
getNxCoveragePaths ,
3
- } from './dist/packages/plugin- coverage' ;
3
+ } from '@code-pushup/ coverage-plugin ' ;
4
4
import eslintPlugin , {
5
5
eslintConfigFromAllNxProjects ,
6
6
eslintConfigFromNxProject ,
7
- } from './dist/packages/plugin- eslint' ;
8
- import jsPackagesPlugin from './dist/packages/plugin- js-packages' ;
7
+ } from '@code-pushup/ eslint-plugin ' ;
8
+ import jsPackagesPlugin from '@code-pushup/ js-packages-plugin ' ;
9
9
import lighthousePlugin , {
10
10
lighthouseGroupRef ,
11
- } from './dist/packages/plugin- lighthouse' ;
12
- import type { CategoryConfig , CoreConfig } from './packages/ models/src ' ;
11
+ } from '@code-pushup/ lighthouse-plugin ' ;
12
+ import type { CategoryConfig , CoreConfig } from '@code-pushup/ models' ;
13
13
14
14
export const jsPackagesCategories : CategoryConfig [ ] = [
15
15
{
Original file line number Diff line number Diff line change 3
3
"$schema" : " node_modules/nx/schemas/project-schema.json" ,
4
4
"targets" : {
5
5
"code-pushup" : {
6
- "command" : " npx dist/packages/cli" ,
7
- "dependsOn" : [
8
- {
9
- "projects" : [
10
- " cli" ,
11
- " plugin-eslint" ,
12
- " plugin-coverage" ,
13
- " plugin-js-packages" ,
14
- " plugin-lighthouse" ,
15
- " examples-plugins" ,
16
- " react-todos-app"
17
- ],
18
- "target" : " build"
6
+ "executor" : " nx:run-commands" ,
7
+ "options" : {
8
+ "command" : " node packages/cli/src/index.ts" ,
9
+ "env" : {
10
+ "NODE_OPTIONS" : " --import tsx" ,
11
+ "TSX_TSCONFIG_PATH" : " tsconfig.base.json"
19
12
}
20
- ]
13
+ }
21
14
}
22
15
}
23
16
}
You can’t perform that action at this time.
0 commit comments