File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
cli-plugin-typescript/__tests__ Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ const options = {
1010 }
1111}
1212
13- assertServe ( 'ts-default -serve' , options )
14- assertBuild ( 'ts-default -build' , options , async ( project ) => {
13+ assertServe ( 'ts-class -serve' , options )
14+ assertBuild ( 'ts-class -build' , options , async ( project ) => {
1515 const app = await project . read ( 'src/App.vue' )
1616 expect ( app ) . toMatch ( `export default class App extends Vue {` )
1717} )
Original file line number Diff line number Diff line change @@ -127,7 +127,9 @@ function cleanArgs (cmd) {
127127 const args = { }
128128 cmd . options . forEach ( o => {
129129 const key = o . long . replace ( / ^ - - / , '' )
130- if ( typeof cmd [ key ] === 'string' ) {
130+ // if an option is not present and Command has a method with the same name
131+ // it should not be copied
132+ if ( typeof cmd [ key ] !== 'function' ) {
131133 args [ key ] = cmd [ key ]
132134 }
133135 } )
You can’t perform that action at this time.
0 commit comments