Skip to content

Commit 482a490

Browse files
authored
Merge pull request #46 from electron-modules/fix/build
2 parents e3a2350 + 5ef9b73 commit 482a490

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ rm -rf ./lib
33
rm -rf ./dist
44

55
# 2. tsc compile
6-
`npm bin`/tsc
6+
./node_modules/.bin/tsc
77

88
# 3. copy source file
9-
`npm bin`/copyup 'src/**/*.html' lib/
10-
`npm bin`/copyup 'src/**/*.less' lib/
9+
./node_modules/.bin/copyup 'src/**/*.html' lib/
10+
./node_modules/.bin/copyup 'src/**/*.less' lib/
1111

1212
# 4. webpack build
1313
npm run build:web

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"url": "https://github.com/electron-modules/electrom"
4141
},
4242
"dependencies": {
43+
"@ant-design/icons": "4",
4344
"debug": "4",
4445
"filesize": "6",
4546
"lodash": "4",

src/renderer/StatusBoard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ const useViewModel = (props: StatusBoardProps) => {
182182
{type === 'Tab' && !isDevtoolsSelf && (
183183
<BugOutlined
184184
title="debug"
185-
onClick={(e) => {
185+
onClick={(e: any) => {
186186
e.stopPropagation();
187187
openDevTools(item.webContentInfo);
188188
}}

0 commit comments

Comments
 (0)