Closed samwalshnz closed 5 years ago
In the docs it says:
The output should be: 1 module with unused exports math: add1 Also note the exit status (which equals the number of offending modules)
The output should be:
1 module with unused exports math: add1
Also note the exit status (which equals the number of offending modules)
I'm not sure this is a good idea and wonder if it's really necessary to 'return' the number of files.
Can we remove the following line? https://github.com/pzavolinsky/ts-unused-exports/blob/master/src/cli.ts#L43
Otherwise, if I use the script with npm run scripts (a script in package.json), I get this error:
npm run
npm ERR! code ELIFECYCLE npm ERR! errno 6 npm ERR! consumer-app@0.1.0 npm run lint:unused-exports: `ts-unused-exports ./tsconfig.json` npm ERR! Exit status 6
'6' is the number of files returned by process.exit
process.exit
This is merged to master.
We also added an option --exitWithCount in case some people liked the old behavior.
--exitWithCount
In the docs it says:
I'm not sure this is a good idea and wonder if it's really necessary to 'return' the number of files.
Can we remove the following line? https://github.com/pzavolinsky/ts-unused-exports/blob/master/src/cli.ts#L43
Otherwise, if I use the script with
npm run
scripts (a script in package.json), I get this error: