File tree Expand file tree Collapse file tree 5 files changed +31
-11
lines changed
src/lib/generators/sync-zod2md-setup Expand file tree Collapse file tree 5 files changed +31
-11
lines changed Original file line number Diff line number Diff line change 1- # for uploading to portal
1+ # Example environment variables
2+ # These are for reference only - use .env.local for local development
3+
4+ # For uploading to Code PushUp portal
25CP_API_KEY =
6+
7+ # Note: For local development with tsx/TypeScript execution,
8+ # copy .env.local.example to .env.local and configure NODE_OPTIONS there
Original file line number Diff line number Diff line change 1+ # Local development environment variables
2+ # Copy this to .env.local (gitignored) and customize for your setup
3+
4+ # Enable tsx for TypeScript execution in Nx
5+ # This allows running local generator/executor directly as .ts files without pre-compilation
6+ # This allowes the local plugins to import files with .js extensions (same as the packages in the repository)
7+ NODE_OPTIONS = --import tsx
8+ # This is used to resolve the paths in the local generator/executor so local packages can be imported as path aliases
9+ TSX_TSCONFIG_PATH = tsconfig.base.json
Original file line number Diff line number Diff line change 1+ # Local development environment variables
2+ # Copy this to .env.local (gitignored) and customize for your setup
3+
4+ # Enable tsx for TypeScript execution in Nx
5+ # This allows running local generator/executor directly as .ts files without pre-compilation
6+ # This allowes the local plugins to import files with .js extensions (same as the packages in the repository)
7+ NODE_OPTIONS=--import tsx
8+ # This is used to resolve the paths in the local generator/executor so local packages can be imported as path aliases
9+ TSX_TSCONFIG_PATH=tsconfig.base.json
10+
11+ # Local API keys (optional - only if testing upload features)
12+ # CP_API_KEY=your_api_key_here
Original file line number Diff line number Diff line change @@ -44,13 +44,6 @@ module.exports = tseslint.config(
4444 '@nx/dependency-checks' : 'error' ,
4545 } ,
4646 } ,
47- // Nx compiles the sync generators on the fly with SWC and there the .js ending is not working
48- {
49- files : [ '**/sync-*.ts' ] ,
50- rules : {
51- 'n/file-extension-in-import' : 'off' ,
52- } ,
53- } ,
5447 {
5548 files : [ '**/package.json' , '**/generators.json' ] ,
5649 rules : {
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ import * as path from 'node:path';
1111import {
1212 GENERATE_DOCS_TARGET_NAME ,
1313 PATCH_TS_TARGET_NAME ,
14- } from '../../plugin/constants' ;
15- import { DEFAULT_ZOD2MD_CONFIG_FILE_NAME } from '../configuration/constants' ;
14+ } from '../../plugin/constants.js ' ;
15+ import { DEFAULT_ZOD2MD_CONFIG_FILE_NAME } from '../configuration/constants.js ' ;
1616import {
1717 type PluginDefinition ,
1818 addZod2MdTransformToTsConfig ,
1919 getFirstExistingTsConfig ,
20- } from '../configuration/tsconfig' ;
20+ } from '../configuration/tsconfig.js ' ;
2121
2222const missingTsconfig = 'missing-tsconfig' as const ;
2323const missingTarget = 'missing-target' as const ;
You can’t perform that action at this time.
0 commit comments