File tree 3 files changed +15
-2
lines changed
3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -904,7 +904,13 @@ const extractCallDir = (module.exports.extractCallDir = () => {
904
904
try {
905
905
const obj = { } ;
906
906
Error . captureStackTrace ( obj ) ;
907
- return path . dirname ( obj . stack . split ( '\n' ) [ 3 ] . match ( / \s \( ( .* ) : \d + : \d + \) $ / ) [ 1 ] ) ;
907
+ const callSite = obj . stack . split ( '\n' ) [ 3 ] ;
908
+ let { fileName } = / (?< fileName > [ ^ ( \s ] + ) : [ 0 - 9 ] + : [ 0 - 9 ] + / . exec ( callSite ) . groups ;
909
+ if ( fileName . indexOf ( 'file' ) >= 0 ) {
910
+ fileName = new URL ( fileName ) . pathname ;
911
+ }
912
+ let dirname = path . dirname ( fileName ) ;
913
+ return dirname ;
908
914
} catch ( err ) {
909
915
throw err ;
910
916
}
Original file line number Diff line number Diff line change 70
70
<%_ } else if (!usingTS && !rootOptions.router) { _%>
71
71
<%# -------------------- IS NOT Using TypeScript AND IS NOT Using vue-router -------------------- -%>
72
72
<script>
73
+ import HelloWorld from './components/HelloWorld';
74
+
73
75
const { VUE_APP_MODE, VUE_APP_PLATFORM } = process.env;
74
76
75
77
export default {
79
81
msg: `Mode=${VUE_APP_MODE} and Platform=${VUE_APP_PLATFORM}`,
80
82
};
81
83
},
84
+ components: {
85
+ HelloWorld,
86
+ },
82
87
};
83
88
</script>
84
89
<%_ } else if (usingTS && rootOptions.router) { _%>
Original file line number Diff line number Diff line change 17
17
"preversion" : " npm test" ,
18
18
"version" : " git add -A" ,
19
19
"postversion" : " git push --tags origin master" ,
20
- "prep" : " npm version patch -m \" build %s\" "
20
+ "prep:patch" : " npm version patch -m \" build %s\" " ,
21
+ "prep:minor" : " npm version minor -m \" build %s\" " ,
22
+ "prep:major" : " npm version major -m \" build %s\" "
21
23
},
22
24
"author" : " Igor Randjelovic" ,
23
25
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments