diff --git a/package-lock.json b/package-lock.json index e7692b844..b1c37a30e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@dependencytrack/frontend", - "version": "1.0.0", + "version": "1.1.0-SNAPSHOT", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 3cc98ec61..d55205c8f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dependencytrack/frontend", - "version": "1.0.0", + "version": "1.1.0-SNAPSHOT", "description": "Single Page Application for OWASP Dependency-Track", "author": "Steve Springett", "homepage": "https://dependencytrack.org/", @@ -12,7 +12,7 @@ }, "scripts": { "start": "npm run serve", - "serve": "vue-cli-service serve", + "serve": "npm run prebuild && vue-cli-service serve", "prebuild": "node update-embedded-version.js", "build": "npm run prebuild && vue-cli-service build && npm run bom", "lint": "vue-cli-service lint", diff --git a/update-embedded-version.js b/update-embedded-version.js index 8465e80fd..6e68f3a66 100644 --- a/update-embedded-version.js +++ b/update-embedded-version.js @@ -1,7 +1,7 @@ const fs = require("fs"); const filePath = "./package.json"; const versionPath = "./src/version.json"; -const uuidv4 = require('uuid/v4'); +const { v4: uuidv4 } = require('uuid'); const packageJson = JSON.parse(fs.readFileSync(filePath).toString());