Skip to content

Commit

Permalink
feat(xxx): reproduction of bug/problem?
Browse files Browse the repository at this point in the history
  • Loading branch information
yf-yang committed Oct 25, 2023
1 parent b70353c commit 6d73dcc
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/nextjs-app/src/features/demo/pages/DemoPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { sayHello } from '@your-org/core-lib';
import { sayHello, foo } from '@your-org/core-lib';
import { AsyncMessage, Message } from '@your-org/ui-lib';
import Image from 'next/image';
import { useTranslation } from 'next-i18next';
Expand All @@ -21,6 +21,7 @@ export const DemoPage: FC = () => {
<MainLayout>
<Banner />
<h3>I'm the web-app</h3>
<button onClick={() => foo()}>Foo</button>
<Jumbotron />
<ul>
<li>{`Foo says: ${sayHello('World')} from @your-org/core-lib`}</li>
Expand Down
3 changes: 3 additions & 0 deletions packages/core-lib/src/bar.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function bar(): void {
console.log('BAR!');
}
6 changes: 6 additions & 0 deletions packages/core-lib/src/foo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { bar } from '@/bar';

export function foo() {
console.log('FOO!');
bar();
}
2 changes: 2 additions & 0 deletions packages/core-lib/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export const sayHello = (name: string): string => {
return `I'm the @your-org/ui-lib component telling ${name} !`;
};

export * from './foo';
3 changes: 2 additions & 1 deletion packages/core-lib/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"incremental": true,
"paths": {
"@/test-utils": ["../config/test/test-utils"],
"@your-org/ts-utils": ["../../../packages/ts-utils/src/index"]
"@your-org/ts-utils": ["../../../packages/ts-utils/src/index"],
"@/*": ["./*"]
},
"types": ["jest", "vitest/globals"]
},
Expand Down

0 comments on commit 6d73dcc

Please sign in to comment.