File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -134,14 +134,20 @@ function buildES(pkg) {
134
134
try {
135
135
const rollupConfigPath = path . resolve ( __dirname , '..' , '..' , 'rollup.config.js' ) ;
136
136
const callingRollupConfigPath = path . resolve ( __dirname , '..' , '..' , 'rollup.calling-config.js' ) ;
137
- // Rollup cleans the `es` folder automatically
138
- console . info ( `Packaging ${ pkg } ...` . cyan ) ;
139
-
140
- execSync ( `cd ${ targetPkgPath } && rollup -c ${ rollupConfigPath } ` ) ;
141
-
142
- console . info ( `${ pkg } ... Done\n\n` . cyan ) ;
143
-
144
- // execSync(`cd widgets && rollup -c ${callingRollupConfigPath}`);
137
+
138
+
139
+
140
+
141
+ if ( `${ pkg } ` === 'widget-call-history' ) {
142
+ console . info ( `Packaging ${ pkg } ...` . cyan ) ;
143
+ // Rollup cleans the `es` folder automatically
144
+ execSync ( `cd widgets && rollup -c ${ callingRollupConfigPath } ` ) ;
145
+ } else {
146
+ // Rollup cleans the `es` folder automatically
147
+ console . info ( `Packaging ${ pkg } ...` . cyan ) ;
148
+ execSync ( `cd ${ targetPkgPath } && rollup -c ${ rollupConfigPath } ` ) ;
149
+ }
150
+
145
151
146
152
}
147
153
catch ( err ) {
You can’t perform that action at this time.
0 commit comments