@rxap/plugin-utilities 16.1.1-dev.4 → 16.2.0-dev.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/CHANGELOG.md +6 -0
- package/package.json +2 -2
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/lib/get-workspace-name.d.ts +2 -0
- package/src/lib/get-workspace-name.js +19 -0
- package/src/lib/get-workspace-name.js.map +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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
|
+
# [16.2.0-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/plugin-utilities@16.1.1-dev.4...@rxap/plugin-utilities@16.2.0-dev.0) (2024-04-07)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- add GetWorkspaceName function ([c5b5010](https://gitlab.com/rxap/packages/commit/c5b5010fd11914600a266a9d55e7a7d60d6c9b33))
|
|
11
|
+
|
|
6
12
|
## [16.1.1-dev.4](https://gitlab.com/rxap/packages/compare/@rxap/plugin-utilities@16.1.1-dev.3...@rxap/plugin-utilities@16.1.1-dev.4) (2024-03-31)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @rxap/plugin-utilities
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "16.
|
|
2
|
+
"version": "16.2.0-dev.0",
|
|
3
3
|
"name": "@rxap/plugin-utilities",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"dependencies": {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"directory": "packages/plugin/utilities"
|
|
61
61
|
},
|
|
62
62
|
"type": "commonjs",
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "58b5fef9136ddc5664431a48e3efc9095c716952",
|
|
64
64
|
"main": "./src/index.js",
|
|
65
65
|
"types": "./src/index.d.ts"
|
|
66
66
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './lib/get-all-package-dependencies-for-project';
|
|
2
2
|
export * from './lib/get-dependent-projects-for-project';
|
|
3
3
|
export * from './lib/get-direct-package-dependencies-for-project';
|
|
4
|
+
export * from './lib/get-workspace-name';
|
|
4
5
|
export * from './lib/guess-output-path';
|
|
5
6
|
export * from './lib/project-package-json';
|
|
6
7
|
export * from './lib/project-package-name-mapping';
|
package/src/index.js
CHANGED
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
tslib_1.__exportStar(require("./lib/get-all-package-dependencies-for-project"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./lib/get-dependent-projects-for-project"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./lib/get-direct-package-dependencies-for-project"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./lib/get-workspace-name"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./lib/guess-output-path"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./lib/project-package-json"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./lib/project-package-name-mapping"), exports);
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/plugin/utilities/src/index.ts"],"names":[],"mappings":";;;AAAA,UAAU;AACV,yFAA+D;AAC/D,mFAAyD;AACzD,4FAAkE;AAClE,kEAAwC;AACxC,qEAA2C;AAC3C,6EAAmD;AACnD,mEAAyC;AACzC,0EAAgD;AAChD,+DAAqC;AACrC,wDAA8B;AAC9B,yDAA+B;AAC/B,YAAY"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/plugin/utilities/src/index.ts"],"names":[],"mappings":";;;AAAA,UAAU;AACV,yFAA+D;AAC/D,mFAAyD;AACzD,4FAAkE;AAClE,mEAAyC;AACzC,kEAAwC;AACxC,qEAA2C;AAC3C,6EAAmD;AACnD,mEAAyC;AACzC,0EAAgD;AAChD,+DAAqC;AACrC,wDAA8B;AAC9B,yDAA+B;AAC/B,YAAY"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetWorkspaceName = void 0;
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const path_1 = require("path");
|
|
6
|
+
function GetWorkspaceName(context) {
|
|
7
|
+
const rootPackageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(context.root, 'package.json'));
|
|
8
|
+
const name = rootPackageJson.name;
|
|
9
|
+
const match = name === null || name === void 0 ? void 0 : name.match(/@([^/]+)\/(.+)$/);
|
|
10
|
+
if (match) {
|
|
11
|
+
if (match[2] === 'source') {
|
|
12
|
+
return match[1];
|
|
13
|
+
}
|
|
14
|
+
return match[2];
|
|
15
|
+
}
|
|
16
|
+
return name;
|
|
17
|
+
}
|
|
18
|
+
exports.GetWorkspaceName = GetWorkspaceName;
|
|
19
|
+
//# sourceMappingURL=get-workspace-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-workspace-name.js","sourceRoot":"","sources":["../../../../../../packages/plugin/utilities/src/lib/get-workspace-name.ts"],"names":[],"mappings":";;;AAAA,uCAGoB;AACpB,+BAA4B;AAG5B,SAAgB,gBAAgB,CAAC,OAAwB;IACvD,MAAM,eAAe,GAAG,IAAA,qBAAY,EAAC,IAAA,WAAI,EAAC,OAAO,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC;IACzE,MAAM,IAAI,GAAG,eAAe,CAAC,IAAK,CAAC;IACnC,MAAM,KAAK,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAC7C,IAAI,KAAK,EAAE;QACT,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE;YACzB,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;SACjB;QACD,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;KACjB;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAXD,4CAWC"}
|