From 6019baad49f3f76ec5205b2831530a410f7f304d Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sun, 6 Apr 2025 22:02:36 +0100 Subject: [PATCH] Fixed vite install issue --- Jenkinsfile | 3 +-- package-lock.json | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2749409..9281efe 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,13 +22,12 @@ pipeline { stage('Install dependencies') { steps { sh 'ls && npm install' // Install project dependencies - stash name: 'node_modules', includes: 'node_modules/**' + sh 'npm install vite --save-dev' } } stage('Build') { steps { - unstash 'node_modules' sh 'ls ./node_modules && npm ls vite && npm run build' // Build the project } } diff --git a/package-lock.json b/package-lock.json index a4e798a..a2cc4ec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "personal-site", + "name": "tombutcher-ui", "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "personal-site", + "name": "tombutcher-ui", "version": "0.1.0", "dependencies": { "@ant-design/icons": "^6.0.0",