From 8796c90b2bfbf6e23543202f5a9addb9151f8458 Mon Sep 17 00:00:00 2001 From: Kaden Emley Date: Tue, 30 Jul 2024 11:12:03 -0400 Subject: [PATCH] ensure each package minus the frontend doesnt need nx Signed-off-by: Kaden Emley --- apps/frontend/package.json | 16 +++++++++++++--- package.json | 8 ++++---- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/apps/frontend/package.json b/apps/frontend/package.json index 2bed5e13fe..124335826d 100644 --- a/apps/frontend/package.json +++ b/apps/frontend/package.json @@ -24,7 +24,7 @@ "make:view": "vue-cli-service make:view", "prepack": "vue-cli-service build --dest dist && cp ../../README.md README.md && cp package.json package.json.orig && cat package.json.orig | jq '.dependencies = (.dependencies | with_entries(select(.key | contains(\"express\"))))' > package.json", "postpack": "mv package.json.orig package.json && rm README.md", - "start:dev": "yarn workspace @mitre/hdf-converters build && vue-cli-service serve", + "start:dev": "vue-cli-service serve", "test": "jest" }, "dependencies": { @@ -122,6 +122,7 @@ "chai-as-promised": "^7.1.1", "jest": "^27.0.6", "jest-useragent-mock": "^0.1.1", + "nx": "^19.5.3", "sinon": "^18.0.0", "ts-jest": "^29.1.0", "vue-jest": "^3.0.7" @@ -134,10 +135,19 @@ "issues": "/issues/new/choose", "readme": "README.md", "nx": { - "implicitDependencies": ["@mitre/hdf-converters"], + "implicitDependencies": [ + "@mitre/hdf-converters" + ], "targets": { + "start:dev": { + "dependsOn": [ + "^build" + ] + }, "test": { - "dependsOn": ["^build"] + "dependsOn": [ + "^build" + ] } } } diff --git a/package.json b/package.json index 667ace7768..1f748d41bb 100644 --- a/package.json +++ b/package.json @@ -7,12 +7,12 @@ "test" ], "scripts": { - "backend": "yarn workspace heimdall-server nx", + "backend": "yarn workspace heimdall-server", "build": "nx run-many --target=build --all", - "cypress-test": "yarn workspace @heimdall/cypress-tests nx", + "cypress-test": "yarn workspace @heimdall/cypress-tests", "frontend": "yarn workspace @mitre/heimdall-lite nx", - "hdf-converters": "yarn workspace @mitre/hdf-converters nx", - "inspecjs": "yarn workspace inspecjs nx", + "hdf-converters": "yarn workspace @mitre/hdf-converters", + "inspecjs": "yarn workspace inspecjs", "lint": "nx run-many --target=lint --all", "lint:ci": "nx run-many --target=lint:ci --all", "pack:all": "nx exec --parallel -p inspecjs @mitre/hdf-converters @mitre/heimdall-lite -- yarn pack",