Switched package manager from Yarn to PNPM in Jenkinsfile and added pnpm-lock.yaml and pnpm-workspace.yaml for dependency management.
Some checks failed
thehideout/TheHideout-API/pipeline/head There was a failure building this commit

This commit is contained in:
Tom Butcher 2026-09-24 22:00:40 +01:00
parent f36dfb63df
commit 0efacb8377
3 changed files with 4570 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -12,13 +12,13 @@ def deploy() {
nodejs(nodeJSInstallationName: 'Node23') {
stage('Install') {
sh 'yarn install --frozen-lockfile --production=false'
sh 'pnpm install --frozen-lockfile'
}
stage('Deploy') {
// Deploy to Cloudflare Workers using wrangler
withCredentials([string(credentialsId: 'th-cloudflare-api-token', variable: 'CLOUDFLARE_API_TOKEN')]) {
sh 'yarn deploy'
sh 'pnpm run deploy'
}
}
}

4563
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

5
pnpm-workspace.yaml Normal file
View File

@ -0,0 +1,5 @@
allowBuilds:
es5-ext: true
esbuild: true
sharp: true
workerd: true