@rxap/plugin-nestjs 19.1.2-dev.3 → 19.1.2-dev.5
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [19.1.2-dev.5](https://gitlab.com/rxap/packages/compare/@rxap/plugin-nestjs@19.1.2-dev.4...@rxap/plugin-nestjs@19.1.2-dev.5) (2024-07-03)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- support plugin based build targets ([d18058f](https://gitlab.com/rxap/packages/commit/d18058f9673cf3f61abe59ccad18e8370d79c636))
|
|
11
|
+
|
|
12
|
+
## [19.1.2-dev.4](https://gitlab.com/rxap/packages/compare/@rxap/plugin-nestjs@19.1.2-dev.3...@rxap/plugin-nestjs@19.1.2-dev.4) (2024-07-03)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @rxap/plugin-nestjs
|
|
15
|
+
|
|
6
16
|
## [19.1.2-dev.3](https://gitlab.com/rxap/packages/compare/@rxap/plugin-nestjs@19.1.2-dev.2...@rxap/plugin-nestjs@19.1.2-dev.3) (2024-07-03)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @rxap/plugin-nestjs
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "19.1.2-dev.
|
|
2
|
+
"version": "19.1.2-dev.5",
|
|
3
3
|
"name": "@rxap/plugin-nestjs",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"dependencies": {
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
"@nx/js": "19.3.2",
|
|
8
8
|
"@nx/nest": "19.3.2",
|
|
9
9
|
"@rxap/node-utilities": "^1.3.2",
|
|
10
|
-
"@rxap/plugin-application": "^19.1.1-dev.
|
|
11
|
-
"@rxap/plugin-library": "^19.3.2-dev.
|
|
12
|
-
"@rxap/plugin-open-api": "^19.1.4-dev.
|
|
13
|
-
"@rxap/plugin-utilities": "^19.0.6-dev.
|
|
10
|
+
"@rxap/plugin-application": "^19.1.1-dev.5",
|
|
11
|
+
"@rxap/plugin-library": "^19.3.2-dev.5",
|
|
12
|
+
"@rxap/plugin-open-api": "^19.1.4-dev.5",
|
|
13
|
+
"@rxap/plugin-utilities": "^19.0.6-dev.5",
|
|
14
14
|
"@rxap/ts-morph": "^1.4.3-dev.2",
|
|
15
15
|
"@rxap/utilities": "^16.3.0-dev.1",
|
|
16
|
-
"@rxap/workspace-ts-morph": "^19.1.3-dev.
|
|
17
|
-
"@rxap/workspace-utilities": "^19.4.0-dev.
|
|
16
|
+
"@rxap/workspace-ts-morph": "^19.1.3-dev.5",
|
|
17
|
+
"@rxap/workspace-utilities": "^19.4.0-dev.4",
|
|
18
18
|
"colors": "1.4.0",
|
|
19
19
|
"semver": "7.5.3",
|
|
20
20
|
"ts-morph": "18.0.0",
|
|
@@ -54,6 +54,6 @@
|
|
|
54
54
|
},
|
|
55
55
|
"schematics": "./generators.json",
|
|
56
56
|
"type": "commonjs",
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "a68ed40a8e6b5da5d44aba979bc215326cdd472b",
|
|
58
58
|
"main": "./src/index.js"
|
|
59
59
|
}
|
|
@@ -2,16 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.updateProjectTargets = void 0;
|
|
4
4
|
const workspace_utilities_1 = require("@rxap/workspace-utilities");
|
|
5
|
+
const path_1 = require("path");
|
|
5
6
|
function updateProjectTargets(tree, projectName, project, options) {
|
|
6
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
7
|
-
var
|
|
7
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
8
|
+
var _l, _m, _o, _p;
|
|
8
9
|
if (!options.standalone) {
|
|
9
10
|
(0, workspace_utilities_1.CoerceTarget)(project, 'generate-package-json', {});
|
|
10
11
|
}
|
|
11
|
-
const outputPath = (_c = (_b = (_a = project.targets) === null || _a === void 0 ? void 0 : _a.build) === null || _b === void 0 ? void 0 : _b.options) === null || _c === void 0 ? void 0 : _c.outputPath;
|
|
12
|
-
if (!outputPath) {
|
|
13
|
-
throw new Error(`No outputPath found for project ${projectName}`);
|
|
14
|
-
}
|
|
12
|
+
const outputPath = (_d = (_c = (_b = (_a = project.targets) === null || _a === void 0 ? void 0 : _a.build) === null || _b === void 0 ? void 0 : _b.options) === null || _c === void 0 ? void 0 : _c.outputPath) !== null && _d !== void 0 ? _d : (0, path_1.join)('dist', project.root);
|
|
15
13
|
if (options.swagger && !options.standalone) {
|
|
16
14
|
(0, workspace_utilities_1.CoerceTarget)(project, 'generate-open-api', {
|
|
17
15
|
executor: '@rxap/plugin-library:run-generator',
|
|
@@ -45,8 +43,8 @@ function updateProjectTargets(tree, projectName, project, options) {
|
|
|
45
43
|
}, workspace_utilities_1.Strategy.OVERWRITE);
|
|
46
44
|
if (tree.exists('LICENSE')) {
|
|
47
45
|
const buildConfiguration = (0, workspace_utilities_1.GetTarget)(project, 'build');
|
|
48
|
-
(
|
|
49
|
-
(
|
|
46
|
+
(_e = buildConfiguration.options) !== null && _e !== void 0 ? _e : (buildConfiguration.options = {});
|
|
47
|
+
(_f = (_l = buildConfiguration.options).assets) !== null && _f !== void 0 ? _f : (_l.assets = []);
|
|
50
48
|
(0, workspace_utilities_1.CoerceAssets)(buildConfiguration.options.assets, [
|
|
51
49
|
{
|
|
52
50
|
'input': '',
|
|
@@ -56,10 +54,10 @@ function updateProjectTargets(tree, projectName, project, options) {
|
|
|
56
54
|
]);
|
|
57
55
|
(0, workspace_utilities_1.CoerceTarget)(project, 'build', buildConfiguration, workspace_utilities_1.Strategy.REPLACE);
|
|
58
56
|
}
|
|
59
|
-
if ((
|
|
60
|
-
(
|
|
61
|
-
(
|
|
62
|
-
(
|
|
57
|
+
if ((_g = project.targets) === null || _g === void 0 ? void 0 : _g['docker']) {
|
|
58
|
+
(_h = (_m = project.targets['docker']).options) !== null && _h !== void 0 ? _h : (_m.options = {});
|
|
59
|
+
(_j = (_o = project.targets['docker'].options).dockerfile) !== null && _j !== void 0 ? _j : (_o.dockerfile = 'shared/nestjs/Dockerfile');
|
|
60
|
+
(_k = (_p = project.targets['docker'].options).buildArgList) !== null && _k !== void 0 ? _k : (_p.buildArgList = []);
|
|
63
61
|
if (options.apiPrefix !== false &&
|
|
64
62
|
!project.targets['docker'].options.buildArgList.some((arg) => arg.startsWith('PATH_PREFIX='))) {
|
|
65
63
|
project.targets['docker'].options.buildArgList.push('PATH_PREFIX=REGEX:app/app.config.ts:validationSchema\\[\'GLOBAL_API_PREFIX\'\\]\\s*=\\s*Joi.string\\(\\).default\\(\\s*\'(.+)\',?\\s*\\);');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-project-targets.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/nestjs/src/generators/init-application/update-project-targets.ts"],"names":[],"mappings":";;;AAIA,mEAKmC;
|
|
1
|
+
{"version":3,"file":"update-project-targets.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/nestjs/src/generators/init-application/update-project-targets.ts"],"names":[],"mappings":";;;AAIA,mEAKmC;AAEnC,+BAA4B;AAE5B,SAAgB,oBAAoB,CAClC,IAAU,EAAE,WAAmB,EAAE,OAA6B,EAAE,OAAuC;;;IAEvG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACxB,IAAA,kCAAY,EAAC,OAAO,EAAE,uBAAuB,EAAE,EAAE,CAAC,CAAC;IACrD,CAAC;IAED,MAAM,UAAU,GAAG,MAAA,MAAA,MAAA,MAAA,OAAO,CAAC,OAAO,0CAAE,KAAK,0CAAE,OAAO,0CAAE,UAAU,mCAAI,IAAA,WAAI,EAAC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