From 81dfc7849c7db6e38266f3c40ea5fc76a1737a18 Mon Sep 17 00:00:00 2001 From: Anton Drukh Date: Sun, 18 Jun 2017 17:14:00 +0300 Subject: [PATCH] feat: allow fetching package-lock.json to support npm5 projects --- .../bitbucket-server/accept.json.sample | 6 ++++++ client-templates/github/accept.json.sample | 14 ++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/client-templates/bitbucket-server/accept.json.sample b/client-templates/bitbucket-server/accept.json.sample index fe328f3a8..eb7c5c5f7 100644 --- a/client-templates/bitbucket-server/accept.json.sample +++ b/client-templates/bitbucket-server/accept.json.sample @@ -19,6 +19,12 @@ "path": "/projects/:project/repos/:repo/browse*/package.json", "origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET_API}" }, + { + "//": "used to determine the full dependency tree", + "method": "GET", + "path": "/projects/:project/repos/:repo/browse*/package-lock.json", + "origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET_API}" + }, { "//": "used to determine the full dependency tree", "method": "GET", diff --git a/client-templates/github/accept.json.sample b/client-templates/github/accept.json.sample index bbc2cd0e1..5abc5c688 100644 --- a/client-templates/github/accept.json.sample +++ b/client-templates/github/accept.json.sample @@ -19,6 +19,14 @@ "path": "commits.*.modified.*", "value": "package.json" }, + { + "path": "commits.*.added.*", + "value": "package-lock.json" + }, + { + "path": "commits.*.modified.*", + "value": "package-lock.json" + }, { "path": "commits.*.added.*", "value": "Gemfile.lock" @@ -103,6 +111,12 @@ "path": "/:name/:repo/:branch*/package.json", "origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}" }, + { + "//": "used to determine the full dependency tree", + "method": "GET", + "path": "/:name/:repo/:branch*/package-lock.json", + "origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}" + }, { "//": "used to determine the full dependency tree", "method": "GET",