File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 7373 "release" : " bash ./scripts/release.sh" ,
7474 "test" : " vitest run" ,
7575 "test:cov" : " yarn test --coverage" ,
76- "test:watch" : " vitest" ,
77- "toggle-pkg-type" : " node --loader=./loader.mjs ./src/cli"
76+ "test:watch" : " vitest"
7877 },
7978 "devDependencies" : {
8079 "@commitlint/cli" : " 17.1.2" ,
Original file line number Diff line number Diff line change 77
88import sade from 'sade'
99import pkg from '../package.json' assert { type : 'json ' }
10+ import toggle from './toggle'
1011
1112sade ( `${ pkg . name . replace ( / .* \/ / , '' ) } [off|on]` )
1213 . version ( pkg . version )
1314 . describe ( pkg . description )
14- . action ( ( ) : void => void 0 )
15+ . example ( '' )
16+ . example ( 'off' )
17+ . example ( 'on' )
18+ . action ( ( command ? : 'off' | 'on' ) : void => void toggle ( command ) )
1519 . parse ( process . argv )
You can’t perform that action at this time.
0 commit comments