File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ const watch = require("@cnakazawa/watch");
6
6
const { execSync } = require ( "child_process" ) ;
7
7
8
8
class WebExtReact {
9
+ constructor ( ) {
10
+ this . buildNum = 0 ;
11
+ }
12
+
9
13
get buildPath ( ) {
10
14
return path . join ( process . cwd ( ) , "build" , "static" ) ;
11
15
}
@@ -66,6 +70,7 @@ class WebExtReact {
66
70
this . addContentScript ( ) ;
67
71
await this . bundleExt ( ) ;
68
72
this . addHtml ( ) ;
73
+ this . buildNum ++ ;
69
74
return this . tmp ;
70
75
}
71
76
}
@@ -185,7 +190,9 @@ class WebExtReact {
185
190
} ,
186
191
async ( ) => {
187
192
const sourceDir = await this . buildExt ( ) ;
188
- process . stdout . write ( `${ sourceDir } \n` ) ;
193
+ if ( this . buildNum === 1 ) {
194
+ process . stdout . write ( `${ sourceDir } \n` ) ;
195
+ }
189
196
}
190
197
) ;
191
198
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " web-ext-react" ,
3
- "version" : " 1.0 .2" ,
3
+ "version" : " 1.1 .2" ,
4
4
"description" : " Command line tool to help build, run and test ReactJS based WebExtensions" ,
5
5
"main" : " index.js" ,
6
6
"bin" : {
You can’t perform that action at this time.
0 commit comments