@onivoro/onix 20.0.53 → 20.0.55
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/executors/build-cli/executor.js +3 -3
- package/src/executors/build-cli/executor.js.map +1 -1
- package/src/executors/deploy-ecs/executor.js +3 -2
- package/src/executors/deploy-ecs/executor.js.map +1 -1
- package/src/executors/deploy-lambda/executor.d.ts +2 -3
- package/src/executors/deploy-lambda/executor.js +10 -21
- package/src/executors/deploy-lambda/executor.js.map +1 -1
- package/src/executors/local/executor.js +2 -6
- package/src/executors/local/executor.js.map +1 -1
- package/src/executors/typeorm/executor.js +4 -1
- package/src/executors/typeorm/executor.js.map +1 -1
- package/src/functions/pm.function.d.ts +2 -0
- package/src/functions/pm.function.js +20 -0
- package/src/functions/pm.function.js.map +1 -0
- package/src/functions/pmx.function.d.ts +3 -0
- package/src/functions/pmx.function.js +21 -0
- package/src/functions/pmx.function.js.map +1 -0
- package/src/index.d.ts +4 -0
- package/src/index.js +4 -0
- package/src/index.js.map +1 -1
- package/src/webpack/patch-nx-source-map-paths.function.d.ts +9 -0
- package/src/webpack/patch-nx-source-map-paths.function.js +13 -0
- package/src/webpack/patch-nx-source-map-paths.function.js.map +1 -0
- package/src/webpack/patch-nx-source-maps.plugin.d.ts +2 -0
- package/src/webpack/patch-nx-source-maps.plugin.js +11 -0
- package/src/webpack/patch-nx-source-maps.plugin.js.map +1 -0
package/package.json
CHANGED
|
@@ -5,13 +5,13 @@ const devkit_1 = require("@nx/devkit");
|
|
|
5
5
|
const child_process_1 = require("child_process");
|
|
6
6
|
const executor_factory_function_1 = require("../../functions/executor-factory.function");
|
|
7
7
|
const extract_project_build_outputs_function_1 = require("../../functions/extract-project-build-outputs.function");
|
|
8
|
+
const pm_function_1 = require("../../functions/pm.function");
|
|
8
9
|
exports.default = (0, executor_factory_function_1.executorFactory)((options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
9
10
|
const [outputPath] = (0, extract_project_build_outputs_function_1.extractProjectBuildOutputs)(context, context.projectName);
|
|
10
11
|
const tempPath = `${outputPath}/temp`;
|
|
11
12
|
const executableOutputPath = `${outputPath}/main.js`;
|
|
12
13
|
devkit_1.logger.info(`add a bin entry to root package.json pointing at this executable => ${executableOutputPath} and re-run this if the bin entry hasn't been added yet`);
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
(0, child_process_1.execSync)(command, { stdio: 'inherit' });
|
|
14
|
+
const { dlx, exec } = (0, pm_function_1.pm)(context);
|
|
15
|
+
(0, child_process_1.execSync)(`${dlx} nx build ${context.projectName} && echo '#! /usr/bin/env node' > ${tempPath} && cat ${executableOutputPath} >> ${tempPath} && mv ${tempPath} ${executableOutputPath} && chmod +x ${executableOutputPath} && ${exec} link`, { stdio: 'inherit' });
|
|
16
16
|
}));
|
|
17
17
|
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/build-cli/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAEpC,iDAAyC;AACzC,yFAA4E;AAC5E,mHAAoG;
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/build-cli/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAEpC,iDAAyC;AACzC,yFAA4E;AAC5E,mHAAoG;AACpG,6DAAiD;AAEjD,kBAAe,IAAA,2CAAe,EAAC,CAAO,OAAuB,EAAE,OAAO,EAAE,EAAE;IACxE,MAAM,CAAC,UAAU,CAAC,GAAG,IAAA,mEAA0B,EAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9E,MAAM,QAAQ,GAAG,GAAG,UAAU,OAAO,CAAC;IACtC,MAAM,oBAAoB,GAAG,GAAG,UAAU,UAAU,CAAC;IAErD,eAAM,CAAC,IAAI,CAAC,uEAAuE,oBAAoB,yDAAyD,CAAC,CAAC;IAElK,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,IAAA,gBAAE,EAAC,OAAO,CAAC,CAAC;IAElC,IAAA,wBAAQ,EAAC,GAAG,GAAG,aAAa,OAAO,CAAC,WAAW,qCAAqC,QAAQ,WAAW,oBAAoB,OAAO,QAAQ,UAAU,QAAQ,IAAI,oBAAoB,gBAAgB,oBAAoB,OAAO,IAAI,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAC,CAAC,CAAC;AACnQ,CAAC,CAAA,CAAC,CAAC"}
|
|
@@ -9,11 +9,12 @@ const extract_project_build_assets_function_1 = require("../../functions/extract
|
|
|
9
9
|
const path_1 = require("path");
|
|
10
10
|
const extract_project_configuration_function_1 = require("../../functions/extract-project-configuration.function");
|
|
11
11
|
const restart_ecs_service_function_1 = require("../../functions/restart-ecs-service.function");
|
|
12
|
+
const pmx_function_1 = require("../../functions/pmx.function");
|
|
12
13
|
const stdio = 'inherit';
|
|
13
14
|
const uiAssetFolderName = 'ui';
|
|
14
15
|
const executor = (options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
15
16
|
const { ecr, profile, dockerfile, ui, region, cluster, service } = options;
|
|
16
|
-
(0,
|
|
17
|
+
(0, pmx_function_1.pmxSpawn)(context, `nx build ${context.projectName}`);
|
|
17
18
|
try {
|
|
18
19
|
const [apiProjectAssetPath] = (0, extract_project_build_assets_function_1.extractProjectBuildAssets)(context, context.projectName);
|
|
19
20
|
const [apiProjectOutput] = (0, extract_project_build_outputs_function_1.extractProjectBuildOutputs)(context, context.projectName);
|
|
@@ -21,7 +22,7 @@ const executor = (options, context) => tslib_1.__awaiter(void 0, void 0, void 0,
|
|
|
21
22
|
if (apiProjectAssetPath) {
|
|
22
23
|
const [webProjectOutputs] = (0, extract_project_build_outputs_function_1.extractProjectBuildOutputs)(context, ui);
|
|
23
24
|
if (webProjectOutputs === null || webProjectOutputs === void 0 ? void 0 : webProjectOutputs.length) {
|
|
24
|
-
(0,
|
|
25
|
+
(0, pmx_function_1.pmxSpawn)(context, `nx build ${ui}`);
|
|
25
26
|
const projectConfiguration = (0, extract_project_configuration_function_1.extractProjectConfiguration)(context, context.projectName);
|
|
26
27
|
const [projectDist] = apiProjectOutput.split(projectConfiguration.root);
|
|
27
28
|
const [__, projectAssetsPath] = apiProjectAssetPath.split(projectConfiguration.sourceRoot);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/deploy-ecs/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAsE;AAEtE,iDAAyC;AACzC,2GAA2F;AAC3F,mHAAoG;AACpG,iHAAkG;AAClG,+BAA4B;AAC5B,mHAAqG;AACrG,+FAAgF;
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/deploy-ecs/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAsE;AAEtE,iDAAyC;AACzC,2GAA2F;AAC3F,mHAAoG;AACpG,iHAAkG;AAClG,+BAA4B;AAC5B,mHAAqG;AACrG,+FAAgF;AAChF,+DAAwD;AAExD,MAAM,KAAK,GAAG,SAAS,CAAC;AACxB,MAAM,iBAAiB,GAAG,IAAI,CAAC;AAE/B,MAAM,QAAQ,GAAoC,CAChD,OAAuB,EACvB,OAAwB,EACxB,EAAE;IACF,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAE3E,IAAA,uBAAQ,EAAC,OAAO,EAAE,YAAY,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAErD,IAAI,CAAC;QACH,MAAM,CAAC,mBAAmB,CAAC,GAAG,IAAA,iEAAyB,EAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;QACtF,MAAM,CAAC,gBAAgB,CAAC,GAAG,IAAA,mEAA0B,EAAC,OAAO,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;QAC7B,eAAM,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACxB,OAAO;YACL,OAAO,EAAE,KAAK;SACf,CAAC;IACJ,CAAC;AACH,CAAC,CAAA,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { PromiseExecutor } from '@nx/devkit';
|
|
2
1
|
import { ExecutorSchema } from './schema';
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
2
|
+
declare const _default: import("@nx/devkit").PromiseExecutor<ExecutorSchema>;
|
|
3
|
+
export default _default;
|
|
@@ -1,29 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
|
5
4
|
const child_process_1 = require("child_process");
|
|
6
5
|
const extract_project_build_outputs_function_1 = require("../../functions/extract-project-build-outputs.function");
|
|
7
6
|
const deploy_lambda_function_1 = require("../../functions/deploy-lambda.function");
|
|
7
|
+
const pmx_function_1 = require("../../functions/pmx.function");
|
|
8
|
+
const pm_function_1 = require("../../functions/pm.function");
|
|
9
|
+
const executor_factory_function_1 = require("../../functions/executor-factory.function");
|
|
8
10
|
const stdio = 'inherit';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return {
|
|
17
|
-
success: true,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
catch (error) {
|
|
21
|
-
devkit_1.logger.error(error === null || error === void 0 ? void 0 : error.message);
|
|
22
|
-
devkit_1.logger.error({ error });
|
|
23
|
-
return {
|
|
24
|
-
success: false,
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
exports.default = executor;
|
|
11
|
+
exports.default = (0, executor_factory_function_1.executorFactory)((options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
12
|
+
const { functionName, region, bucket, profile, roleArn, environment, memorySize, delayMs, handler, runtime } = options;
|
|
13
|
+
const [apiProjectOutput] = (0, extract_project_build_outputs_function_1.extractProjectBuildOutputs)(context, context.projectName);
|
|
14
|
+
(0, pmx_function_1.pmxSpawn)(context, `nx build ${context.projectName}`);
|
|
15
|
+
(0, child_process_1.execSync)((0, pm_function_1.pm)(context).install, { stdio, cwd: apiProjectOutput });
|
|
16
|
+
yield (0, deploy_lambda_function_1.deployLambda)({ functionName: functionName || context.projectName, sourcePath: apiProjectOutput, region, bucket, roleArn, profile, environment, memorySize, delayMs, handler, runtime });
|
|
17
|
+
}));
|
|
29
18
|
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/deploy-lambda/executor.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/deploy-lambda/executor.ts"],"names":[],"mappings":";;;AAEA,iDAAyC;AACzC,mHAAoG;AACpG,mFAAsE;AACtE,+DAAwD;AACxD,6DAAiD;AACjD,yFAA4E;AAE5E,MAAM,KAAK,GAAG,SAAS,CAAC;AAExB,kBAAe,IAAA,2CAAe,EAAC,CAC7B,OAAuB,EACvB,OAAwB,EACxB,EAAE;IACF,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IACvH,MAAM,CAAC,gBAAgB,CAAC,GAAG,IAAA,mEAA0B,EAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAEpF,IAAA,uBAAQ,EAAC,OAAO,EAAE,YAAY,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IACrD,IAAA,wBAAQ,EAAC,IAAA,gBAAE,EAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,gBAAgB,EAAE,CAAC,CAAC;IAEhE,MAAM,IAAA,qCAAY,EAAC,EAAE,YAAY,EAAE,YAAY,IAAI,OAAO,CAAC,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;AAEhM,CAAC,CAAA,CAAC,CAAC"}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const child_process_1 = require("child_process");
|
|
6
4
|
const load_env_file_function_1 = require("../../functions/load-env-file.function");
|
|
7
5
|
const executor_factory_function_1 = require("../../functions/executor-factory.function");
|
|
6
|
+
const pmx_function_1 = require("../../functions/pmx.function");
|
|
8
7
|
exports.default = (0, executor_factory_function_1.executorFactory)((options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
9
8
|
const { debugPort, envFile } = options;
|
|
10
9
|
(0, load_env_file_function_1.loadEnvFile)(envFile);
|
|
11
10
|
const inspectStatement = debugPort ? `--port=${debugPort}` : '';
|
|
12
|
-
|
|
13
|
-
devkit_1.logger.debug(command);
|
|
14
|
-
const [program, ...args] = command.split(' ');
|
|
15
|
-
(0, child_process_1.spawnSync)(program, args, { stdio: 'inherit' });
|
|
11
|
+
(0, pmx_function_1.pmxSpawn)(context, `nx run ${context.projectName}:serve ${inspectStatement}`);
|
|
16
12
|
}));
|
|
17
13
|
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/local/executor.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/local/executor.ts"],"names":[],"mappings":";;;AAIA,mFAAqE;AACrE,yFAA4E;AAC5E,+DAAwD;AAExD,kBAAe,IAAA,2CAAe,EAAC,CAC7B,OAAuB,EACvB,OAAwB,EACxB,EAAE;IACF,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAEvC,IAAA,oCAAW,EAAC,OAAO,CAAC,CAAC;IAErB,MAAM,gBAAgB,GAAG,SAAS,CAAC,CAAC,CAAC,UAAU,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAEhE,IAAA,uBAAQ,EAAC,OAAO,EAAE,UAAU,OAAO,CAAC,WAAW,UAAU,gBAAgB,EAAE,CAAC,CAAC;AAC/E,CAAC,CAAA,CAAC,CAAC"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
const child_process_1 = require("child_process");
|
|
5
6
|
const load_env_file_function_1 = require("../../functions/load-env-file.function");
|
|
6
7
|
const executor_factory_function_1 = require("../../functions/executor-factory.function");
|
|
8
|
+
const pm_function_1 = require("../../functions/pm.function");
|
|
7
9
|
exports.default = (0, executor_factory_function_1.executorFactory)((options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
8
10
|
const { envFile, ormConfigPath, runOrRevert } = options;
|
|
9
11
|
(0, load_env_file_function_1.loadEnvFile)(envFile);
|
|
10
|
-
|
|
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' });
|
|
11
14
|
}));
|
|
12
15
|
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/typeorm/executor.ts"],"names":[],"mappings":";;;
|
|
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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
package/src/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export * from './functions/extract-project-build-outputs.function';
|
|
|
6
6
|
export * from './functions/extract-project-configuration.function';
|
|
7
7
|
export * from './functions/load-env-file.function';
|
|
8
8
|
export * from './functions/normalize-output-path.function';
|
|
9
|
+
export * from './functions/pm.function';
|
|
10
|
+
export * from './functions/pmx.function';
|
|
9
11
|
export * from './inference/add-docker-target.function';
|
|
10
12
|
export * from './inference/add-docker-targets.function';
|
|
11
13
|
export * from './inference/add-serve-target.function';
|
|
@@ -13,3 +15,5 @@ export * from './inference/add-serve-targets.function';
|
|
|
13
15
|
export * from './inference/build-onix-targets.function';
|
|
14
16
|
export * from './inference/read-targets-cache.function';
|
|
15
17
|
export * from './inference/write-targets-to-cache.function';
|
|
18
|
+
export * from './webpack/patch-nx-source-map-paths.function';
|
|
19
|
+
export * from './webpack/patch-nx-source-maps.plugin';
|
package/src/index.js
CHANGED
|
@@ -11,6 +11,8 @@ tslib_1.__exportStar(require("./functions/extract-project-build-outputs.function
|
|
|
11
11
|
tslib_1.__exportStar(require("./functions/extract-project-configuration.function"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./functions/load-env-file.function"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./functions/normalize-output-path.function"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./functions/pm.function"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./functions/pmx.function"), exports);
|
|
14
16
|
tslib_1.__exportStar(require("./inference/add-docker-target.function"), exports);
|
|
15
17
|
tslib_1.__exportStar(require("./inference/add-docker-targets.function"), exports);
|
|
16
18
|
tslib_1.__exportStar(require("./inference/add-serve-target.function"), exports);
|
|
@@ -18,4 +20,6 @@ tslib_1.__exportStar(require("./inference/add-serve-targets.function"), exports)
|
|
|
18
20
|
tslib_1.__exportStar(require("./inference/build-onix-targets.function"), exports);
|
|
19
21
|
tslib_1.__exportStar(require("./inference/read-targets-cache.function"), exports);
|
|
20
22
|
tslib_1.__exportStar(require("./inference/write-targets-to-cache.function"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./webpack/patch-nx-source-map-paths.function"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./webpack/patch-nx-source-maps.plugin"), exports);
|
|
21
25
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../onix/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAA6D;AAApD,qHAAA,gBAAgB,OAAA;AAEzB,mEAAyC;AAEzC,2DAAiC;AAEjC,gFAAsD;AACtD,6FAAmE;AACnE,6FAAmE;AACnE,6EAAmD;AACnD,qFAA2D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../onix/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAA6D;AAApD,qHAAA,gBAAgB,OAAA;AAEzB,mEAAyC;AAEzC,2DAAiC;AAEjC,gFAAsD;AACtD,6FAAmE;AACnE,6FAAmE;AACnE,6EAAmD;AACnD,qFAA2D;AAC3D,kEAAwC;AACxC,mEAAyC;AAEzC,iFAAuD;AACvD,kFAAwD;AACxD,gFAAsD;AACtD,iFAAuD;AACvD,kFAAwD;AACxD,kFAAwD;AACxD,sFAA4D;AAE5D,uFAA6D;AAC7D,gFAAsD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|