powerlines 0.22.0 → 0.22.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.
- package/dist/plugin-utils/{chunk-HZIY2AV4.cjs → chunk-NFXNZFMN.cjs} +24 -0
- package/dist/plugin-utils/{chunk-DGUQQKZF.js → chunk-SEH3RVMF.js} +24 -1
- package/dist/plugin-utils/context-helpers.cjs +6 -2
- package/dist/plugin-utils/context-helpers.d.cts +8 -1
- package/dist/plugin-utils/context-helpers.d.ts +8 -1
- package/dist/plugin-utils/context-helpers.js +1 -1
- package/dist/plugin-utils/index.cjs +6 -2
- package/dist/plugin-utils/index.d.cts +1 -1
- package/dist/plugin-utils/index.d.ts +1 -1
- package/dist/plugin-utils/index.js +1 -1
- package/package.json +2 -2
|
@@ -36,8 +36,32 @@ function getOrganizationName(context) {
|
|
|
36
36
|
result = context.packageJson.contributors[0];
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
+
if (!result && isSetString.isSetString(context.packageJson.namespace)) {
|
|
40
|
+
result = context.packageJson.namespace.replace(/^@/, "");
|
|
41
|
+
}
|
|
42
|
+
if (!result && isSetString.isSetString(context.packageJson.name)) {
|
|
43
|
+
result = context.packageJson.name.replace(/^@/, "").replace(/\/.*$/, "");
|
|
44
|
+
}
|
|
39
45
|
return result;
|
|
40
46
|
}
|
|
41
47
|
chunkUSNT2KNT_cjs.__name(getOrganizationName, "getOrganizationName");
|
|
48
|
+
function getWorkspaceName(context) {
|
|
49
|
+
let result;
|
|
50
|
+
if (isSetString.isSetString(context.workspaceConfig.name)) {
|
|
51
|
+
result = context.workspaceConfig.name;
|
|
52
|
+
}
|
|
53
|
+
if (!result && isSetString.isSetString(context.workspaceConfig.namespace)) {
|
|
54
|
+
result = context.workspaceConfig.namespace.replace(/^@/, "");
|
|
55
|
+
}
|
|
56
|
+
if (!result && isSetString.isSetString(context.packageJson.namespace)) {
|
|
57
|
+
result = context.packageJson.namespace.replace(/^@/, "");
|
|
58
|
+
}
|
|
59
|
+
if (!result && isSetString.isSetString(context.packageJson.name)) {
|
|
60
|
+
result = context.packageJson.name.replace(/^@/, "").replace(/\/.*$/, "");
|
|
61
|
+
}
|
|
62
|
+
return result;
|
|
63
|
+
}
|
|
64
|
+
chunkUSNT2KNT_cjs.__name(getWorkspaceName, "getWorkspaceName");
|
|
42
65
|
|
|
43
66
|
exports.getOrganizationName = getOrganizationName;
|
|
67
|
+
exports.getWorkspaceName = getWorkspaceName;
|
|
@@ -34,8 +34,31 @@ function getOrganizationName(context) {
|
|
|
34
34
|
result = context.packageJson.contributors[0];
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
+
if (!result && isSetString(context.packageJson.namespace)) {
|
|
38
|
+
result = context.packageJson.namespace.replace(/^@/, "");
|
|
39
|
+
}
|
|
40
|
+
if (!result && isSetString(context.packageJson.name)) {
|
|
41
|
+
result = context.packageJson.name.replace(/^@/, "").replace(/\/.*$/, "");
|
|
42
|
+
}
|
|
37
43
|
return result;
|
|
38
44
|
}
|
|
39
45
|
__name(getOrganizationName, "getOrganizationName");
|
|
46
|
+
function getWorkspaceName(context) {
|
|
47
|
+
let result;
|
|
48
|
+
if (isSetString(context.workspaceConfig.name)) {
|
|
49
|
+
result = context.workspaceConfig.name;
|
|
50
|
+
}
|
|
51
|
+
if (!result && isSetString(context.workspaceConfig.namespace)) {
|
|
52
|
+
result = context.workspaceConfig.namespace.replace(/^@/, "");
|
|
53
|
+
}
|
|
54
|
+
if (!result && isSetString(context.packageJson.namespace)) {
|
|
55
|
+
result = context.packageJson.namespace.replace(/^@/, "");
|
|
56
|
+
}
|
|
57
|
+
if (!result && isSetString(context.packageJson.name)) {
|
|
58
|
+
result = context.packageJson.name.replace(/^@/, "").replace(/\/.*$/, "");
|
|
59
|
+
}
|
|
60
|
+
return result;
|
|
61
|
+
}
|
|
62
|
+
__name(getWorkspaceName, "getWorkspaceName");
|
|
40
63
|
|
|
41
|
-
export { getOrganizationName };
|
|
64
|
+
export { getOrganizationName, getWorkspaceName };
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNFXNZFMN_cjs = require('./chunk-NFXNZFMN.cjs');
|
|
4
4
|
require('./chunk-USNT2KNT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "getOrganizationName", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkNFXNZFMN_cjs.getOrganizationName; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "getWorkspaceName", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkNFXNZFMN_cjs.getWorkspaceName; }
|
|
11
15
|
});
|
|
@@ -25,5 +25,12 @@ import '@stryke/types/array';
|
|
|
25
25
|
* @returns The organization name or undefined if not found.
|
|
26
26
|
*/
|
|
27
27
|
declare function getOrganizationName(context: UnresolvedContext): string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Get the organization name from the context
|
|
30
|
+
*
|
|
31
|
+
* @param context - The Powerlines plugin context.
|
|
32
|
+
* @returns The organization name or undefined if not found.
|
|
33
|
+
*/
|
|
34
|
+
declare function getWorkspaceName(context: UnresolvedContext): string | undefined;
|
|
28
35
|
|
|
29
|
-
export { getOrganizationName };
|
|
36
|
+
export { getOrganizationName, getWorkspaceName };
|
|
@@ -25,5 +25,12 @@ import '@stryke/types/array';
|
|
|
25
25
|
* @returns The organization name or undefined if not found.
|
|
26
26
|
*/
|
|
27
27
|
declare function getOrganizationName(context: UnresolvedContext): string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Get the organization name from the context
|
|
30
|
+
*
|
|
31
|
+
* @param context - The Powerlines plugin context.
|
|
32
|
+
* @returns The organization name or undefined if not found.
|
|
33
|
+
*/
|
|
34
|
+
declare function getWorkspaceName(context: UnresolvedContext): string | undefined;
|
|
28
35
|
|
|
29
|
-
export { getOrganizationName };
|
|
36
|
+
export { getOrganizationName, getWorkspaceName };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { getOrganizationName } from './chunk-
|
|
1
|
+
export { getOrganizationName, getWorkspaceName } from './chunk-SEH3RVMF.js';
|
|
2
2
|
import './chunk-SHUYVCID.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNFXNZFMN_cjs = require('./chunk-NFXNZFMN.cjs');
|
|
4
4
|
var chunkDZZPNO5H_cjs = require('./chunk-DZZPNO5H.cjs');
|
|
5
5
|
var chunkECFS7DPV_cjs = require('./chunk-ECFS7DPV.cjs');
|
|
6
6
|
var chunk5MO4BCOW_cjs = require('./chunk-5MO4BCOW.cjs');
|
|
@@ -13,7 +13,11 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
13
13
|
|
|
14
14
|
Object.defineProperty(exports, "getOrganizationName", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkNFXNZFMN_cjs.getOrganizationName; }
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "getWorkspaceName", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunkNFXNZFMN_cjs.getWorkspaceName; }
|
|
17
21
|
});
|
|
18
22
|
Object.defineProperty(exports, "enforceVariant", {
|
|
19
23
|
enumerable: true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { getOrganizationName } from './context-helpers.cjs';
|
|
1
|
+
export { getOrganizationName, getWorkspaceName } from './context-helpers.cjs';
|
|
2
2
|
export { enforceVariant } from './enforce.cjs';
|
|
3
3
|
export { extend } from './extend.cjs';
|
|
4
4
|
export { getConfigPath } from './get-config-path.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { getOrganizationName } from './context-helpers.js';
|
|
1
|
+
export { getOrganizationName, getWorkspaceName } from './context-helpers.js';
|
|
2
2
|
export { enforceVariant } from './enforce.js';
|
|
3
3
|
export { extend } from './extend.js';
|
|
4
4
|
export { getConfigPath } from './get-config-path.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { getOrganizationName } from './chunk-
|
|
1
|
+
export { getOrganizationName, getWorkspaceName } from './chunk-SEH3RVMF.js';
|
|
2
2
|
export { enforceVariant } from './chunk-XIXI67PY.js';
|
|
3
3
|
export { extend } from './chunk-GV7O3E7P.js';
|
|
4
4
|
export { getConfigPath } from './chunk-CYVV2MB7.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "powerlines",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The \"any framework\" framework that simplifies modern dev tool usage, generates virtual (or actual) code modules, and improves DX across the board.",
|
|
6
6
|
"repository": {
|
|
@@ -540,5 +540,5 @@
|
|
|
540
540
|
"typescript": "^5.9.3"
|
|
541
541
|
},
|
|
542
542
|
"publishConfig": { "access": "public" },
|
|
543
|
-
"gitHead": "
|
|
543
|
+
"gitHead": "79514f9dda337550c9e4064a7a6e3938bd9aca08"
|
|
544
544
|
}
|