Fixing typescript version
This commit is contained in:
parent
964831c765
commit
1dc32bc16c
@ -22,21 +22,22 @@ steps:
|
||||
- task: UseNode@1
|
||||
displayName: "Setting up node"
|
||||
inputs:
|
||||
version: "20"
|
||||
version: "22"
|
||||
|
||||
- task: Npm@1
|
||||
displayName: "npm install"
|
||||
inputs:
|
||||
command: "install"
|
||||
workingDir: "$(System.DefaultWorkingDirectory)/functions"
|
||||
# - task: Npm@1
|
||||
# displayName: "npm install"
|
||||
# inputs:
|
||||
# command: "install"
|
||||
# workingDir: "$(System.DefaultWorkingDirectory)/functions"
|
||||
|
||||
- task: CmdLine@2
|
||||
displayName: "npm install"
|
||||
- task: Bash@3
|
||||
inputs:
|
||||
targetType: "inline"
|
||||
script: |
|
||||
"rm -rf node_modules"
|
||||
"rm package-lock.json"
|
||||
"npm install --frozen-lockfile"
|
||||
ls -la
|
||||
rm -rf node_modules
|
||||
rm -f package-lock.json
|
||||
npm clean-install
|
||||
workingDirectory: "$(System.DefaultWorkingDirectory)/functions"
|
||||
|
||||
- task: PowerShell@2
|
||||
@ -76,7 +77,7 @@ steps:
|
||||
- task: CmdLine@2
|
||||
displayName: "Deploy functions to firebase"
|
||||
inputs:
|
||||
script: firebase deploy --only functions --token "$(FIREBASE_TOKEN)"
|
||||
script: firebase deploy"
|
||||
workingDirectory: "$(System.DefaultWorkingDirectory)"
|
||||
|
||||
- task: DeleteFiles@1
|
||||
@ -93,7 +94,6 @@ steps:
|
||||
rootFolderOrFile: "$(System.DefaultWorkingDirectory)/functions"
|
||||
includeRootFolder: false
|
||||
archiveFile: "$(System.DefaultWorkingDirectory)/fitlien-services-$(buildNumber).zip"
|
||||
compression: "zip"
|
||||
|
||||
- task: CopyFiles@2
|
||||
displayName: "Copy archive to staging directory"
|
||||
|
||||
10
functions/package-lock.json
generated
10
functions/package-lock.json
generated
@ -18,7 +18,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"firebase-functions-test": "^3.1.0",
|
||||
"typescript": "^4.9.0"
|
||||
"typescript": "^5.8.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": "22"
|
||||
@ -5875,16 +5875,16 @@
|
||||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "4.9.5",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz",
|
||||
"integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==",
|
||||
"version": "5.8.2",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz",
|
||||
"integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4.2.0"
|
||||
"node": ">=14.17"
|
||||
}
|
||||
},
|
||||
"node_modules/undici-types": {
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"firebase-functions-test": "^3.1.0",
|
||||
"typescript": "^4.9.0"
|
||||
"typescript": "^5.8.2"
|
||||
},
|
||||
"private": true
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user