Skip to content
Merged
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 packages/nx-infra-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"dependencies": {
"fs-extra": "^11.2.0",
"glob": "11.1.0",
"normalize-path": "3.0.0",
"rimraf": "3.0.2"
},
"peerDependencies": {
Expand All @@ -32,6 +33,7 @@
"@types/fs-extra": "^11.0.4",
"@types/jest": "29.5.12",
"@types/node": "^18.0.0",
"@types/normalize-path": "3.0.2",
"prettier": "catalog:tools",
"ts-jest": "29.1.3",
"typescript": "4.9.5"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as path from 'path';
import { logger } from '@nx/devkit';
import normalizePath from 'normalize-path';
import { GenerationConfig } from './framework-handlers';

export async function generateAngularComponents(
Expand All @@ -24,10 +25,12 @@ export async function generateAngularComponents(
AngularCommonReexportsGenerator,
} = internalTools;

const componentsDir = config.out.componentsDir;
const indexFileName = config.out.indexFileName;
const componentsDir = normalizePath(config.out.componentsDir);
const indexFileName = normalizePath(config.out.indexFileName);

const metadataDir = path.join(path.dirname(componentsDir), 'metadata', 'generated');
const metadataDir = normalizePath(
path.join(path.dirname(componentsDir), 'metadata', 'generated'),
);

logger.info('📝 Generating Angular-specific metadata...');
const metadataGenerator = new AngularMetadataGenerator();
Expand Down
11 changes: 11 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading