Skip to content

Commit 4d6c335

Browse files
author
Michael Hladky
committed
refactor: wip
1 parent b02a6a0 commit 4d6c335

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed
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-
...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+
});

tools/zod2md-nx-plugin/src/lib/plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { dirname } from 'node:path';
1+
import path from 'node:path';
22

33
export const createNodesV2 = [
44
`**/zod2md.config.ts`,
@@ -8,7 +8,7 @@ export const createNodesV2 = [
88

99
return Promise.all(
1010
zod2MdConfigurationFiles.map(async zod2MdConfigurationFile => {
11-
const projectRoot = dirname(zod2MdConfigurationFile);
11+
const projectRoot = path.dirname(zod2MdConfigurationFile);
1212
const normalizedProjectRoot = projectRoot === '.' ? '' : projectRoot;
1313
const result = {
1414
projects: {

0 commit comments

Comments
 (0)