create-umi 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-umi",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "create-umi",
5
5
  "homepage": "https://github.com/umijs/umi-next/tree/master/packages/create-umi#readme",
6
6
  "bugs": "https://github.com/umijs/umi-next/issues",
@@ -21,11 +21,11 @@
21
21
  "scripts": {
22
22
  "build": "pnpm tsc",
23
23
  "build:deps": "umi-scripts bundleDeps",
24
- "dev": "pnpm build -- --watch",
24
+ "dev": "pnpm build --watch",
25
25
  "test": "umi-scripts jest-turbo"
26
26
  },
27
27
  "dependencies": {
28
- "@umijs/utils": "4.0.1"
28
+ "@umijs/utils": "4.0.2"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"
@@ -1,7 +1,9 @@
1
- export default () => {
1
+ const DocsPage = () => {
2
2
  return (
3
3
  <div>
4
4
  <p>This is umi docs.</p>
5
5
  </div>
6
6
  );
7
7
  };
8
+
9
+ export default DocsPage;
@@ -2,7 +2,7 @@ import { PageContainer } from '@ant-design/pro-components';
2
2
  import { Access, useAccess } from '@umijs/max';
3
3
  import { Button } from 'antd';
4
4
 
5
- export default () => {
5
+ const AccessPage: React.FC = () => {
6
6
  const access = useAccess();
7
7
  return (
8
8
  <PageContainer
@@ -17,3 +17,5 @@ export default () => {
17
17
  </PageContainer>
18
18
  );
19
19
  };
20
+
21
+ export default AccessPage;
@@ -4,7 +4,7 @@ import { PageContainer } from '@ant-design/pro-components';
4
4
  import { useModel } from '@umijs/max';
5
5
  import styles from './index.less';
6
6
 
7
- export default () => {
7
+ const HomePage: React.FC = () => {
8
8
  const { name } = useModel('global');
9
9
  return (
10
10
  <PageContainer ghost>
@@ -14,3 +14,5 @@ export default () => {
14
14
  </PageContainer>
15
15
  );
16
16
  };
17
+
18
+ export default HomePage;