Skip to content

Commit

Permalink
pin server + update oscal-js version
Browse files Browse the repository at this point in the history
  • Loading branch information
wandmagic committed Dec 2, 2024
1 parent b82c417 commit a8461fb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
oscal-cli 2.4.0
oscal-cli 2.4.0
oscal-server v1.0.0-SNAPSHOT-6363f60-20241202160440
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"inquirer": "^10.1.8",
"js-yaml": "^4.1.0",
"jsdom": "^25.0.0",
"oscal": "2.0.6",
"oscal": "2.0.7",
"ts-node": "^10.9.2",
"xml-formatter": "^3.6.3",
"xml2js": "^0.6.2"
Expand Down
3 changes: 2 additions & 1 deletion src/validations/module.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Variables
OSCAL_VERSION = $(shell jq -r .dependencies.oscal package.json)
OSCAL_CLI_VERSION = $(shell awk '/^oscal-cli/ {print $$2}' .tool-versions)
OSCAL_SERVER_VERSION = $(shell awk '/^oscal-server/ {print $$2}' .tool-versions)
OSCAL_CLI = npx oscal@$(OSCAL_VERSION)
SRC_DIR = ./src
DIST_DIR = ./dist
Expand All @@ -13,7 +14,7 @@ init-validations:
@echo "Installing node modules..."
npm install
$(OSCAL_CLI) use $(OSCAL_CLI_VERSION)
$(OSCAL_CLI) server update
$(OSCAL_CLI) server update $(OSCAL_SERVER_VERSION)

# Style lint
.PHONY: lint-style
Expand Down

0 comments on commit a8461fb

Please sign in to comment.