Interactive Angular 19 demo for @sda/notification-elements-ui with 6 sections: Bell & Feed, Notification Center, Inbox, Comments & Threads, Mention Input, and Full-Featured layout. Includes mock data, dark mode toggle, and real-time event log. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
13 lines
380 B
JavaScript
13 lines
380 B
JavaScript
import path from 'node:path';
|
|
import {findUp, findUpSync} from 'find-up';
|
|
|
|
export async function packageDirectory({cwd} = {}) {
|
|
const filePath = await findUp('package.json', {cwd});
|
|
return filePath && path.dirname(filePath);
|
|
}
|
|
|
|
export function packageDirectorySync({cwd} = {}) {
|
|
const filePath = findUpSync('package.json', {cwd});
|
|
return filePath && path.dirname(filePath);
|
|
}
|