-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: respect lockfile when building Node code #317
Changes from all commits
4685d4c
fa014d8
cb36065
3c245df
2b7c488
eb7d739
014fa08
f2e1665
d4de156
6ec5af5
a3ad019
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
//excluded | ||
const x = 1; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
//included | ||
const x = 1; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "package-lock-and-shrinkwrap", | ||
"version": "1.0.0", | ||
"description": "", | ||
"files": ["included.js"], | ||
"keywords": [], | ||
"author": "", | ||
"license": "APACHE2.0", | ||
"dependencies": { | ||
"minimal-request-promise": "*" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
//excluded | ||
const x = 1; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
//included | ||
const x = 1; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "package-lock", | ||
"version": "1.0.0", | ||
"description": "", | ||
"files": ["included.js"], | ||
"keywords": [], | ||
"author": "", | ||
"license": "APACHE2.0", | ||
"dependencies": { | ||
"minimal-request-promise": "*" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
//excluded | ||
const x = 1; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
//included | ||
const x = 1; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "shrinkwrap", | ||
"version": "1.0.0", | ||
"description": "", | ||
"files": ["included.js"], | ||
"keywords": [], | ||
"author": "", | ||
"license": "APACHE2.0", | ||
"dependencies": { | ||
"minimal-request-promise": "*" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question - do we want to check if
npm ci
is available?npm ci
is available since npm 6.x and nodejs12 comes with npm6.9+. nodejs10 is going to be deprecated in Lambda pretty soon. It seems safe but we might want to confirm.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we already have a PR out to remove Node10 support #319 and Lambda is dropping all support very soon too (Feb 14) https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html. We could potentially add a condition to check the npm version, fallback to
npm install
if needed and remove it after that date.