Skip to content

Commit 542a3aa

Browse files
chore: fixed npm uninstall usages (#1688)
1 parent b51f811 commit 542a3aa

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

CONTRIBUTING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,8 @@ The following sections describe how to manage dependencies in practice.
185185

186186
### Removing A Package Dependency
187187

188-
`npm uninstall -D ${dependency-name}`: Removes a dev dependency from the root package.
189-
`npm uninstall ${dependency-name} -w packages/collector`: Removes a production dependency from the package `@instana/collector`. This is equivalent to `cd packages/collector; npm uninstall ${dependency-name}`.
190-
`npm uninstall -D ${dependency-name} -w packages/collector`: Removes a dev dependency from the package `@instana/collector`. This is equivalent to `cd packages/collector; npm uninstall -D ${dependency-name}`.
188+
`npm uninstall ${dependency-name}`: Removes a dependency from the root package.
189+
`npm uninstall ${dependency-name} -w packages/collector`: Removes a dependency from the package `@instana/collector`. This is equivalent to `cd packages/collector; npm uninstall ${dependency-name}`.
191190

192191
### Updating A Single Version In A `package.json` File
193192

packages/aws-lambda/lambdas/bin/create-zip-util

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ function createZip {
3030
# "instana-aws-lambda-auto-wrap": "file:../../instana-aws-lambda-auto-wrap.tgz"
3131
# }
3232
# ...then those need to be removed:
33-
npm uninstall --production -S @instana/core
34-
npm uninstall --production -S @instana/aws-lambda
35-
npm uninstall --production -S @instana/serverless
36-
npm uninstall --production -S instana-aws-lambda-auto-wrap
33+
npm uninstall -S @instana/core
34+
npm uninstall -S @instana/aws-lambda
35+
npm uninstall -S @instana/serverless
36+
npm uninstall -S instana-aws-lambda-auto-wrap
3737

3838
elif [[ "${BUILD_LAMBDAS_WITH}" == "local" ]]; then
3939
# The lambda's package.json might or might not already have a dependency to the local tar files:
@@ -63,9 +63,9 @@ function createZip {
6363
# "@instana/aws-lambda": "file:../../instana-aws-lambda.tgz"
6464
# }
6565
# this needs to be removed and then we install the latest published package from npm
66-
npm uninstall --production -S @instana/core
67-
npm uninstall --production -S @instana/aws-lambda
68-
npm uninstall --production -S @instana/serverless
66+
npm uninstall -S @instana/core
67+
npm uninstall -S @instana/aws-lambda
68+
npm uninstall -S @instana/serverless
6969
npm install --production -S @instana/core
7070
npm install --production -S @instana/aws-lambda
7171
npm install --production -S @instana/serverless

0 commit comments

Comments
 (0)