Skip to content

Commit 6bea900

Browse files
export function as public api and removed deep imports
1 parent 8deb453 commit 6bea900

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.changeset/funny-socks-rescue.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
---
55

66
Added validateId function to @sap-ux/project-access with sync/async overloads and reused it in @sap-ux/fe-fpm-writer.
7+
Exported findFilesByExtension from @sap-ux/project-access public API and removed deep import from @sap-ux/fe-fpm-writer.

packages/fe-fpm-writer/src/common/file.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import type { CopyOptions, Editor } from 'mem-fs-editor';
22
import type { TabInfo } from '../common/types';
33
import { sep, normalize } from 'node:path';
4-
import { findFilesByExtension } from '@sap-ux/project-access/dist/file';
5-
import { validateId } from '@sap-ux/project-access';
4+
import { findFilesByExtension, validateId } from '@sap-ux/project-access';
65

76
/**
87
* Options for creating an ID generator with cached file contents.

packages/project-access/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export {
66
MinCdsVersion,
77
fioriToolsDirectory
88
} from './constants';
9-
export { getFilePaths } from './file';
9+
export { getFilePaths, findFilesByExtension } from './file';
1010
export { normalizePath } from './path';
1111
export {
1212
addPackageDevDependency,

0 commit comments

Comments
 (0)