-
-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: bump [email protected] #988
Conversation
@RedJue is attempting to deploy a commit to the React Component Team on Vercel. A member of the Team first needs to authorize it. |
tsconfig.json
Outdated
"include": [ | ||
".dumi/**/*", | ||
".dumirc.ts", | ||
"./src/**/*.ts", | ||
"./src/**/*.tsx", | ||
"./docs/**/*.tsx", | ||
"./tests/**/*.tsx" | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没用到 .dumi,这里可以不用加 include
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
行,那我去掉
.dumirc.ts
Outdated
import path from 'path'; | ||
|
||
export default defineConfig({ | ||
alias: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tsconfig 加应该就够了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1
要加 setup |
加在哪? |
"@@/*": ["src/.umi/*"], | ||
"rc-select": ["src/index.ts"] | ||
} | ||
"@/*": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗯嗯,和 json 文件类型有关系
.gitignore
Outdated
@@ -39,4 +39,7 @@ tsconfig.test.json | |||
.storybook | |||
storybook/index.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这应该是历史产物了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
老代码不去动了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个可以删,storybook 在 dumi1 迁移的时候就可以去掉了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
行
node 16 |
package.json
Outdated
@@ -32,6 +32,7 @@ | |||
"scripts": { | |||
"start": "dumi dev", | |||
"build": "dumi build", | |||
"prepare": "dumi setup --ignore-scripts", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--ignore-scripts
这个好像是用 16需要加,而用 18不需要加?我的项目本地 16,执行 setup 也没报错,这里为什么一定要加?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不是这里加的,应该是 ci 里的 npm i --package-lock-only
后面要加 --ignore-scripts
因为 node 16 的 bug 是 --package-lock-only
也会执行 prepare,而依赖并没有被真实安装,所以会报错找不到 dumi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
18 可以不用加试试
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
刚才 ci 报错了,还是之前那个问题,所以加了下试试
Codecov Report
@@ Coverage Diff @@
## master #988 +/- ##
=======================================
Coverage 99.78% 99.78%
=======================================
Files 38 38
Lines 1373 1373
Branches 375 400 +25
=======================================
Hits 1370 1370
Misses 3 3 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
ant-design/ant-design#45491