Skip to content

Commit 0505f58

Browse files
committed
fix: 修正产出客户端代码版本号等
1 parent 8fb941d commit 0505f58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/FSRouter.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import nodePath from 'node:path';
22
import { indentLine, jsxLikeStringify } from '../helpers';
33
import type { FSNode, FSTree } from './FSTree';
4+
import { pkgName, pkgVersion } from '../const';
45

56
class PageRoute {
67
parent?: LayoutRoute;
@@ -179,7 +180,7 @@ export class FSRouter {
179180

180181
return [
181182
'/**',
182-
' * generated by pkg-name-for-test@pkg-version-for-test',
183+
` * generated by ${pkgName}@${pkgVersion}`,
183184
' * @ref https://github.com/FrontEndDev-org/unplugin-react-pages',
184185
' * @ref https://react.dev',
185186
' * @ref https://reactrouter.com',

0 commit comments

Comments
 (0)