Skip to content

Commit 1dad6df

Browse files
authored
Really fix the panel build (#15)
1 parent b07c508 commit 1dad6df

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

build-panels.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
cd src/check-watch-panel
2-
yarn build-dist
2+
yarn build

src/check-watch-panel/dist-build.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cd build
2+
cp static/js/*.js main.js
3+
cp static/css/*.css main.css

src/check-watch-panel/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
},
3434
"scripts": {
3535
"start": "react-scripts start",
36-
"build": "react-scripts build && yarn run build-dist",
37-
"build-dist": "mkdir -p build && cd build && cp static/js/*.js main.js && cp static/css/*.css main.css",
36+
"build": "react-scripts build && yarn run dist-build",
37+
"dist-build": "./dist-build.sh",
3838
"lint": "eslint --ext .js,.ts && prettier -c .",
3939
"lint:fix": "eslint --fix --ext .js,.ts && prettier -w .",
4040
"test": "react-scripts test",

src/check-watch-panel/src/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function App() {
1919
const liveCheckService = useLiveCheckService(devService);
2020

2121
useEffect(() => {
22-
const listener = (event) => {
22+
const listener = (event: any) => {
2323
const message = event.data;
2424
switch (message.type) {
2525
case 'addWatch':

0 commit comments

Comments
 (0)