Skip to content

Commit e1438b6

Browse files
committed
chore: uesd pnpm
1 parent 5e29c95 commit e1438b6

File tree

13 files changed

+20104
-710
lines changed

13 files changed

+20104
-710
lines changed

.umirc.ts

-10
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@ export default {
2929
logo,
3030
favicon: logo,
3131
mode: 'site',
32-
extraBabelPlugins: [
33-
[
34-
'import',
35-
{
36-
libraryName: 'antd',
37-
libraryDirectory: 'es',
38-
style: true,
39-
},
40-
],
41-
],
4232
alias,
4333
resolve: { includes: [...tailPkgList, 'docs'] },
4434
navs: [

.yarn/plugins/@yarnpkg/plugin-typescript.cjs

-9
This file was deleted.

.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

-28
This file was deleted.

.yarn/releases/yarn-3.0.2.cjs

-631
This file was deleted.

.yarnrc.yml

-14
This file was deleted.

package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,28 @@
66
"private": true,
77
"scripts": {
88
"start": "dumi dev",
9-
"build": "father-build",
9+
"build": "redbud build",
1010
"site": "dumi build",
1111
"test": "walrus test",
1212
"release": "walrus release"
1313
},
1414
"devDependencies": {
15-
"@ant-design/pro-card": "^1.18.25",
16-
"@types/react": "^17",
17-
"@types/react-dom": "^17",
18-
"@umijs/plugin-antd": "0.15.0",
15+
"@ant-design/pro-card": "^2.1.10",
16+
"@types/react": "^18.0.26",
17+
"@types/react-dom": "^18.0.10",
18+
"@pansy/shared": "1.9.0",
1919
"@walrus/cli": "1.3.4",
2020
"@walrus/plugin-release": "1.14.3",
2121
"@walrus/plugin-test": "1.1.0",
22-
"antd": "4.18.5",
23-
"commitizen": "4.2.4",
22+
"antd": "5.1.5",
23+
"commitizen": "4.2.6",
2424
"cz-conventional-changelog": "3.3.0",
2525
"dumi": "1.1.38",
26-
"father-build": "1.20.4",
27-
"lerna": "4.0.0",
28-
"react": "17.0.2",
29-
"react-dom": "17.0.2",
30-
"typescript": "4.5.5"
26+
"redbud": "1.5.0",
27+
"lerna": "6.4.1",
28+
"react": "18.2.0",
29+
"react-dom": "18.2.0",
30+
"typescript": "4.9.4"
3131
},
3232
"config": {
3333
"commitizen": {

packages/responsive-card/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"react-dom": ">=16.9.0"
1414
},
1515
"dependencies": {
16-
"@pansy/use-size": "^0.2.0"
16+
"@pansy/shared": "^1.9.0",
17+
"@pansy/use-size": "^0.3.1"
1718
},
1819
"publishConfig": {
1920
"registry": "https://registry.npmjs.org",

packages/responsive-card/src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import isNumber from 'lodash/isNumber';
1+
import { isNumber } from '@pansy/shared';
22

33
export interface Opts {
44
/** 默认宽度 */

packages/split-screen/docs/demo/demo-03.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState, useEffect, useMemo } from 'react';
2-
import classNames from 'classnames'
2+
import { classNames } from '@pansy/shared'
33
import { Select, Space, Input, Button, message } from 'antd';
44
import SplitScreen from '@pansy/react-split-screen';
55
import Player from '@pansy/react-aliplayer';

packages/split-screen/src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useState, useEffect } from 'react';
22
import { getVideoWindowStyle } from './utils';
3-
import { SplitScreenAmount } from './types';
3+
import type { SplitScreenAmount } from './types';
44

55
export interface SplitScreenProps<D = any[]> {
66
/** 额外的样式类 */

packages/split-screen/src/utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import type { CSSProperties } from 'react';
22

33
interface Config {
44
rows: number;
@@ -30,7 +30,7 @@ export const getVideoWindowStyle = (
3030
amount: number,
3131
index: number
3232
) => {
33-
let style: React.CSSProperties = {};
33+
let style: CSSProperties = {};
3434

3535
const sqrt = Math.sqrt(amount);
3636

0 commit comments

Comments
 (0)