@onivoro/onix 20.0.55 → 20.3.1

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.
Files changed (156) hide show
  1. package/executors.json +19 -29
  2. package/package.json +1 -6
  3. package/src/executors/build-cli/executor.d.ts +3 -2
  4. package/src/executors/build-cli/executor.js +14 -11
  5. package/src/executors/build-cli/executor.js.map +1 -1
  6. package/src/executors/build-cli/schema.d.ts +3 -1
  7. package/src/executors/build-cli/schema.json +7 -2
  8. package/src/executors/db/executor.js +20 -0
  9. package/src/executors/db/executor.js.map +1 -0
  10. package/src/executors/db/schema.d.ts +6 -0
  11. package/src/executors/{typeorm → db}/schema.json +7 -3
  12. package/src/executors/deploy/executor.d.ts +4 -0
  13. package/src/executors/deploy/executor.js +33 -0
  14. package/src/executors/deploy/executor.js.map +1 -0
  15. package/src/executors/deploy/schema.d.ts +5 -0
  16. package/src/executors/deploy/schema.json +28 -0
  17. package/src/executors/docker/executor.d.ts +4 -0
  18. package/src/executors/docker/executor.js +24 -0
  19. package/src/executors/docker/executor.js.map +1 -0
  20. package/src/executors/{docker-run → docker}/schema.d.ts +1 -1
  21. package/src/executors/{docker-run → docker}/schema.json +4 -4
  22. package/src/executors/gen/executor.d.ts +4 -0
  23. package/src/executors/gen/executor.js +19 -0
  24. package/src/executors/gen/executor.js.map +1 -0
  25. package/src/executors/gen/schema.d.ts +3 -0
  26. package/src/executors/gen/schema.json +14 -0
  27. package/src/executors/local/executor.d.ts +3 -2
  28. package/src/executors/local/executor.js +20 -9
  29. package/src/executors/local/executor.js.map +1 -1
  30. package/src/executors/local/schema.d.ts +3 -2
  31. package/src/executors/local/schema.json +12 -5
  32. package/src/executors/playwright/executor.d.ts +3 -2
  33. package/src/executors/playwright/executor.js +15 -11
  34. package/src/executors/playwright/executor.js.map +1 -1
  35. package/src/executors/playwright/schema.d.ts +0 -1
  36. package/src/executors/playwright/schema.json +1 -5
  37. package/src/{inference → functions}/add-db-target.function.js.map +1 -1
  38. package/src/{inference → functions}/add-db-targets.function.js.map +1 -1
  39. package/src/{inference → functions}/add-docker-deploy-target.function.js.map +1 -1
  40. package/src/{inference → functions}/add-docker-deploy-targets.function.js.map +1 -1
  41. package/src/{inference → functions}/add-docker-target.function.js.map +1 -1
  42. package/src/{inference → functions}/add-docker-targets.function.js +1 -1
  43. package/src/{inference → functions}/add-docker-targets.function.js.map +1 -1
  44. package/src/{inference → functions}/add-gen-target.function.js.map +1 -1
  45. package/src/{inference → functions}/add-serve-target.function.js.map +1 -1
  46. package/src/{inference → functions}/add-serve-targets.function.js +1 -1
  47. package/src/{inference → functions}/add-serve-targets.function.js.map +1 -1
  48. package/src/{inference → functions}/build-onix-targets.function.js.map +1 -1
  49. package/src/functions/create-nodes-internal.function.d.ts +0 -0
  50. package/src/functions/create-nodes-internal.function.js +1 -0
  51. package/src/functions/create-nodes-internal.function.js.map +1 -0
  52. package/src/{inference → functions}/normalize-options.function.js.map +1 -1
  53. package/src/functions/push-image-to-ecr-wrapped.function.js +1 -2
  54. package/src/functions/push-image-to-ecr-wrapped.function.js.map +1 -1
  55. package/src/functions/push-image-to-ecr.function.d.ts +3 -2
  56. package/src/functions/push-image-to-ecr.function.js +18 -39
  57. package/src/functions/push-image-to-ecr.function.js.map +1 -1
  58. package/src/{inference → functions}/read-targets-cache.function.js.map +1 -1
  59. package/src/{inference → functions}/write-targets-to-cache.function.js.map +1 -1
  60. package/src/index.d.ts +7 -15
  61. package/src/index.js +7 -15
  62. package/src/index.js.map +1 -1
  63. package/src/plugins/plugin.js +4 -4
  64. package/src/executors/deploy-ecs/executor.js +0 -82
  65. package/src/executors/deploy-ecs/executor.js.map +0 -1
  66. package/src/executors/deploy-ecs/schema.d.ts +0 -9
  67. package/src/executors/deploy-ecs/schema.json +0 -32
  68. package/src/executors/deploy-lambda/executor.d.ts +0 -3
  69. package/src/executors/deploy-lambda/executor.js +0 -18
  70. package/src/executors/deploy-lambda/executor.js.map +0 -1
  71. package/src/executors/deploy-lambda/schema.d.ts +0 -3
  72. package/src/executors/deploy-lambda/schema.json +0 -57
  73. package/src/executors/docker-run/executor.d.ts +0 -3
  74. package/src/executors/docker-run/executor.js +0 -14
  75. package/src/executors/docker-run/executor.js.map +0 -1
  76. package/src/executors/openapi-gen/executor.d.ts +0 -3
  77. package/src/executors/openapi-gen/executor.js +0 -11
  78. package/src/executors/openapi-gen/executor.js.map +0 -1
  79. package/src/executors/openapi-gen/schema.d.ts +0 -5
  80. package/src/executors/openapi-gen/schema.json +0 -25
  81. package/src/executors/typeorm/executor.d.ts +0 -3
  82. package/src/executors/typeorm/executor.js +0 -15
  83. package/src/executors/typeorm/executor.js.map +0 -1
  84. package/src/executors/typeorm/schema.d.ts +0 -5
  85. package/src/executors/xray/executor.d.ts +0 -3
  86. package/src/executors/xray/executor.js +0 -21
  87. package/src/executors/xray/executor.js.map +0 -1
  88. package/src/executors/xray/schema.d.ts +0 -1
  89. package/src/executors/xray/schema.json +0 -9
  90. package/src/functions/deploy-lambda.function.d.ts +0 -17
  91. package/src/functions/deploy-lambda.function.js +0 -74
  92. package/src/functions/deploy-lambda.function.js.map +0 -1
  93. package/src/functions/executor-factory.function.d.ts +0 -5
  94. package/src/functions/executor-factory.function.js +0 -20
  95. package/src/functions/executor-factory.function.js.map +0 -1
  96. package/src/functions/extract-project-build-assets.function.d.ts +0 -2
  97. package/src/functions/extract-project-build-assets.function.js +0 -19
  98. package/src/functions/extract-project-build-assets.function.js.map +0 -1
  99. package/src/functions/extract-project-build-outputs.function.d.ts +0 -2
  100. package/src/functions/extract-project-build-outputs.function.js +0 -21
  101. package/src/functions/extract-project-build-outputs.function.js.map +0 -1
  102. package/src/functions/extract-project-configuration.function.d.ts +0 -2
  103. package/src/functions/extract-project-configuration.function.js +0 -14
  104. package/src/functions/extract-project-configuration.function.js.map +0 -1
  105. package/src/functions/extract-target-configuration.function.d.ts +0 -2
  106. package/src/functions/extract-target-configuration.function.js +0 -8
  107. package/src/functions/extract-target-configuration.function.js.map +0 -1
  108. package/src/functions/interpolate.function.d.ts +0 -2
  109. package/src/functions/interpolate.function.js +0 -8
  110. package/src/functions/interpolate.function.js.map +0 -1
  111. package/src/functions/load-env-file.function.d.ts +0 -1
  112. package/src/functions/load-env-file.function.js +0 -17
  113. package/src/functions/load-env-file.function.js.map +0 -1
  114. package/src/functions/pm.function.d.ts +0 -2
  115. package/src/functions/pm.function.js +0 -20
  116. package/src/functions/pm.function.js.map +0 -1
  117. package/src/functions/pmx.function.d.ts +0 -3
  118. package/src/functions/pmx.function.js +0 -21
  119. package/src/functions/pmx.function.js.map +0 -1
  120. package/src/functions/resolve-aws-credentials.function.d.ts +0 -1
  121. package/src/functions/resolve-aws-credentials.function.js +0 -15
  122. package/src/functions/resolve-aws-credentials.function.js.map +0 -1
  123. package/src/functions/restart-ecs-service.function.d.ts +0 -6
  124. package/src/functions/restart-ecs-service.function.js +0 -34
  125. package/src/functions/restart-ecs-service.function.js.map +0 -1
  126. package/src/webpack/patch-nx-source-map-paths.function.d.ts +0 -9
  127. package/src/webpack/patch-nx-source-map-paths.function.js +0 -13
  128. package/src/webpack/patch-nx-source-map-paths.function.js.map +0 -1
  129. package/src/webpack/patch-nx-source-maps.plugin.d.ts +0 -2
  130. package/src/webpack/patch-nx-source-maps.plugin.js +0 -11
  131. package/src/webpack/patch-nx-source-maps.plugin.js.map +0 -1
  132. /package/src/executors/{deploy-ecs → db}/executor.d.ts +0 -0
  133. /package/src/{inference → functions}/add-db-target.function.d.ts +0 -0
  134. /package/src/{inference → functions}/add-db-target.function.js +0 -0
  135. /package/src/{inference → functions}/add-db-targets.function.d.ts +0 -0
  136. /package/src/{inference → functions}/add-db-targets.function.js +0 -0
  137. /package/src/{inference → functions}/add-docker-deploy-target.function.d.ts +0 -0
  138. /package/src/{inference → functions}/add-docker-deploy-target.function.js +0 -0
  139. /package/src/{inference → functions}/add-docker-deploy-targets.function.d.ts +0 -0
  140. /package/src/{inference → functions}/add-docker-deploy-targets.function.js +0 -0
  141. /package/src/{inference → functions}/add-docker-target.function.d.ts +0 -0
  142. /package/src/{inference → functions}/add-docker-target.function.js +0 -0
  143. /package/src/{inference → functions}/add-docker-targets.function.d.ts +0 -0
  144. /package/src/{inference → functions}/add-gen-target.function.d.ts +0 -0
  145. /package/src/{inference → functions}/add-gen-target.function.js +0 -0
  146. /package/src/{inference → functions}/add-serve-target.function.d.ts +0 -0
  147. /package/src/{inference → functions}/add-serve-target.function.js +0 -0
  148. /package/src/{inference → functions}/add-serve-targets.function.d.ts +0 -0
  149. /package/src/{inference → functions}/build-onix-targets.function.d.ts +0 -0
  150. /package/src/{inference → functions}/build-onix-targets.function.js +0 -0
  151. /package/src/{inference → functions}/normalize-options.function.d.ts +0 -0
  152. /package/src/{inference → functions}/normalize-options.function.js +0 -0
  153. /package/src/{inference → functions}/read-targets-cache.function.d.ts +0 -0
  154. /package/src/{inference → functions}/read-targets-cache.function.js +0 -0
  155. /package/src/{inference → functions}/write-targets-to-cache.function.d.ts +0 -0
  156. /package/src/{inference → functions}/write-targets-to-cache.function.js +0 -0
