From 48f6ee94923347eb9e328bc36825026026cb269e Mon Sep 17 00:00:00 2001 From: Shazron Abdullah Date: Mon, 28 Nov 2022 05:53:09 -0800 Subject: [PATCH 1/2] fix: ACNA-1847 - add template validation checks --- package.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5bfa463..048b276 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "ecosystem:aio-app-builder-template" ], "scripts": { - "test": "npm run lint && npm run unit-tests", + "validation": "npx tv run-checks .", + "test": "npm run lint && npm run unit-tests && npm run validation", "lint": "eslint .", "unit-tests": "jest -c ./jest.config.js" }, @@ -21,6 +22,7 @@ "author": "Adobe Inc.", "license": "Apache-2.0", "devDependencies": { + "@adobe/aio-lib-template-validation": "^4.0.0", "@types/jest": "^27.4.1", "eol": "^0.9.1", "eslint": "^7.1.0", @@ -32,11 +34,11 @@ "eslint-plugin-standard": "^4.0.1", "jest": "^27", "js-yaml": "^4.1.0", + "lodash.clonedeep": "^4.5.0", "stdout-stderr": "^0.1.13", "yeoman-assert": "^3.1.1", - "yeoman-test": "^6.0.0", "yeoman-environment": "^3.2.0", - "lodash.clonedeep": "^4.5.0" + "yeoman-test": "^6.0.0" }, "dependencies": { "@adobe/generator-app-common-lib": "0.3.0", From d6d790e9998cd962d6efe17d534ca5be8e465678 Mon Sep 17 00:00:00 2001 From: Shazron Abdullah Date: Fri, 16 Dec 2022 19:50:32 +0800 Subject: [PATCH 2/2] remove use of npx --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 048b276..267730b 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "ecosystem:aio-app-builder-template" ], "scripts": { - "validation": "npx tv run-checks .", + "validation": "tv run-checks .", "test": "npm run lint && npm run unit-tests && npm run validation", "lint": "eslint .", "unit-tests": "jest -c ./jest.config.js"