Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NODE_OPTIONS=--import tsx
TSX_TSCONFIG_PATH=tsconfig.base.json
2 changes: 2 additions & 0 deletions tools/zod2md-jsdocs/src/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export const ZOD2MD_CONFIG_FILE = 'zod2md.config.ts';
export const GENERATE_DOCS_TARGET_NAME = 'generate-docs';
5 changes: 2 additions & 3 deletions tools/zod2md-jsdocs/src/nx-plugin.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import type { CreateNodesV2, NxPlugin, TargetConfiguration } from '@nx/devkit';
import * as path from 'node:path';

const ZOD2MD_CONFIG_FILE = 'zod2md.config.ts';
const GENERATE_DOCS_TARGET_NAME = 'generate-docs';
// this would break without setting node loader in .env.local
import { GENERATE_DOCS_TARGET_NAME, ZOD2MD_CONFIG_FILE } from './constants.js';

type DocsTargetConfigParams = {
config: string;
Expand Down