@@ -1,25 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/schema",
3
- "version": 2,
4
- "title": "Openapi-gen executor",
5
- "description": "",
6
- "type": "object",
7
- "properties": {
8
- "flavor": {
9
- "type": "string",
10
- "description": "Lowercase identifier corresponding to one of the predefined openapi generator target formats. Defaults to 'typescript-axios'."
11
- },
12
- "openapiJsonPath": {
13
- "type": "string",
14
- "description": "Path to the openapi definition JSON file (or yml file)."
15
- },
16
- "outputPath": {
17
- "type": "string",
18
- "description": "Path where the output of the openapi will be written."
19
- }
20
- },
21
- "required": [
22
- "openapiJsonPath",
23
- "outputPath"
24
- ]
25
- }
@@ -1,3 +0,0 @@
1
- import { ExecutorSchema } from './schema';
2
- declare const _default: import("@nx/devkit").PromiseExecutor<ExecutorSchema>;
3
- export default _default;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const devkit_1 = require("@nx/devkit");
5
- const child_process_1 = require("child_process");
6
- const load_env_file_function_1 = require("../../functions/load-env-file.function");
7
- const executor_factory_function_1 = require("../../functions/executor-factory.function");
8
- const pm_function_1 = require("../../functions/pm.function");
9
- exports.default = (0, executor_factory_function_1.executorFactory)((options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
10
- const { envFile, ormConfigPath, runOrRevert } = options;
11
- (0, load_env_file_function_1.loadEnvFile)(envFile);
12
- devkit_1.logger.info(`PACKAGE.JSON SHOULD HAVE A SCRIPT NAMED "typeorm" IN ORDER TO USE THIS EXECUTOR`);
13
- (0, child_process_1.execSync)(`${(0, pm_function_1.pm)(context).exec} run typeorm -- -d ${ormConfigPath} migration:${runOrRevert} -t=false`, { stdio: 'inherit' });
14
- }));
15
- //# sourceMappingURL=executor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/typeorm/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAqD;AAErD,iDAAyC;AACzC,mFAAqE;AACrE,yFAA4E;AAC5E,6DAAiD;AAEjD,kBAAe,IAAA,2CAAe,EAAC,CAC7B,OAAuB,EACvB,OAAwB,EACxB,EAAE;IACF,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;IAExD,IAAA,oCAAW,EAAC,OAAO,CAAC,CAAC;IAErB,eAAM,CAAC,IAAI,CAAC,iFAAiF,CAAC,CAAA;IAE9F,IAAA,wBAAQ,EAAC,GAAG,IAAA,gBAAE,EAAC,OAAO,CAAC,CAAC,IAAI,sBAAsB,aAAa,cAAc,WAAW,WAAW,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;AAC7H,CAAC,CAAA,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- export interface ExecutorSchema {
2
- envFile: string;
3
- ormConfigPath: string;
4
- runOrRevert: 'run' | 'revert';
5
- }
@@ -1,3 +0,0 @@
1
- import { ExecutorSchema } from './schema';
2
- declare const _default: import("@nx/devkit").PromiseExecutor<ExecutorSchema>;
3
- export default _default;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const devkit_1 = require("@nx/devkit");
5
- const promises_1 = require("fs/promises");
6
- const executor_factory_function_1 = require("../../functions/executor-factory.function");
7
- exports.default = (0, executor_factory_function_1.executorFactory)((options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
8
- const wl = (0, devkit_1.workspaceLayout)();
9
- const to = (0, devkit_1.readTargetOptions)({ project: context.projectName, target: context.targetName }, context);
10
- const packageManager = (0, devkit_1.detectPackageManager)(context.root);
11
- const packageManagerCommand = (0, devkit_1.getPackageManagerCommand)(packageManager);
12
- yield (0, promises_1.writeFile)(`xray-${Date.now()}.json`, JSON.stringify({
13
- packageManager,
14
- packageManagerCommand,
15
- options,
16
- context,
17
- workspaceLayout: wl,
18
- targetOptions: to,
19
- }, null, 2));
20
- }));
21
- //# sourceMappingURL=executor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/xray/executor.ts"],"names":[],"mappings":";;;AAAA,uCAOoB;AAEpB,0CAAwC;AACxC,yFAA4E;AAE5E,kBAAe,IAAA,2CAAe,EAAC,CAC7B,OAAuB,EACvB,OAAwB,EACxB,EAAE;IACF,MAAM,EAAE,GAAG,IAAA,wBAAe,GAAE,CAAC;IAC7B,MAAM,EAAE,GAAG,IAAA,0BAAiB,EAAC,EAAE,OAAO,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACpG,MAAM,cAAc,GAAG,IAAA,6BAAoB,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1D,MAAM,qBAAqB,GAAG,IAAA,iCAAwB,EAAC,cAAc,CAAC,CAAC;IAEvE,MAAM,IAAA,oBAAS,EAAC,QAAQ,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;QACxD,cAAc;QACd,qBAAqB;QACrB,OAAO;QACP,OAAO;QACP,eAAe,EAAE,EAAE;QACnB,aAAa,EAAE,EAAE;KAClB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACf,CAAC,CAAA,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- export interface ExecutorSchema {}
@@ -1,9 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/schema",
3
- "version": 2,
4
- "title": "Xray executor",
5
- "description": "",
6
- "type": "object",
7
- "properties": {},
8
- "required": []
9
- }
@@ -1,17 +0,0 @@
1
- import { Runtime } from "@aws-sdk/client-lambda";
2
- export interface DeployLambdaConfig {
3
- bucket: string;
4
- functionName: string;
5
- profile?: string;
6
- region: string;
7
- sourcePath: string;
8
- roleArn: string;
9
- runtime?: Runtime;
10
- handler?: string;
11
- memorySize?: number;
12
- delayMs?: number;
13
- environment?: {
14
- [key: string]: string;
15
- };
16
- }
17
- export declare function deployLambda({ functionName, sourcePath, region, bucket, roleArn, runtime, handler, memorySize, environment, delayMs, profile, }: DeployLambdaConfig): Promise<void>;
@@ -1,74 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deployLambda = deployLambda;
4
- const tslib_1 = require("tslib");
5
- const client_s3_1 = require("@aws-sdk/client-s3");
6
- const client_lambda_1 = require("@aws-sdk/client-lambda");
7
- const AdmZip = require("adm-zip");
8
- const resolve_aws_credentials_function_1 = require("./resolve-aws-credentials.function");
9
- function deployLambda(_a) {
10
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ functionName, sourcePath, region, bucket, roleArn, runtime = client_lambda_1.Runtime.nodejs22x, handler = 'index.handler', memorySize = 128, environment, delayMs = 5000, profile, }) {
11
- const s3Client = new client_s3_1.S3Client({ region, credentials: (0, resolve_aws_credentials_function_1.resolveAwsCredentials)(profile) });
12
- const lambdaClient = new client_lambda_1.LambdaClient({ region, credentials: (0, resolve_aws_credentials_function_1.resolveAwsCredentials)(profile) });
13
- const zip = new AdmZip();
14
- zip.addLocalFolder(sourcePath);
15
- const zipBuffer = zip.toBuffer();
16
- const key = `${functionName}.zip`;
17
- yield s3Client.send(new client_s3_1.PutObjectCommand({
18
- Bucket: bucket,
19
- Key: key,
20
- Body: zipBuffer
21
- }));
22
- const envVars = environment ? {
23
- Variables: environment
24
- } : undefined;
25
- let functionExists = true;
26
- let currentConfig;
27
- try {
28
- const response = yield lambdaClient.send(new client_lambda_1.GetFunctionCommand({
29
- FunctionName: functionName
30
- }));
31
- currentConfig = response.Configuration;
32
- }
33
- catch (error) {
34
- if (error.name === 'ResourceNotFoundException') {
35
- functionExists = false;
36
- }
37
- else {
38
- throw error;
39
- }
40
- }
41
- if (!functionExists) {
42
- yield lambdaClient.send(new client_lambda_1.CreateFunctionCommand({
43
- FunctionName: functionName,
44
- Runtime: runtime,
45
- Role: roleArn,
46
- Handler: handler,
47
- Code: {
48
- S3Bucket: bucket,
49
- S3Key: key
50
- },
51
- MemorySize: memorySize,
52
- Environment: envVars
53
- }));
54
- }
55
- else {
56
- let updatedEnvVars = envVars;
57
- yield lambdaClient.send(new client_lambda_1.UpdateFunctionConfigurationCommand({
58
- FunctionName: functionName,
59
- Role: roleArn,
60
- Handler: handler,
61
- Runtime: runtime,
62
- MemorySize: memorySize,
63
- Environment: updatedEnvVars,
64
- }));
65
- yield new Promise(resolve => setTimeout(resolve, delayMs));
66
- yield lambdaClient.send(new client_lambda_1.UpdateFunctionCodeCommand({
67
- FunctionName: functionName,
68
- S3Bucket: bucket,
69
- S3Key: key
70
- }));
71
- }
72
- });
73
- }
74
- //# sourceMappingURL=deploy-lambda.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deploy-lambda.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/deploy-lambda.function.ts"],"names":[],"mappings":"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"}
@@ -1,5 +0,0 @@
1
- import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
2
- export type TOnixPromiseExecutor<TExecutorSchema = any> = (options: TExecutorSchema, context: ExecutorContext) => Promise<void | {
3
- success: boolean;
4
- }>;
5
- export declare function executorFactory<TExecutorSchema>(executor: TOnixPromiseExecutor<TExecutorSchema>): PromiseExecutor<TExecutorSchema>;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.executorFactory = executorFactory;
4
- const tslib_1 = require("tslib");
5
- const devkit_1 = require("@nx/devkit");
6
- function executorFactory(executor) {
7
- const runExecutor = (options, context) => tslib_1.__awaiter(this, void 0, void 0, function* () {
8
- try {
9
- return (yield executor(options, context)) || { success: true };
10
- }
11
- catch (error) {
12
- devkit_1.logger.error((error === null || error === void 0 ? void 0 : error.message) || error);
13
- return {
14
- success: false,
15
- };
16
- }
17
- });
18
- return runExecutor;
19
- }
20
- //# sourceMappingURL=executor-factory.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"executor-factory.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/executor-factory.function.ts"],"names":[],"mappings":";;AAOA,0CAkBC;;AAzBD,uCAAsE;AAOtE,SAAgB,eAAe,CAAkB,QAA+C;IAE5F,MAAM,WAAW,GAAqC,CAClD,OAAwB,EACxB,OAAwB,EAC1B,EAAE;QACA,IAAI,CAAC;YACD,OAAO,CAAC,MAAM,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;QACnE,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,eAAM,CAAC,KAAK,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,KAAI,KAAK,CAAC,CAAC;YAEtC,OAAO;gBACH,OAAO,EAAE,KAAK;aACjB,CAAC;QACN,CAAC;IACL,CAAC,CAAA,CAAA;IAED,OAAO,WAAW,CAAC;AACvB,CAAC"}
@@ -1,2 +0,0 @@
1
- import { ExecutorContext } from "@nx/devkit";
2
- export declare function extractProjectBuildAssets(context: ExecutorContext, projectName: string): string[];
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.extractProjectBuildAssets = extractProjectBuildAssets;
4
- const devkit_1 = require("@nx/devkit");
5
- const extract_project_configuration_function_1 = require("./extract-project-configuration.function");
6
- function extractProjectBuildAssets(context, projectName) {
7
- var _a, _b;
8
- const projectConfiguration = (0, extract_project_configuration_function_1.extractProjectConfiguration)(context, projectName);
9
- if (projectConfiguration) {
10
- if ((_a = projectConfiguration.targets) === null || _a === void 0 ? void 0 : _a.build) {
11
- return ((_b = projectConfiguration.targets.build.options) === null || _b === void 0 ? void 0 : _b.assets) || [];
12
- }
13
- else {
14
- devkit_1.logger.warn(`project "${projectName}" does not have a "build" target`);
15
- }
16
- }
17
- return [];
18
- }
19
- //# sourceMappingURL=extract-project-build-assets.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extract-project-build-assets.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/extract-project-build-assets.function.ts"],"names":[],"mappings":";;AAGA,8DAYC;AAfD,uCAAqD;AACrD,qGAAuF;AAEvF,SAAgB,yBAAyB,CAAE,OAAwB,EAAE,WAAmB;;IACpF,MAAM,oBAAoB,GAAG,IAAA,oEAA2B,EAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAE/E,IAAI,oBAAoB,EAAE,CAAC;QACvB,IAAG,MAAA,oBAAoB,CAAC,OAAO,0CAAE,KAAK,EAAE,CAAC;YACrC,OAAO,CAAA,MAAA,oBAAoB,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,0CAAE,MAAM,KAAI,EAAE,CAAC;QACpE,CAAC;aAAM,CAAC;YACJ,eAAM,CAAC,IAAI,CAAC,YAAY,WAAW,kCAAkC,CAAC,CAAA;QAC1E,CAAC;IACL,CAAC;IAED,OAAO,EAAE,CAAC;AACd,CAAC"}
@@ -1,2 +0,0 @@
1
- import { ExecutorContext } from "@nx/devkit";
2
- export declare function extractProjectBuildOutputs(context: ExecutorContext, projectName: string): string[];
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.extractProjectBuildOutputs = extractProjectBuildOutputs;
4
- const devkit_1 = require("@nx/devkit");
5
- const extract_project_configuration_function_1 = require("./extract-project-configuration.function");
6
- const interpolate_function_1 = require("./interpolate.function");
7
- function extractProjectBuildOutputs(context, projectName) {
8
- var _a, _b;
9
- const projectConfiguration = (0, extract_project_configuration_function_1.extractProjectConfiguration)(context, projectName);
10
- if (projectConfiguration) {
11
- if ((_a = projectConfiguration === null || projectConfiguration === void 0 ? void 0 : projectConfiguration.targets) === null || _a === void 0 ? void 0 : _a.build) {
12
- const output = ((_b = projectConfiguration.targets.build.options) === null || _b === void 0 ? void 0 : _b.outputPath) || projectConfiguration.targets.build.outputs || [];
13
- return (output instanceof Array ? output : [output]).map((_) => (0, interpolate_function_1.interpolate)(context, _));
14
- }
15
- else {
16
- devkit_1.logger.warn(`project "${projectName}" does not have a "build" target`);
17
- }
18
- }
19
- return [];
20
- }
21
- //# sourceMappingURL=extract-project-build-outputs.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extract-project-build-outputs.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/extract-project-build-outputs.function.ts"],"names":[],"mappings":";;AAIA,gEAcC;AAlBD,uCAAqD;AACrD,qGAAuF;AACvF,iEAAqD;AAErD,SAAgB,0BAA0B,CAAC,OAAwB,EAAE,WAAmB;;IACpF,MAAM,oBAAoB,GAAG,IAAA,oEAA2B,EAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAE/E,IAAI,oBAAoB,EAAE,CAAC;QACvB,IAAI,MAAA,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,OAAO,0CAAE,KAAK,EAAE,CAAC;YACvC,MAAM,MAAM,GAAG,CAAA,MAAA,oBAAoB,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,0CAAE,UAAU,KAAI,oBAAoB,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC;YAE1H,OAAO,CAAC,MAAM,YAAY,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,IAAA,kCAAW,EAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;QACrG,CAAC;aAAM,CAAC;YACJ,eAAM,CAAC,IAAI,CAAC,YAAY,WAAW,kCAAkC,CAAC,CAAA;QAC1E,CAAC;IACL,CAAC;IAED,OAAO,EAAE,CAAC;AACd,CAAC"}
@@ -1,2 +0,0 @@
1
- import { ExecutorContext } from "@nx/devkit";
2
- export declare function extractProjectConfiguration(context: ExecutorContext, projectName: string): import("@nx/devkit").ProjectConfiguration;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.extractProjectConfiguration = extractProjectConfiguration;
4
- const devkit_1 = require("@nx/devkit");
5
- function extractProjectConfiguration(context, projectName) {
6
- const projectConfiguration = context.projectsConfigurations.projects[projectName];
7
- if (projectConfiguration) {
8
- return projectConfiguration;
9
- }
10
- else {
11
- devkit_1.logger.warn(`cannot locate project configuration for specified projectName "${projectName}" among ${Object.keys(context.projectsConfigurations.projects).map(_ => `"${_}"`).join(', ')}`);
12
- }
13
- }
14
- //# sourceMappingURL=extract-project-configuration.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extract-project-configuration.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/extract-project-configuration.function.ts"],"names":[],"mappings":";;AAEA,kEAQC;AAVD,uCAAqD;AAErD,SAAgB,2BAA2B,CAAC,OAAwB,EAAE,WAAmB;IACrF,MAAM,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IAElF,IAAI,oBAAoB,EAAE,CAAC;QACvB,OAAO,oBAAoB,CAAC;IAChC,CAAC;SAAM,CAAC;QACJ,eAAM,CAAC,IAAI,CAAC,kEAAkE,WAAW,WAAW,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC9L,CAAC;AACL,CAAC"}
@@ -1,2 +0,0 @@
1
- import { ExecutorContext } from "@nx/devkit";
2
- export declare function extractTargetConfiguration(context: ExecutorContext): any;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.extractTargetConfiguration = extractTargetConfiguration;
4
- function extractTargetConfiguration(context) {
5
- var _a;
6
- return (((_a = context === null || context === void 0 ? void 0 : context.target) === null || _a === void 0 ? void 0 : _a.configurations) || {})[(context === null || context === void 0 ? void 0 : context.configurationName) || 'N/A'];
7
- }
8
- //# sourceMappingURL=extract-target-configuration.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extract-target-configuration.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/extract-target-configuration.function.ts"],"names":[],"mappings":";;AAEA,gEAIC;AAJD,SAAgB,0BAA0B,CACtC,OAAwB;;IAExB,OAAO,CAAC,CAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,0CAAE,cAAc,KAAI,EAAE,CAAC,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,KAAI,KAAK,CAAC,CAAC;AACxF,CAAC"}
@@ -1,2 +0,0 @@
1
- import { ExecutorContext } from "@nx/devkit";
2
- export declare function interpolate(context: ExecutorContext, expression: string): string;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.interpolate = interpolate;
4
- function interpolate(context, expression) {
5
- const replacements = { workspaceRoot: context.root };
6
- return Object.entries(replacements).reduce((_, [find, replace]) => _.replace('{' + find + '}', replace), expression || '');
7
- }
8
- //# sourceMappingURL=interpolate.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interpolate.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/interpolate.function.ts"],"names":[],"mappings":";;AAEA,kCAIC;AAJD,SAAgB,WAAW,CAAE,OAAwB,EAAE,UAAkB;IACrE,MAAM,YAAY,GAAG,EAAC,aAAa,EAAE,OAAO,CAAC,IAAI,EAAC,CAAC;IAEnD,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,GAAG,IAAI,GAAG,GAAG,EAAE,OAAO,CAAC,EAAE,UAAU,IAAI,EAAE,CAAC,CAAC;AAC/H,CAAC"}
@@ -1 +0,0 @@
1
- export declare function loadEnvFile(envFile?: string | undefined): void;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.loadEnvFile = loadEnvFile;
4
- const devkit_1 = require("@nx/devkit");
5
- const fs_1 = require("fs");
6
- const process_1 = require("process");
7
- function loadEnvFile(envFile) {
8
- if (envFile) {
9
- if ((0, fs_1.existsSync)(envFile)) {
10
- (0, process_1.loadEnvFile)(envFile);
11
- }
12
- else {
13
- devkit_1.logger.warn(`specified environment path "${envFile}" does not exist`);
14
- }
15
- }
16
- }
17
- //# sourceMappingURL=load-env-file.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"load-env-file.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/load-env-file.function.ts"],"names":[],"mappings":";;AAIA,kCAQC;AAZD,uCAAoC;AACpC,2BAAgC;AAChC,qCAAyD;AAEzD,SAAgB,WAAW,CAAC,OAA4B;IACpD,IAAI,OAAO,EAAE,CAAC;QACV,IAAG,IAAA,eAAU,EAAC,OAAO,CAAC,EAAE,CAAC;YACrB,IAAA,qBAAe,EAAC,OAAO,CAAC,CAAC;QAC7B,CAAC;aAAM,CAAC;YACJ,eAAM,CAAC,IAAI,CAAC,+BAA+B,OAAO,kBAAkB,CAAC,CAAC;QAC1E,CAAC;IACL,CAAC;AACL,CAAC"}
@@ -1,2 +0,0 @@
1
- import { ExecutorContext } from '@nx/devkit';
2
- export declare function pm(context: ExecutorContext): import("nx/src/utils/package-manager").PackageManagerCommands;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.pm = pm;
4
- const devkit_1 = require("@nx/devkit");
5
- function pm(context) {
6
- const packageManager = (0, devkit_1.detectPackageManager)(context.root);
7
- return (0, devkit_1.getPackageManagerCommand)(packageManager);
8
- }
9
- // {
10
- // "install": "bun install",
11
- // "ciInstall": "bun install --no-cache",
12
- // "updateLockFile": "bun install --frozen-lockfile",
13
- // "add": "bun install",
14
- // "addDev": "bun install -D",
15
- // "rm": "bun rm",
16
- // "exec": "bun",
17
- // "dlx": "bunx",
18
- // "list": "bun pm ls"
19
- // },
20
- //# sourceMappingURL=pm.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pm.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/pm.function.ts"],"names":[],"mappings":";;AAMA,gBAGC;AATD,uCAIoB;AAEpB,SAAgB,EAAE,CAAC,OAAwB;IACvC,MAAM,cAAc,GAAG,IAAA,6BAAoB,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1D,OAAO,IAAA,iCAAwB,EAAC,cAAc,CAAC,CAAC;AACpD,CAAC;AAED,IAAI;AACJ,8BAA8B;AAC9B,2CAA2C;AAC3C,uDAAuD;AACvD,0BAA0B;AAC1B,gCAAgC;AAChC,oBAAoB;AACpB,mBAAmB;AACnB,mBAAmB;AACnB,wBAAwB;AACxB,KAAK"}
@@ -1,3 +0,0 @@
1
- import { ExecutorContext } from '@nx/devkit';
2
- export declare function pmxSpawn(context: ExecutorContext, command: string): void;
3
- export declare function pmxExec(context: ExecutorContext, command: string): void;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.pmxSpawn = pmxSpawn;
4
- exports.pmxExec = pmxExec;
5
- const devkit_1 = require("@nx/devkit");
6
- const child_process_1 = require("child_process");
7
- const pm_function_1 = require("./pm.function");
8
- function pmxSpawn(context, command) {
9
- const { dlx } = (0, pm_function_1.pm)(context);
10
- const completeCommand = `${dlx} ${command}`;
11
- devkit_1.logger.info(completeCommand);
12
- const [program, ...args] = completeCommand.split(' ');
13
- (0, child_process_1.spawnSync)(program, args, { stdio: 'inherit' });
14
- }
15
- function pmxExec(context, command) {
16
- const { dlx } = (0, pm_function_1.pm)(context);
17
- const completeCommand = `${dlx} ${command}`;
18
- devkit_1.logger.info(completeCommand);
19
- (0, child_process_1.execSync)(completeCommand, { stdio: 'inherit' });
20
- }
21
- //# sourceMappingURL=pmx.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pmx.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/pmx.function.ts"],"names":[],"mappings":";;AAOA,4BAUC;AAED,0BAQC;AA3BD,uCAGoB;AACpB,iDAAoD;AACpD,+CAAmC;AAEnC,SAAgB,QAAQ,CAAC,OAAwB,EAAE,OAAe;IAC9D,MAAM,EAAE,GAAG,EAAE,GAAG,IAAA,gBAAE,EAAC,OAAO,CAAC,CAAC;IAE5B,MAAM,eAAe,GAAG,GAAG,GAAG,IAAI,OAAO,EAAE,CAAC;IAE5C,eAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAE7B,MAAM,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAEtD,IAAA,yBAAS,EAAC,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,OAAO,CAAC,OAAwB,EAAE,OAAe;IAC7D,MAAM,EAAE,GAAG,EAAE,GAAG,IAAA,gBAAE,EAAC,OAAO,CAAC,CAAC;IAE5B,MAAM,eAAe,GAAG,GAAG,GAAG,IAAI,OAAO,EAAE,CAAC;IAE5C,eAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAE7B,IAAA,wBAAQ,EAAC,eAAe,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;AACpD,CAAC"}
@@ -1 +0,0 @@
1
- export declare function resolveAwsCredentials(profile?: string | undefined): import("@aws-sdk/types").RuntimeConfigAwsCredentialIdentityProvider;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveAwsCredentials = resolveAwsCredentials;
4
- const credential_providers_1 = require("@aws-sdk/credential-providers");
5
- const AWS_ACCESS_KEY_ID = 'AWS_ACCESS_KEY_ID';
6
- const AWS_SECRET_ACCESS_KEY = 'AWS_SECRET_ACCESS_KEY';
7
- function resolveAwsCredentials(profile) {
8
- if ((process.env[AWS_ACCESS_KEY_ID] && process.env[AWS_SECRET_ACCESS_KEY])
9
- ||
10
- (process.env[AWS_ACCESS_KEY_ID.toLowerCase()] && process.env[AWS_SECRET_ACCESS_KEY.toLowerCase()])) {
11
- return undefined;
12
- }
13
- return profile ? (0, credential_providers_1.fromIni)({ profile }) : undefined;
14
- }
15
- //# sourceMappingURL=resolve-aws-credentials.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve-aws-credentials.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/resolve-aws-credentials.function.ts"],"names":[],"mappings":";;AAKA,sDAUC;AAfD,wEAAwD;AAExD,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAC9C,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAEtD,SAAgB,qBAAqB,CAAC,OAA4B;IAC9D,IACI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;;YAEtE,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,WAAW,EAAE,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,WAAW,EAAE,CAAC,CAAC,EACpG,CAAC;QACC,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,OAAO,OAAO,CAAC,CAAC,CAAC,IAAA,8BAAO,EAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACtD,CAAC"}
@@ -1,6 +0,0 @@
1
- export declare function updateEcsService(_: {
2
- profile: string;
3
- cluster: string;
4
- service: string;
5
- region: string;
6
- }): Promise<import("@aws-sdk/client-ecs").UpdateServiceCommandOutput>;
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateEcsService = updateEcsService;
4
- const tslib_1 = require("tslib");
5
- const client_ecs_1 = require("@aws-sdk/client-ecs");
6
- const devkit_1 = require("@nx/devkit");
7
- const resolve_aws_credentials_function_1 = require("./resolve-aws-credentials.function");
8
- function updateEcsService(_) {
9
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
10
- var _a;
11
- const { profile, cluster, service, region } = _;
12
- try {
13
- const client = new client_ecs_1.ECSClient({
14
- region,
15
- credentials: (0, resolve_aws_credentials_function_1.resolveAwsCredentials)(profile)
16
- });
17
- const response = yield client.send(new client_ecs_1.UpdateServiceCommand({
18
- cluster,
19
- service,
20
- forceNewDeployment: true
21
- }));
22
- devkit_1.logger.info("Service update initiated successfully");
23
- if ((_a = response.service) === null || _a === void 0 ? void 0 : _a.serviceArn) {
24
- devkit_1.logger.info(`Service ARN: "${response.service.serviceArn}"`);
25
- }
26
- return response;
27
- }
28
- catch (error) {
29
- devkit_1.logger.error(`Error updating ECS service: ${(error === null || error === void 0 ? void 0 : error.message) || error}`);
30
- throw error;
31
- }
32
- });
33
- }
34
- //# sourceMappingURL=restart-ecs-service.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"restart-ecs-service.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/restart-ecs-service.function.ts"],"names":[],"mappings":";;AAIA,4CA2BC;;AA/BD,oDAAsE;AACtE,uCAAoC;AACpC,yFAA2E;AAE3E,SAAsB,gBAAgB,CAAC,CAAwE;;;QAC3G,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;QAEhD,IAAI,CAAC;YACD,MAAM,MAAM,GAAG,IAAI,sBAAS,CAAC;gBACzB,MAAM;gBACN,WAAW,EAAE,IAAA,wDAAqB,EAAC,OAAO,CAAC;aAC9C,CAAC,CAAC;YAEH,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,IAAI,iCAAoB,CAAC;gBACxD,OAAO;gBACP,OAAO;gBACP,kBAAkB,EAAE,IAAI;aAC3B,CAAC,CAAC,CAAC;YAEJ,eAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC,CAAC;YAErD,IAAI,MAAA,QAAQ,CAAC,OAAO,0CAAE,UAAU,EAAE,CAAC;gBAC/B,eAAM,CAAC,IAAI,CAAC,iBAAiB,QAAQ,CAAC,OAAO,CAAC,UAAU,GAAG,CAAC,CAAC;YACjE,CAAC;YAED,OAAO,QAAQ,CAAC;QACpB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,eAAM,CAAC,KAAK,CAAC,+BAA+B,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,KAAI,KAAK,EAAE,CAAC,CAAC;YAEvE,MAAM,KAAK,CAAC;QAChB,CAAC;IACL,CAAC;CAAA"}
@@ -1,9 +0,0 @@
1
- export type TFilenameTemplater = (info: {
2
- absoluteResourcePath: string;
3
- }) => string;
4
- export type TWebpackConfig = {
5
- output: {
6
- devtoolModuleFilenameTemplate: TFilenameTemplater;
7
- };
8
- };
9
- export declare function patchNxSourceMapPaths(config: TWebpackConfig): TWebpackConfig;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.patchNxSourceMapPaths = patchNxSourceMapPaths;
4
- const node_path_1 = require("node:path");
5
- function patchNxSourceMapPaths(config) {
6
- config.output.devtoolModuleFilenameTemplate = function (info) {
7
- const rel = (0, node_path_1.relative)(process.cwd(), info.absoluteResourcePath);
8
- return `webpack:///./${rel}`;
9
- };
10
- return config;
11
- }
12
- ;
13
- //# sourceMappingURL=patch-nx-source-map-paths.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"patch-nx-source-map-paths.function.js","sourceRoot":"","sources":["../../../../onix/src/webpack/patch-nx-source-map-paths.function.ts"],"names":[],"mappings":";;AAKA,sDAMC;AAXD,yCAAqC;AAKrC,SAAgB,qBAAqB,CAAC,MAAsB;IACxD,MAAM,CAAC,MAAM,CAAC,6BAA6B,GAAG,UAAU,IAAI;QACxD,MAAM,GAAG,GAAG,IAAA,oBAAQ,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,oBAAoB,CAAC,CAAC;QAC/D,OAAO,gBAAgB,GAAG,EAAE,CAAC;IACjC,CAAC,CAAC;IACF,OAAO,MAAM,CAAC;AAClB,CAAC;AAAA,CAAC"}
@@ -1,2 +0,0 @@
1
- import { TWebpackConfig } from "./patch-nx-source-map-paths.function";
2
- export declare function patchNxSourceMaps(): (config: TWebpackConfig) => TWebpackConfig;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.patchNxSourceMaps = patchNxSourceMaps;
4
- const patch_nx_source_map_paths_function_1 = require("./patch-nx-source-map-paths.function");
5
- function patchNxSourceMaps() {
6
- return (config) => {
7
- (0, patch_nx_source_map_paths_function_1.patchNxSourceMapPaths)(config);
8
- return config;
9
- };
10
- }
11
- //# sourceMappingURL=patch-nx-source-maps.plugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"patch-nx-source-maps.plugin.js","sourceRoot":"","sources":["../../../../onix/src/webpack/patch-nx-source-maps.plugin.ts"],"names":[],"mappings":";;AAEA,8CAKC;AAPD,6FAA6F;AAE7F,SAAgB,iBAAiB;IAC7B,OAAO,CAAC,MAAsB,EAAE,EAAE;QAC9B,IAAA,0DAAqB,EAAC,MAAM,CAAC,CAAC;QAC9B,OAAO,MAAM,CAAC;IAClB,CAAC,CAAA;AACL,CAAC"}
File without changes