Skip to content

Commit 1117f9d

Browse files
committed
Fix testcase
1 parent f324097 commit 1117f9d

File tree

7 files changed

+25
-10
lines changed

7 files changed

+25
-10
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"changes": { "packages/next-plugin/package.json": "Patch" },
3+
"note": "Support monorepo on turbopack",
4+
"date": "2025-12-08T09:38:36.536760600Z"
5+
}

apps/next/next.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ const nextConfig = {
66
/* config options here */
77
}
88

9-
export default DevupUI(nextConfig)
9+
export default DevupUI(nextConfig, {
10+
include: ['vite-lib-example'],
11+
})

apps/next/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"react": "^19.2",
1414
"react-dom": "^19.2",
1515
"next": "^16.0",
16-
"@devup-ui/react": "workspace:*"
16+
"@devup-ui/react": "workspace:*",
17+
"vite-lib-example": "workspace:*"
1718
},
1819
"devDependencies": {
1920
"@devup-ui/next-plugin": "workspace:*",

apps/next/src/app/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import { Box, css, styled, Text } from '@devup-ui/react'
44
import { useState } from 'react'
5+
import { Lib } from 'vite-lib-example'
56
const color = 'yellow'
67

78
const StyledFooter = styled.footer<{ type: '1' | '2' }>`
@@ -38,6 +39,7 @@ export default function HomePage() {
3839
py="28px"
3940
>
4041
<Box>hello</Box>
42+
<Lib />
4143
<Box>hello</Box>
4244
</Box>
4345
<Text

packages/next-plugin/src/__tests__/plugin.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ describe('DevupUINextPlugin', () => {
317317
'@devup-ui/react',
318318
false,
319319
expect.any(String),
320+
[],
320321
)
321322
})
322323
it('should create theme.d.ts file', async () => {

packages/next-plugin/src/__tests__/preload.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ describe('preload', () => {
7070
{
7171
follow: true,
7272
absolute: true,
73+
cwd: expect.any(String),
7374
},
7475
)
7576
})

pnpm-lock.yaml

Lines changed: 11 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)