我的應用程式使用Angular 2.4,我想在Azure Devops上構建時忽略.npmrc檔案。我不確定是在tgconfig.json檔案還是在構建管道本身上忽略它。但我嘗試在tgconfig.json檔案上排除這個.npmrc檔案,如下:
{
"compilerOptions": {
"moduleResolution": "node",
"目標": "es5",
"sourceMap": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"skipDefaultLibCheck": true,
"removeComments": true
},
"exclude": [
"node_modules",
"wwwroot/dist",
".npmrc"
]
}
但是,在azure devops上的構建仍然沒有忽略它。而這里是構建的定義。
uj5u.com熱心網友回復:
你可以添加一個步驟,在處理之前洗掉檔案。
bash: |
rm $(Build.SourcesFolder)/.npmrc
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/331049.html
標籤:
上一篇:將CURL請求轉換為Axios
