detective
扩展名来处理各种文件扩展名,这些文件扩展名将把这些文件转换为可由普通程序处理的AST
侦探
当我在添加TSX文件后运行依赖性检查脚本时,它会退出,并显示错误状态和非常微弱的状态消息:
'>' expected.
我已经将其配置为与JS、JSX、TS和TSX一起工作(见下文),并且它可以处理四个版本中的三个。但是在添加了我的第一个TSX文件之后,它失败了。
#!/bin/sh
EXE="$(npm bin)/dependency-check"
"$EXE" package.json src/app.ts \
--no-dev --unused \
--extensions 'js,jsx:detective-es6' \
--extensions 'ts,tsx:detective-typescript' \
--ignore-module react-dom \
--ignore-module mocha-teamcity-reporter \
--ignore-module rimraf \
--ignore-module @types/react-dom \
--ignore-module @types/react \
--ignore-module @types/jss
detective
needs a JSX flag passed as an option for this to work
,但我不明白这到底是怎么回事
passed through the layers