Skip to content

Commit

Permalink
build: use joinPathFragments
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 committed Oct 19, 2023
1 parent c2a5d10 commit a1b812e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/nx-maven/src/generators/wrapper/generator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { formatFiles, generateFiles, offsetFromRoot, Tree } from '@nx/devkit';
import {
formatFiles,
generateFiles,
joinPathFragments,
offsetFromRoot,
Tree,
} from '@nx/devkit';
import * as path from 'path';
import { NxMavenWrapperGeneratorSchema } from './schema';
import { getMavenRootDirectory } from '../../utils';
Expand Down Expand Up @@ -47,11 +53,11 @@ export default async function (
updateGitIgnore(tree);
}
tree.changePermissions(
path.join(normalizedOptions.mavenRootDirectory, 'mvnw'),
joinPathFragments(normalizedOptions.mavenRootDirectory, 'mvnw'),
'755',
);
tree.changePermissions(
path.join(normalizedOptions.mavenRootDirectory, 'mvnw.cmd'),
joinPathFragments(normalizedOptions.mavenRootDirectory, 'mvnw.cmd'),
'755',
);
await formatFiles(tree);
Expand Down

0 comments on commit a1b812e

Please sign in to comment.