【发布时间】:2021-11-30 20:40:21
【问题描述】:
我是 Node 新手,在这个 package.json for React Typescript 项目中,我了解 rimraf 做了什么,但 --tsconfig 最后在做什么?
当我运行 prebuild 脚本时,我看到文件 typedoc.json 已被删除。但是为什么这个--tsconfig?有一个 tsconfig.json 文件,但我看不到 rimraf 正在做任何事情
"scripts": {
"build": "tsdx build --transpileOnly --entry ./src/index.js",
"prebuild": "npm run docs",
"prepublishOnly": "npm run build",
"docs": "rimraf typedoc.json && typedoc --tsconfig",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
},
这段代码的来源是notistackpackage.json
【问题讨论】:
标签: node.js scripting package.json npm-scripts