From 8122e4f2f53dd2670971ff920114de5fba9a2f91 Mon Sep 17 00:00:00 2001 From: Bradley Momberger Date: Tue, 3 Oct 2017 09:50:30 -0400 Subject: [PATCH] landscaper: Add a cycle detection script to test process --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index db48cea9..ac93a04b 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ }, "devDependencies": { "can-fixture": "^1.1.0", + "detect-cyclic-packages": "^1.1.0", "jquery": "2.x - 3.x", "jshint": "^2.9.4", "steal": "^1.0.1", @@ -47,7 +48,7 @@ }, "scripts": { "jshint": "jshint --config .jshintrc", - "test": "npm run jshint && testee --browsers firefox test/test.html", + "test": "npm run detect-cycle && npm run jshint && testee --browsers firefox test/test.html", "preversion": "npm test && npm run build", "version": "git commit -am \"Update dist for release\" && git checkout -b release && git add -f dist/", "postversion": "git push --tags && git checkout master && git branch -D release && git push", @@ -55,7 +56,8 @@ "release:patch": "npm version patch && npm publish", "release:minor": "npm version minor && npm publish", "release:major": "npm version major && npm publish", - "build": "node build.js" + "build": "node build.js", + "detect-cycle": "detect-cyclic-packages --ignore done-serve" }, "keywords": [ "CanJS"