File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -100,15 +100,15 @@ async function buildComponentLibrary(name) {
100
100
const pkgPath = fileURLToPath (
101
101
new URL ( import . meta. resolve ( `${ name } /package.json` ) ) ,
102
102
) ;
103
- const modulePath = path . dirname ( pkgPath ) ;
103
+ const libPath = path . dirname ( pkgPath ) ;
104
104
const { miniprogram } = await fs . readJson ( pkgPath , 'utf8' ) ;
105
105
106
106
let source = '' ;
107
107
if ( miniprogram ) {
108
- source = path . join ( modulePath , miniprogram ) ;
108
+ source = path . join ( libPath , miniprogram ) ;
109
109
} else {
110
110
try {
111
- const dist = path . join ( modulePath , 'miniprogram_dist' ) ;
111
+ const dist = path . join ( libPath , 'miniprogram_dist' ) ;
112
112
const stats = await fs . stat ( dist ) ;
113
113
if ( stats . isDirectory ( ) ) {
114
114
source = dist ;
Original file line number Diff line number Diff line change @@ -100,15 +100,15 @@ async function buildComponentLibrary(name) {
100
100
const pkgPath = fileURLToPath (
101
101
new URL ( import . meta. resolve ( `${ name } /package.json` ) ) ,
102
102
) ;
103
- const modulePath = path . dirname ( pkgPath ) ;
103
+ const libPath = path . dirname ( pkgPath ) ;
104
104
const { miniprogram } = await fs . readJson ( pkgPath , 'utf8' ) ;
105
105
106
106
let source = '' ;
107
107
if ( miniprogram ) {
108
- source = path . join ( modulePath , miniprogram ) ;
108
+ source = path . join ( libPath , miniprogram ) ;
109
109
} else {
110
110
try {
111
- const dist = path . join ( modulePath , 'miniprogram_dist' ) ;
111
+ const dist = path . join ( libPath , 'miniprogram_dist' ) ;
112
112
const stats = await fs . stat ( dist ) ;
113
113
if ( stats . isDirectory ( ) ) {
114
114
source = dist ;
You can’t perform that action at this time.
0 commit comments