@aws/nx-plugin 0.119.0 → 0.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/mcp-server/generator-info.d.ts +2 -6
- package/src/mcp-server/generator-info.js +19 -40
- package/src/mcp-server/generator-info.js.map +1 -1
- package/src/preset/generator.js +1 -0
- package/src/preset/generator.js.map +1 -1
- package/src/py/agent/generator.js +4 -1
- package/src/py/agent/generator.js.map +1 -1
- package/src/py/agent/schema.json +1 -1
- package/src/py/fast-api/__snapshots__/generator.spec.ts.snap +197 -12
- package/src/py/fast-api/generator.js +9 -0
- package/src/py/fast-api/generator.js.map +1 -1
- package/src/py/fast-api/schema.d.ts +1 -1
- package/src/py/fast-api/schema.json +2 -2
- package/src/py/mcp-server/generator.js +3 -0
- package/src/py/mcp-server/generator.js.map +1 -1
- package/src/py/mcp-server/schema.json +1 -1
- package/src/smithy/ts/api/__snapshots__/generator.spec.ts.snap +195 -11
- package/src/smithy/ts/api/generator.js +18 -0
- package/src/smithy/ts/api/generator.js.map +1 -1
- package/src/smithy/ts/api/schema.d.ts +1 -1
- package/src/smithy/ts/api/schema.json +2 -2
- package/src/trpc/backend/__snapshots__/generator.spec.ts.snap +258 -25
- package/src/trpc/backend/generator.js +19 -0
- package/src/trpc/backend/generator.js.map +1 -1
- package/src/trpc/backend/schema.d.ts +1 -1
- package/src/trpc/backend/schema.json +2 -2
- package/src/trpc/react/__snapshots__/generator.spec.ts.snap +28 -18
- package/src/trpc/react/files/src/components/__apiNameClassName__ClientProvider.tsx.template +9 -6
- package/src/trpc/react/generator.js +2 -6
- package/src/trpc/react/generator.js.map +1 -1
- package/src/ts/agent/generator.js +4 -1
- package/src/ts/agent/generator.js.map +1 -1
- package/src/ts/agent/schema.json +1 -1
- package/src/ts/mcp-server/generator.js +3 -0
- package/src/ts/mcp-server/generator.js.map +1 -1
- package/src/ts/mcp-server/schema.json +1 -1
- package/src/utils/api-constructs/api-constructs.d.ts +3 -1
- package/src/utils/api-constructs/api-constructs.js.map +1 -1
- package/src/utils/api-constructs/files/cdk/app/apis/http/__apiNameKebabCase__.ts.template +38 -6
- package/src/utils/api-constructs/files/cdk/app/apis/rest/__apiNameKebabCase__.ts.template +39 -3
- package/src/utils/api-constructs/files/cdk/authorizer/http/authorizer.ts.template +34 -0
- package/src/utils/api-constructs/files/cdk/authorizer/rest/authorizer.ts.template +52 -0
- package/src/utils/api-constructs/files/py-authorizer/http/authorizer.py.template +25 -0
- package/src/utils/api-constructs/files/py-authorizer/rest/authorizer.py.template +39 -0
- package/src/utils/api-constructs/files/terraform/app/apis/http/__apiNameKebabCase__/__apiNameKebabCase__.tf.template +112 -5
- package/src/utils/api-constructs/files/terraform/app/apis/rest/__apiNameKebabCase__/__apiNameKebabCase__.tf.template +114 -6
- package/src/utils/commands.d.ts +1 -1
- package/src/utils/commands.js +3 -2
- package/src/utils/commands.js.map +1 -1
- package/src/utils/connection/open-api/react.d.ts +1 -1
|
@@ -267,6 +267,114 @@ resource "aws_apigatewayv2_authorizer" "cognito_authorizer" {
|
|
|
267
267
|
issuer = "https://cognito-idp.${data.aws_region.current.region}.amazonaws.com/${var.user_pool_id}"
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
|
+
<%_ } else if (auth === 'Custom') { _%>
|
|
271
|
+
# Custom Lambda Authorizer
|
|
272
|
+
resource "aws_lambda_function" "authorizer_lambda" {
|
|
273
|
+
#checkov:skip=CKV_AWS_117:Lambda function does not need to be in VPC for this use case
|
|
274
|
+
#checkov:skip=CKV_AWS_116:Dead Letter Queue not required for authorizer
|
|
275
|
+
#checkov:skip=CKV_AWS_272:Code signing not required for this use case
|
|
276
|
+
#checkov:skip=CKV_AWS_115:Concurrent execution limit not required for this use case
|
|
277
|
+
#checkov:skip=CKV_AWS_173:Lambda environment variables encrypted by managed key
|
|
278
|
+
s3_bucket = aws_s3_object.authorizer_zip.bucket
|
|
279
|
+
s3_key = aws_s3_object.authorizer_zip.key
|
|
280
|
+
s3_object_version = aws_s3_object.authorizer_zip.version_id
|
|
281
|
+
function_name = "<%- apiNameClassName %>Authorizer-${random_string.suffix.result}"
|
|
282
|
+
role = aws_iam_role.authorizer_execution_role.arn
|
|
283
|
+
<%_ if (['trpc', 'smithy'].includes(backend.type)) { _%>
|
|
284
|
+
handler = "index.handler"
|
|
285
|
+
runtime = "nodejs22.x"
|
|
286
|
+
<%_ } else if (backend.type === 'fastapi') { _%>
|
|
287
|
+
handler = "<%- backend.moduleName %>.authorizer.handler"
|
|
288
|
+
runtime = "python3.14"
|
|
289
|
+
<%_ } _%>
|
|
290
|
+
timeout = 10
|
|
291
|
+
memory_size = 128
|
|
292
|
+
|
|
293
|
+
source_code_hash = data.archive_file.authorizer_zip.output_base64sha256
|
|
294
|
+
|
|
295
|
+
tracing_config {
|
|
296
|
+
mode = "Active"
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
tags = var.tags
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
resource "aws_iam_role" "authorizer_execution_role" {
|
|
303
|
+
name = "<%- apiNameClassName %>Authorizer-role-${random_string.suffix.result}"
|
|
304
|
+
|
|
305
|
+
assume_role_policy = jsonencode({
|
|
306
|
+
Version = "2012-10-17"
|
|
307
|
+
Statement = [
|
|
308
|
+
{
|
|
309
|
+
Action = "sts:AssumeRole"
|
|
310
|
+
Effect = "Allow"
|
|
311
|
+
Principal = {
|
|
312
|
+
Service = "lambda.amazonaws.com"
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
]
|
|
316
|
+
})
|
|
317
|
+
|
|
318
|
+
tags = var.tags
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
resource "aws_iam_role_policy_attachment" "authorizer_basic_execution" {
|
|
322
|
+
policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
|
|
323
|
+
role = aws_iam_role.authorizer_execution_role.name
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
resource "aws_iam_role_policy_attachment" "authorizer_xray_execution" {
|
|
327
|
+
policy_arn = "arn:aws:iam::aws:policy/AWSXRayDaemonWriteAccess"
|
|
328
|
+
role = aws_iam_role.authorizer_execution_role.name
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
resource "aws_cloudwatch_log_group" "authorizer_logs" {
|
|
332
|
+
#checkov:skip=CKV_AWS_158:Using default CloudWatch log encryption
|
|
333
|
+
#checkov:skip=CKV_AWS_338:Log retention set to forever
|
|
334
|
+
#checkov:skip=CKV_AWS_66:Log retention set to forever
|
|
335
|
+
name = "/aws/lambda/<%- apiNameClassName %>Authorizer-${random_string.suffix.result}"
|
|
336
|
+
tags = var.tags
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
<%_ if (['trpc', 'smithy'].includes(backend.type)) { _%>
|
|
340
|
+
data "archive_file" "authorizer_zip" {
|
|
341
|
+
type = "zip"
|
|
342
|
+
source_dir = "${path.module}/../../../../../../../<%- backend.authorizerBundleOutputDir %>"
|
|
343
|
+
output_path = "${path.module}/../../../../../../../dist/packages/common/terraform/apis/<%- apiNameKebabCase %>/authorizer.zip"
|
|
344
|
+
}
|
|
345
|
+
<%_ } else if (backend.type === 'fastapi') { _%>
|
|
346
|
+
data "archive_file" "authorizer_zip" {
|
|
347
|
+
type = "zip"
|
|
348
|
+
source_dir = "${path.module}/../../../../../../../<%- backend.bundleOutputDir %>"
|
|
349
|
+
output_path = "${path.module}/../../../../../../../dist/packages/common/terraform/apis/<%- apiNameKebabCase %>/authorizer.zip"
|
|
350
|
+
}
|
|
351
|
+
<%_ } _%>
|
|
352
|
+
|
|
353
|
+
resource "aws_s3_object" "authorizer_zip" {
|
|
354
|
+
bucket = var.asset_bucket_name
|
|
355
|
+
key = "apis/<%- apiNameKebabCase %>/authorizer-${data.archive_file.authorizer_zip.output_sha256}.zip"
|
|
356
|
+
source = data.archive_file.authorizer_zip.output_path
|
|
357
|
+
source_hash = data.archive_file.authorizer_zip.output_base64sha256
|
|
358
|
+
etag = data.archive_file.authorizer_zip.output_md5
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
resource "aws_apigatewayv2_authorizer" "custom_authorizer" {
|
|
362
|
+
api_id = module.http_api.api_id
|
|
363
|
+
authorizer_type = "REQUEST"
|
|
364
|
+
authorizer_uri = aws_lambda_function.authorizer_lambda.invoke_arn
|
|
365
|
+
authorizer_payload_format_version = "2.0"
|
|
366
|
+
authorizer_result_ttl_in_seconds = 0
|
|
367
|
+
enable_simple_responses = true
|
|
368
|
+
name = "<%- apiNameClassName %>Authorizer-${random_string.suffix.result}"
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
resource "aws_lambda_permission" "authorizer_invoke" {
|
|
372
|
+
statement_id = "AllowAPIGatewayInvokeAuthorizer"
|
|
373
|
+
action = "lambda:InvokeFunction"
|
|
374
|
+
function_name = aws_lambda_function.authorizer_lambda.function_name
|
|
375
|
+
principal = "apigateway.amazonaws.com"
|
|
376
|
+
source_arn = "${module.http_api.api_execution_arn}/authorizers/${aws_apigatewayv2_authorizer.custom_authorizer.id}"
|
|
377
|
+
}
|
|
270
378
|
<%_ } _%>
|
|
271
379
|
|
|
272
380
|
# Lambda integration for HTTP API
|
|
@@ -304,13 +412,12 @@ resource "aws_apigatewayv2_route" "proxy_routes" {
|
|
|
304
412
|
<%_ } else if (auth === 'Cognito') { _%>
|
|
305
413
|
authorization_type = "JWT"
|
|
306
414
|
authorizer_id = aws_apigatewayv2_authorizer.cognito_authorizer.id
|
|
307
|
-
<%_ } else if (auth === '
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
authorization_type = "NONE"
|
|
415
|
+
<%_ } else if (auth === 'Custom') { _%>
|
|
416
|
+
authorization_type = "CUSTOM"
|
|
417
|
+
authorizer_id = aws_apigatewayv2_authorizer.custom_authorizer.id
|
|
311
418
|
<%_ } _%>
|
|
312
419
|
|
|
313
|
-
depends_on = [aws_apigatewayv2_integration.lambda_integration<% if (auth === 'Cognito') { %>, aws_apigatewayv2_authorizer.cognito_authorizer<% } %>]
|
|
420
|
+
depends_on = [aws_apigatewayv2_integration.lambda_integration<% if (auth === 'Cognito') { %>, aws_apigatewayv2_authorizer.cognito_authorizer<% } else if (auth === 'Custom') { %>, aws_apigatewayv2_authorizer.custom_authorizer<% } %>]
|
|
314
421
|
}
|
|
315
422
|
|
|
316
423
|
# Add API url to runtime config
|
|
@@ -260,6 +260,112 @@ resource "aws_api_gateway_authorizer" "cognito_authorizer" {
|
|
|
260
260
|
provider_arns = ["arn:aws:cognito-idp:${data.aws_region.current.region}:${data.aws_caller_identity.current.account_id}:userpool/${var.user_pool_id}"]
|
|
261
261
|
identity_source = "method.request.header.Authorization"
|
|
262
262
|
}
|
|
263
|
+
<%_ } else if (auth === 'Custom') { _%>
|
|
264
|
+
# Custom Lambda Authorizer
|
|
265
|
+
resource "aws_lambda_function" "authorizer_lambda" {
|
|
266
|
+
#checkov:skip=CKV_AWS_117:Lambda function does not need to be in VPC for this use case
|
|
267
|
+
#checkov:skip=CKV_AWS_116:Dead Letter Queue not required for authorizer
|
|
268
|
+
#checkov:skip=CKV_AWS_272:Code signing not required for this use case
|
|
269
|
+
#checkov:skip=CKV_AWS_115:Concurrent execution limit not required for this use case
|
|
270
|
+
#checkov:skip=CKV_AWS_173:Lambda environment variables encrypted by managed key
|
|
271
|
+
s3_bucket = aws_s3_object.authorizer_zip.bucket
|
|
272
|
+
s3_key = aws_s3_object.authorizer_zip.key
|
|
273
|
+
s3_object_version = aws_s3_object.authorizer_zip.version_id
|
|
274
|
+
function_name = "<%- apiNameClassName %>Authorizer-${random_string.suffix.result}"
|
|
275
|
+
role = aws_iam_role.authorizer_execution_role.arn
|
|
276
|
+
<%_ if (['trpc', 'smithy'].includes(backend.type)) { _%>
|
|
277
|
+
handler = "index.handler"
|
|
278
|
+
runtime = "nodejs22.x"
|
|
279
|
+
<%_ } else if (backend.type === 'fastapi') { _%>
|
|
280
|
+
handler = "<%- backend.moduleName %>.authorizer.handler"
|
|
281
|
+
runtime = "python3.14"
|
|
282
|
+
<%_ } _%>
|
|
283
|
+
timeout = 10
|
|
284
|
+
memory_size = 128
|
|
285
|
+
|
|
286
|
+
source_code_hash = data.archive_file.authorizer_zip.output_base64sha256
|
|
287
|
+
|
|
288
|
+
tracing_config {
|
|
289
|
+
mode = "Active"
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
tags = var.tags
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
resource "aws_iam_role" "authorizer_execution_role" {
|
|
296
|
+
name = "<%- apiNameClassName %>Authorizer-role-${random_string.suffix.result}"
|
|
297
|
+
|
|
298
|
+
assume_role_policy = jsonencode({
|
|
299
|
+
Version = "2012-10-17"
|
|
300
|
+
Statement = [
|
|
301
|
+
{
|
|
302
|
+
Action = "sts:AssumeRole"
|
|
303
|
+
Effect = "Allow"
|
|
304
|
+
Principal = {
|
|
305
|
+
Service = "lambda.amazonaws.com"
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
})
|
|
310
|
+
|
|
311
|
+
tags = var.tags
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
resource "aws_iam_role_policy_attachment" "authorizer_basic_execution" {
|
|
315
|
+
policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
|
|
316
|
+
role = aws_iam_role.authorizer_execution_role.name
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
resource "aws_iam_role_policy_attachment" "authorizer_xray_execution" {
|
|
320
|
+
policy_arn = "arn:aws:iam::aws:policy/AWSXRayDaemonWriteAccess"
|
|
321
|
+
role = aws_iam_role.authorizer_execution_role.name
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
resource "aws_cloudwatch_log_group" "authorizer_logs" {
|
|
325
|
+
#checkov:skip=CKV_AWS_158:Using default CloudWatch log encryption
|
|
326
|
+
#checkov:skip=CKV_AWS_338:Log retention set to forever
|
|
327
|
+
#checkov:skip=CKV_AWS_66:Log retention set to forever
|
|
328
|
+
name = "/aws/lambda/<%- apiNameClassName %>Authorizer-${random_string.suffix.result}"
|
|
329
|
+
tags = var.tags
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
<%_ if (['trpc', 'smithy'].includes(backend.type)) { _%>
|
|
333
|
+
data "archive_file" "authorizer_zip" {
|
|
334
|
+
type = "zip"
|
|
335
|
+
source_dir = "${path.module}/../../../../../../../<%- backend.authorizerBundleOutputDir %>"
|
|
336
|
+
output_path = "${path.module}/../../../../../../../dist/packages/common/terraform/apis/<%- apiNameKebabCase %>/authorizer.zip"
|
|
337
|
+
}
|
|
338
|
+
<%_ } else if (backend.type === 'fastapi') { _%>
|
|
339
|
+
data "archive_file" "authorizer_zip" {
|
|
340
|
+
type = "zip"
|
|
341
|
+
source_dir = "${path.module}/../../../../../../../<%- backend.bundleOutputDir %>"
|
|
342
|
+
output_path = "${path.module}/../../../../../../../dist/packages/common/terraform/apis/<%- apiNameKebabCase %>/authorizer.zip"
|
|
343
|
+
}
|
|
344
|
+
<%_ } _%>
|
|
345
|
+
|
|
346
|
+
resource "aws_s3_object" "authorizer_zip" {
|
|
347
|
+
bucket = var.asset_bucket_name
|
|
348
|
+
key = "apis/<%- apiNameKebabCase %>/authorizer-${data.archive_file.authorizer_zip.output_sha256}.zip"
|
|
349
|
+
source = data.archive_file.authorizer_zip.output_path
|
|
350
|
+
source_hash = data.archive_file.authorizer_zip.output_base64sha256
|
|
351
|
+
etag = data.archive_file.authorizer_zip.output_md5
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
resource "aws_api_gateway_authorizer" "custom_authorizer" {
|
|
355
|
+
name = "<%- apiNameClassName %>Authorizer-${random_string.suffix.result}"
|
|
356
|
+
rest_api_id = module.rest_api.api_id
|
|
357
|
+
type = "TOKEN"
|
|
358
|
+
authorizer_uri = aws_lambda_function.authorizer_lambda.invoke_arn
|
|
359
|
+
identity_source = "method.request.header.Authorization"
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
resource "aws_lambda_permission" "authorizer_invoke" {
|
|
363
|
+
statement_id = "AllowAPIGatewayInvokeAuthorizer"
|
|
364
|
+
action = "lambda:InvokeFunction"
|
|
365
|
+
function_name = aws_lambda_function.authorizer_lambda.function_name
|
|
366
|
+
principal = "apigateway.amazonaws.com"
|
|
367
|
+
source_arn = "${module.rest_api.api_execution_arn}/authorizers/${aws_api_gateway_authorizer.custom_authorizer.id}"
|
|
368
|
+
}
|
|
263
369
|
<%_ } _%>
|
|
264
370
|
|
|
265
371
|
# Create proxy resource (captures all paths)
|
|
@@ -307,17 +413,16 @@ resource "aws_api_gateway_method" "proxy_method" {
|
|
|
307
413
|
<%_ } else if (auth === 'Cognito') { _%>
|
|
308
414
|
authorization = "COGNITO_USER_POOLS"
|
|
309
415
|
authorizer_id = aws_api_gateway_authorizer.cognito_authorizer.id
|
|
310
|
-
<%_ } else if (auth === '
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
authorization = "NONE"
|
|
416
|
+
<%_ } else if (auth === 'Custom') { _%>
|
|
417
|
+
authorization = "CUSTOM"
|
|
418
|
+
authorizer_id = aws_api_gateway_authorizer.custom_authorizer.id
|
|
314
419
|
<%_ } _%>
|
|
315
420
|
|
|
316
421
|
request_parameters = {
|
|
317
422
|
"method.request.path.proxy" = true
|
|
318
423
|
}
|
|
319
424
|
|
|
320
|
-
depends_on = [<% if (auth === 'Cognito') { %>aws_api_gateway_authorizer.cognito_authorizer<% } %>]
|
|
425
|
+
depends_on = [<% if (auth === 'Cognito') { %>aws_api_gateway_authorizer.cognito_authorizer<% } else if (auth === 'Custom') { %>aws_api_gateway_authorizer.custom_authorizer<% } %>]
|
|
321
426
|
}
|
|
322
427
|
|
|
323
428
|
# OPTIONS method for CORS preflight
|
|
@@ -395,6 +500,9 @@ resource "aws_api_gateway_deployment" "api_deployment" {
|
|
|
395
500
|
aws_api_gateway_integration.options_integration,
|
|
396
501
|
aws_api_gateway_method_response.options_response,
|
|
397
502
|
aws_api_gateway_integration_response.options_integration_response,
|
|
503
|
+
<%_ if (auth === 'Custom') { _%>
|
|
504
|
+
aws_api_gateway_authorizer.custom_authorizer,
|
|
505
|
+
<%_ } _%>
|
|
398
506
|
]
|
|
399
507
|
}
|
|
400
508
|
|
|
@@ -443,7 +551,7 @@ resource "aws_api_gateway_rest_api_policy" "api_policy" {
|
|
|
443
551
|
}
|
|
444
552
|
<%_ } else { _%>
|
|
445
553
|
{
|
|
446
|
-
# Allow all callers to invoke the API in the resource policy<% if (auth === 'Cognito') { %>, since auth is handled by Cognito<% } %>
|
|
554
|
+
# Allow all callers to invoke the API in the resource policy<% if (auth === 'Cognito') { %>, since auth is handled by Cognito<% } else if (auth === 'Custom') { %>, since auth is handled by the Lambda Authorizer<% } %>
|
|
447
555
|
Effect = "Allow"
|
|
448
556
|
Principal = "*"
|
|
449
557
|
Action = "execute-api:Invoke"
|
package/src/utils/commands.d.ts
CHANGED
|
@@ -44,4 +44,4 @@ export declare const buildInstallCommand: (pm: string, pkg: string, dev: boolean
|
|
|
44
44
|
* The package manager is auto-detected by @aws/create-nx-workspace from the
|
|
45
45
|
* invoking command, so --pm is not needed.
|
|
46
46
|
*/
|
|
47
|
-
export declare const buildCreateNxWorkspaceCommand: (pm: string, workspace: string, iacProvider?: "CDK" | "Terraform") => string;
|
|
47
|
+
export declare const buildCreateNxWorkspaceCommand: (pm: string, workspace: string, iacProvider?: "CDK" | "Terraform", tag?: string) => string;
|
package/src/utils/commands.js
CHANGED
|
@@ -53,11 +53,12 @@ exports.buildInstallCommand = buildInstallCommand;
|
|
|
53
53
|
* The package manager is auto-detected by @aws/create-nx-workspace from the
|
|
54
54
|
* invoking command, so --pm is not needed.
|
|
55
55
|
*/
|
|
56
|
-
const buildCreateNxWorkspaceCommand = (pm, workspace, iacProvider) => {
|
|
56
|
+
const buildCreateNxWorkspaceCommand = (pm, workspace, iacProvider, tag) => {
|
|
57
57
|
const createPrefix = exports.PACKAGE_MANAGER_COMMANDS[pm]?.create ?? `${pm} create`;
|
|
58
|
+
const pkgName = tag ? `@aws/nx-workspace@${tag}` : '@aws/nx-workspace';
|
|
58
59
|
const parts = [
|
|
59
60
|
createPrefix,
|
|
60
|
-
|
|
61
|
+
pkgName,
|
|
61
62
|
// npm requires '--' to stop interpreting subsequent flags as npm config
|
|
62
63
|
...(pm === 'npm' ? ['--'] : []),
|
|
63
64
|
workspace,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../../packages/nx-plugin/src/utils/commands.ts"],"names":[],"mappings":";;;AAsBa,QAAA,wBAAwB,GAGjC;IACF,GAAG,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE;IAC1D,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE;IAC1D,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE;IAC1D,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE;CACxD,CAAC;AAEF;;GAEG;AACI,MAAM,8BAA8B,GAAG,CAAC,EAAU,EAAE,OAAe,EAAE,EAAE;IAC5E,MAAM,MAAM,GAAG,gCAAwB,CAAC,EAAE,CAAC,EAAE,IAAI,IAAI,EAAE,CAAC;IACxD,OAAO,GAAG,MAAM,IAAI,OAAO,EAAE,CAAC;AAChC,CAAC,CAAC;AAHW,QAAA,8BAA8B,kCAGzC;AAEF;;GAEG;AACI,MAAM,+BAA+B,GAAG,CAC7C,EAAU,EACV,OAAe,EACf,EAAE;IACF,MAAM,MAAM,GAAG,gCAAwB,CAAC,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC;IACvD,OAAO,GAAG,MAAM,IAAI,OAAO,EAAE,CAAC;AACh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