Skip to content

Commit e392ed7

Browse files
author
John Doe
committed
refactor: fix lint 2
1 parent 58b3eea commit e392ed7

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

tools/build-target/src/build-target.plugin.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { CreateNodesV2, NxPlugin, TargetConfiguration } from '@nx/devkit';
2-
import * as path from 'node:path';
2+
import path from 'node:path';
33

44
const TSCONFIG_LIB_FILE = 'tsconfig.lib.json';
55
const BUILD_TARGET_NAME = 'build';
@@ -22,8 +22,8 @@ export function createBuildTargetConfig(): TargetConfiguration {
2222

2323
const createNodesV2: CreateNodesV2 = [
2424
`**/${TSCONFIG_LIB_FILE}`,
25-
async configFilePaths => {
26-
return Promise.all(
25+
async configFilePaths =>
26+
Promise.all(
2727
configFilePaths.map(async configFilePath => {
2828
const projectRoot = path.dirname(configFilePath);
2929
const normalizedProjectRoot = projectRoot === '.' ? '' : projectRoot;
@@ -41,8 +41,7 @@ const createNodesV2: CreateNodesV2 = [
4141
},
4242
] as const;
4343
}),
44-
);
45-
},
44+
),
4645
];
4746

4847
const buildTargetPlugin: NxPlugin = {

tools/build-target/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"files": [],
88
"include": [],
99
"references": [
10+
{
11+
"path": "./tsconfig.lib.json"
12+
},
1013
{
1114
"path": "./tsconfig.test.json"
1215
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../../dist/out-tsc",
5+
"declaration": true,
6+
"types": ["node"]
7+
},
8+
"include": ["src/**/*.ts"],
9+
"exclude": [
10+
"vitest.unit.config.ts",
11+
"vitest.int.config.ts",
12+
"src/**/*.test.ts",
13+
"src/**/*.mock.ts",
14+
"mocks/**/*.ts"
15+
]
16+
}

0 commit comments

Comments
 (0)