Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-nodejs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-nodejs
Commits
280afcef
Unverified
Commit
280afcef
authored
Mar 02, 2018
by
Jeremy Morrell
Committed by
GitHub
Mar 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add timing metrics to prune step (#527)
parent
bb9b5a91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
dependencies.sh
lib/dependencies.sh
+4
-0
No files found.
lib/dependencies.sh
View file @
280afcef
...
...
@@ -107,8 +107,10 @@ yarn_prune_devdependencies() {
echo "
Skipping because YARN_PRODUCTION is not
'true'
"
return 0
else
local start=
$(
nowms
)
cd "
$build_dir
"
yarn install --frozen-lockfile --ignore-engines --ignore-scripts --prefer-offline 2>&1
mtime "
prune.yarn.time
" "
${
start
}
"
fi
}
...
...
@@ -170,7 +172,9 @@ npm_prune_devdependencies() {
echo "
https://github.com/npm/npm/issues/17781
"
return 0
else
local start=
$(
nowms
)
cd "
$build_dir
"
npm prune --userconfig
$build_dir
/.npmrc 2>&1
mtime "
prune.npm.time
" "
${
start
}
"
fi
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment