File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 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 = () => {
904904 try {
905905 const obj = { } ;
906906 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 ;
908914 } catch ( err ) {
909915 throw err ;
910916 }
Original file line number Diff line number Diff line change 7070<%_ } else if (!usingTS && !rootOptions.router) { _%>
7171<%# -------------------- IS NOT Using TypeScript AND IS NOT Using vue-router -------------------- -%>
7272<script>
73+ import HelloWorld from './components/HelloWorld';
74+
7375 const { VUE_APP_MODE, VUE_APP_PLATFORM } = process.env;
7476
7577 export default {
7981 msg: `Mode=${VUE_APP_MODE} and Platform=${VUE_APP_PLATFORM}`,
8082 };
8183 },
84+ components: {
85+ HelloWorld,
86+ },
8287 };
8388</script>
8489<%_ } else if (usingTS && rootOptions.router) { _%>
Original file line number Diff line number Diff line change 1717 "preversion" : " npm test" ,
1818 "version" : " git add -A" ,
1919 "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\" "
2123 },
2224 "author" : " Igor Randjelovic" ,
2325 "license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments