@bemoje/monorepo 1.2.0 → 1.2.2

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 (125) hide show
  1. package/lib/index.cjs +2496 -213
  2. package/lib/index.d.cts +2765 -26
  3. package/lib/index.d.ts +2765 -26
  4. package/lib/index.js +2469 -30
  5. package/package.json +178 -297
  6. package/lib/MonoRepo.cjs +0 -142
  7. package/lib/MonoRepo.d.cts +0 -10
  8. package/lib/MonoRepo.d.ts +0 -10
  9. package/lib/MonoRepo.js +0 -134
  10. package/lib/code/AbstractCode.cjs +0 -77
  11. package/lib/code/AbstractCode.d.cts +0 -30
  12. package/lib/code/AbstractCode.d.ts +0 -30
  13. package/lib/code/AbstractCode.js +0 -74
  14. package/lib/code/CodeBlock.cjs +0 -51
  15. package/lib/code/CodeBlock.d.cts +0 -22
  16. package/lib/code/CodeBlock.d.ts +0 -22
  17. package/lib/code/CodeBlock.js +0 -48
  18. package/lib/code/TsCode.cjs +0 -90
  19. package/lib/code/TsCode.d.cts +0 -10
  20. package/lib/code/TsCode.d.ts +0 -10
  21. package/lib/code/TsCode.js +0 -87
  22. package/lib/code/imports/ImportKeywords.cjs +0 -42
  23. package/lib/code/imports/ImportKeywords.d.cts +0 -10
  24. package/lib/code/imports/ImportKeywords.d.ts +0 -10
  25. package/lib/code/imports/ImportKeywords.js +0 -39
  26. package/lib/code/imports/ImportSpecifiers.cjs +0 -98
  27. package/lib/code/imports/ImportSpecifiers.d.cts +0 -10
  28. package/lib/code/imports/ImportSpecifiers.d.ts +0 -10
  29. package/lib/code/imports/ImportSpecifiers.js +0 -95
  30. package/lib/code/imports/ImportStatement.cjs +0 -89
  31. package/lib/code/imports/ImportStatement.d.cts +0 -10
  32. package/lib/code/imports/ImportStatement.d.ts +0 -10
  33. package/lib/code/imports/ImportStatement.js +0 -86
  34. package/lib/code/imports/ModuleSpecifier.cjs +0 -77
  35. package/lib/code/imports/ModuleSpecifier.d.cts +0 -10
  36. package/lib/code/imports/ModuleSpecifier.d.ts +0 -10
  37. package/lib/code/imports/ModuleSpecifier.js +0 -74
  38. package/lib/common/AbstractBase.cjs +0 -77
  39. package/lib/common/AbstractBase.d.cts +0 -3
  40. package/lib/common/AbstractBase.d.ts +0 -3
  41. package/lib/common/AbstractBase.js +0 -74
  42. package/lib/file/File.cjs +0 -118
  43. package/lib/file/File.d.cts +0 -10
  44. package/lib/file/File.d.ts +0 -10
  45. package/lib/file/File.js +0 -91
  46. package/lib/file/TestFile.cjs +0 -42
  47. package/lib/file/TestFile.d.cts +0 -10
  48. package/lib/file/TestFile.d.ts +0 -10
  49. package/lib/file/TestFile.js +0 -39
  50. package/lib/file/TsFile.cjs +0 -46
  51. package/lib/file/TsFile.d.cts +0 -10
  52. package/lib/file/TsFile.d.ts +0 -10
  53. package/lib/file/TsFile.js +0 -43
  54. package/lib/methods/findWorkspacePackageName.cjs +0 -17
  55. package/lib/methods/findWorkspacePackageName.d.cts +0 -6
  56. package/lib/methods/findWorkspacePackageName.d.ts +0 -6
  57. package/lib/methods/findWorkspacePackageName.js +0 -14
  58. package/lib/methods/getAllImports.cjs +0 -18
  59. package/lib/methods/getAllImports.d.cts +0 -17
  60. package/lib/methods/getAllImports.d.ts +0 -17
  61. package/lib/methods/getAllImports.js +0 -16
  62. package/lib/methods/getAllWorkspacePackageJsonPaths.cjs +0 -20
  63. package/lib/methods/getAllWorkspacePackageJsonPaths.d.cts +0 -6
  64. package/lib/methods/getAllWorkspacePackageJsonPaths.d.ts +0 -6
  65. package/lib/methods/getAllWorkspacePackageJsonPaths.js +0 -13
  66. package/lib/methods/getAllWorkspacePackageJsons.cjs +0 -20
  67. package/lib/methods/getAllWorkspacePackageJsons.d.cts +0 -6
  68. package/lib/methods/getAllWorkspacePackageJsons.d.ts +0 -6
  69. package/lib/methods/getAllWorkspacePackageJsons.js +0 -13
  70. package/lib/methods/getAllWorkspacePackageNames.cjs +0 -15
  71. package/lib/methods/getAllWorkspacePackageNames.d.cts +0 -6
  72. package/lib/methods/getAllWorkspacePackageNames.d.ts +0 -6
  73. package/lib/methods/getAllWorkspacePackageNames.js +0 -12
  74. package/lib/methods/getAllWorkspacePaths.cjs +0 -23
  75. package/lib/methods/getAllWorkspacePaths.d.cts +0 -6
  76. package/lib/methods/getAllWorkspacePaths.d.ts +0 -6
  77. package/lib/methods/getAllWorkspacePaths.js +0 -16
  78. package/lib/methods/getImportsRecursively.cjs +0 -176
  79. package/lib/methods/getImportsRecursively.d.cts +0 -37
  80. package/lib/methods/getImportsRecursively.d.ts +0 -37
  81. package/lib/methods/getImportsRecursively.js +0 -168
  82. package/lib/methods/getRepoPackageJson.cjs +0 -17
  83. package/lib/methods/getRepoPackageJson.d.cts +0 -6
  84. package/lib/methods/getRepoPackageJson.d.ts +0 -6
  85. package/lib/methods/getRepoPackageJson.js +0 -10
  86. package/lib/methods/getRepoPackageJsonPath.cjs +0 -17
  87. package/lib/methods/getRepoPackageJsonPath.d.cts +0 -6
  88. package/lib/methods/getRepoPackageJsonPath.d.ts +0 -6
  89. package/lib/methods/getRepoPackageJsonPath.js +0 -10
  90. package/lib/repo/Workspace.cjs +0 -383
  91. package/lib/repo/Workspace.d.cts +0 -10
  92. package/lib/repo/Workspace.d.ts +0 -10
  93. package/lib/repo/Workspace.js +0 -376
  94. package/lib/util/SemanticExtnamePrefix.cjs +0 -12
  95. package/lib/util/SemanticExtnamePrefix.d.cts +0 -14
  96. package/lib/util/SemanticExtnamePrefix.d.ts +0 -14
  97. package/lib/util/SemanticExtnamePrefix.js +0 -12
  98. package/lib/util/SemanticExtnamePrefixDescriptions.cjs +0 -12
  99. package/lib/util/SemanticExtnamePrefixDescriptions.d.cts +0 -15
  100. package/lib/util/SemanticExtnamePrefixDescriptions.d.ts +0 -15
  101. package/lib/util/SemanticExtnamePrefixDescriptions.js +0 -12
  102. package/lib/util/SemanticExtnamePrefixes.cjs +0 -9
  103. package/lib/util/SemanticExtnamePrefixes.d.cts +0 -97
  104. package/lib/util/SemanticExtnamePrefixes.d.ts +0 -97
  105. package/lib/util/SemanticExtnamePrefixes.js +0 -6
  106. package/lib/util/getRepoRootDirpath.cjs +0 -30
  107. package/lib/util/getRepoRootDirpath.d.cts +0 -6
  108. package/lib/util/getRepoRootDirpath.d.ts +0 -6
  109. package/lib/util/getRepoRootDirpath.js +0 -21
  110. package/lib/util/getWorkspaceDirpaths.cjs +0 -27
  111. package/lib/util/getWorkspaceDirpaths.d.cts +0 -6
  112. package/lib/util/getWorkspaceDirpaths.d.ts +0 -6
  113. package/lib/util/getWorkspaceDirpaths.js +0 -19
  114. package/lib/util/hasExtnamePrefix.cjs +0 -18
  115. package/lib/util/hasExtnamePrefix.d.cts +0 -38
  116. package/lib/util/hasExtnamePrefix.d.ts +0 -38
  117. package/lib/util/hasExtnamePrefix.js +0 -11
  118. package/lib/util/resolveModuleImportPath.cjs +0 -34
  119. package/lib/util/resolveModuleImportPath.d.cts +0 -8
  120. package/lib/util/resolveModuleImportPath.d.ts +0 -8
  121. package/lib/util/resolveModuleImportPath.js +0 -26
  122. package/lib/util/semverVersionBump.cjs +0 -28
  123. package/lib/util/semverVersionBump.d.cts +0 -22
  124. package/lib/util/semverVersionBump.d.ts +0 -22
  125. package/lib/util/semverVersionBump.js +0 -26
@@ -1,42 +0,0 @@
1
- 'use strict';
2
-
3
- var composition = require('@mono/composition');
4
- var TsCode = require('../code/TsCode');
5
- var TsFile = require('./TsFile');
6
- var decorators = require('@mono/decorators');
7
-
8
- var __defProp = Object.defineProperty;
9
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
10
- function _ts_decorate(decorators, target, key, desc) {
11
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
12
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
13
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
14
- return c > 3 && r && Object.defineProperty(target, key, r), r;
15
- }
16
- __name(_ts_decorate, "_ts_decorate");
17
- function _ts_metadata(k, v) {
18
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
19
- }
20
- __name(_ts_metadata, "_ts_metadata");
21
- class TestFile extends TsFile.TsFile {
22
- static {
23
- __name(this, "TestFile");
24
- }
25
- static inspector = composition.Inspector.compose(TsFile.TsFile, {});
26
- get tsCode() {
27
- return new TsCode.TsCode(this, this.readFile());
28
- }
29
- get dependencies() {
30
- return this.tsCode.dependencies;
31
- }
32
- }
33
- _ts_decorate([
34
- decorators.lazyProp(5e3),
35
- _ts_metadata("design:type", typeof TsCode.TsCode === "undefined" ? Object : TsCode.TsCode),
36
- _ts_metadata("design:paramtypes", [])
37
- ], TestFile.prototype, "tsCode", null);
38
- TestFile = _ts_decorate([
39
- composition.Parenting.compose
40
- ], TestFile);
41
-
42
- exports.TestFile = TestFile;
@@ -1,10 +0,0 @@
1
- import '../AbstractBase-J4h6nW8k.cjs';
2
- export { T as TestFile } from '../MonoRepo-BgdabVzT.cjs';
3
- import 'util';
4
- import 'mnemonist';
5
- import '../is-never.d-CgQ1j0-8.cjs';
6
- import 'typescript';
7
- import 'depcheck';
8
- import '../code/AbstractCode.cjs';
9
- import '../code/CodeBlock.cjs';
10
- import 'fs';
@@ -1,10 +0,0 @@
1
- import '../AbstractBase-J4h6nW8k.js';
2
- export { T as TestFile } from '../MonoRepo-BFFUDAYn.js';
3
- import 'util';
4
- import 'mnemonist';
5
- import '../is-never.d-CgQ1j0-8.js';
6
- import 'typescript';
7
- import 'depcheck';
8
- import '../code/AbstractCode.js';
9
- import '../code/CodeBlock.js';
10
- import 'fs';
@@ -1,39 +0,0 @@
1
- import { __name } from '../chunk-SHUYVCID.js';
2
- import { Inspector, Parenting } from '@mono/composition';
3
- import { TsCode } from '../code/TsCode';
4
- import { TsFile } from './TsFile';
5
- import { lazyProp } from '@mono/decorators';
6
-
7
- function _ts_decorate(decorators, target, key, desc) {
8
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
11
- return c > 3 && r && Object.defineProperty(target, key, r), r;
12
- }
13
- __name(_ts_decorate, "_ts_decorate");
14
- function _ts_metadata(k, v) {
15
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
16
- }
17
- __name(_ts_metadata, "_ts_metadata");
18
- class TestFile extends TsFile {
19
- static {
20
- __name(this, "TestFile");
21
- }
22
- static inspector = Inspector.compose(TsFile, {});
23
- get tsCode() {
24
- return new TsCode(this, this.readFile());
25
- }
26
- get dependencies() {
27
- return this.tsCode.dependencies;
28
- }
29
- }
30
- _ts_decorate([
31
- lazyProp(5e3),
32
- _ts_metadata("design:type", typeof TsCode === "undefined" ? Object : TsCode),
33
- _ts_metadata("design:paramtypes", [])
34
- ], TestFile.prototype, "tsCode", null);
35
- TestFile = _ts_decorate([
36
- Parenting.compose
37
- ], TestFile);
38
-
39
- export { TestFile };
@@ -1,46 +0,0 @@
1
- 'use strict';
2
-
3
- var File = require('./File');
4
- var composition = require('@mono/composition');
5
- var TsCode = require('../code/TsCode');
6
- var decorators = require('@mono/decorators');
7
-
8
- var __defProp = Object.defineProperty;
9
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
10
- function _ts_decorate(decorators, target, key, desc) {
11
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
12
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
13
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
14
- return c > 3 && r && Object.defineProperty(target, key, r), r;
15
- }
16
- __name(_ts_decorate, "_ts_decorate");
17
- function _ts_metadata(k, v) {
18
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
19
- }
20
- __name(_ts_metadata, "_ts_metadata");
21
- class TsFile extends File.File {
22
- static {
23
- __name(this, "TsFile");
24
- }
25
- static inspector = composition.Inspector.compose(TsFile, {
26
- keys: [
27
- "tsCode"
28
- ]
29
- });
30
- get tsCode() {
31
- return new TsCode.TsCode(this, this.readFile());
32
- }
33
- get dependencies() {
34
- return this.tsCode.dependencies;
35
- }
36
- }
37
- _ts_decorate([
38
- decorators.lazyProp(5e3),
39
- _ts_metadata("design:type", typeof TsCode.TsCode === "undefined" ? Object : TsCode.TsCode),
40
- _ts_metadata("design:paramtypes", [])
41
- ], TsFile.prototype, "tsCode", null);
42
- TsFile = _ts_decorate([
43
- composition.Parenting.compose
44
- ], TsFile);
45
-
46
- exports.TsFile = TsFile;
@@ -1,10 +0,0 @@
1
- import '../AbstractBase-J4h6nW8k.cjs';
2
- export { f as TsFile } from '../MonoRepo-BgdabVzT.cjs';
3
- import 'util';
4
- import 'mnemonist';
5
- import '../is-never.d-CgQ1j0-8.cjs';
6
- import 'typescript';
7
- import 'depcheck';
8
- import '../code/AbstractCode.cjs';
9
- import '../code/CodeBlock.cjs';
10
- import 'fs';
@@ -1,10 +0,0 @@
1
- import '../AbstractBase-J4h6nW8k.js';
2
- export { f as TsFile } from '../MonoRepo-BFFUDAYn.js';
3
- import 'util';
4
- import 'mnemonist';
5
- import '../is-never.d-CgQ1j0-8.js';
6
- import 'typescript';
7
- import 'depcheck';
8
- import '../code/AbstractCode.js';
9
- import '../code/CodeBlock.js';
10
- import 'fs';
@@ -1,43 +0,0 @@
1
- import { __name } from '../chunk-SHUYVCID.js';
2
- import { File } from './File';
3
- import { Inspector, Parenting } from '@mono/composition';
4
- import { TsCode } from '../code/TsCode';
5
- import { lazyProp } from '@mono/decorators';
6
-
7
- function _ts_decorate(decorators, target, key, desc) {
8
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
11
- return c > 3 && r && Object.defineProperty(target, key, r), r;
12
- }
13
- __name(_ts_decorate, "_ts_decorate");
14
- function _ts_metadata(k, v) {
15
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
16
- }
17
- __name(_ts_metadata, "_ts_metadata");
18
- class TsFile extends File {
19
- static {
20
- __name(this, "TsFile");
21
- }
22
- static inspector = Inspector.compose(TsFile, {
23
- keys: [
24
- "tsCode"
25
- ]
26
- });
27
- get tsCode() {
28
- return new TsCode(this, this.readFile());
29
- }
30
- get dependencies() {
31
- return this.tsCode.dependencies;
32
- }
33
- }
34
- _ts_decorate([
35
- lazyProp(5e3),
36
- _ts_metadata("design:type", typeof TsCode === "undefined" ? Object : TsCode),
37
- _ts_metadata("design:paramtypes", [])
38
- ], TsFile.prototype, "tsCode", null);
39
- TsFile = _ts_decorate([
40
- Parenting.compose
41
- ], TsFile);
42
-
43
- export { TsFile };
@@ -1,17 +0,0 @@
1
- 'use strict';
2
-
3
- var getAllWorkspacePackageNames = require('./getAllWorkspacePackageNames');
4
-
5
- var __defProp = Object.defineProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- async function findWorkspacePackageName(name) {
8
- const wsPkgNames = await getAllWorkspacePackageNames.getAllWorkspacePackageNames();
9
- return wsPkgNames.find((n) => {
10
- return n === name;
11
- }) || wsPkgNames.find((n) => {
12
- return n === `@mono/${name}`;
13
- });
14
- }
15
- __name(findWorkspacePackageName, "findWorkspacePackageName");
16
-
17
- exports.findWorkspacePackageName = findWorkspacePackageName;
@@ -1,6 +0,0 @@
1
- /**
2
- * Finds the full package name for a workspace given a partial name.
3
- */
4
- declare function findWorkspacePackageName(name: string): Promise<string | undefined>;
5
-
6
- export { findWorkspacePackageName };
@@ -1,6 +0,0 @@
1
- /**
2
- * Finds the full package name for a workspace given a partial name.
3
- */
4
- declare function findWorkspacePackageName(name: string): Promise<string | undefined>;
5
-
6
- export { findWorkspacePackageName };
@@ -1,14 +0,0 @@
1
- import { __name } from '../chunk-SHUYVCID.js';
2
- import { getAllWorkspacePackageNames } from './getAllWorkspacePackageNames';
3
-
4
- async function findWorkspacePackageName(name) {
5
- const wsPkgNames = await getAllWorkspacePackageNames();
6
- return wsPkgNames.find((n) => {
7
- return n === name;
8
- }) || wsPkgNames.find((n) => {
9
- return n === `@mono/${name}`;
10
- });
11
- }
12
- __name(findWorkspacePackageName, "findWorkspacePackageName");
13
-
14
- export { findWorkspacePackageName };
@@ -1,18 +0,0 @@
1
- 'use strict';
2
-
3
- var __defProp = Object.defineProperty;
4
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
5
- function getAllImports(repo) {
6
- return repo.workspaces.flatMap((ws) => {
7
- return ws.tsFiles.filter((ts) => {
8
- return ts.isSourceFile;
9
- }).flatMap((ts) => {
10
- return ts.tsCode.imports.flatMap((imp) => {
11
- return imp;
12
- });
13
- });
14
- });
15
- }
16
- __name(getAllImports, "getAllImports");
17
-
18
- exports.getAllImports = getAllImports;
@@ -1,17 +0,0 @@
1
- import { d as MonoRepo, b as ImportStatement, e as TsCode, f as TsFile, W as Workspace } from '../MonoRepo-BgdabVzT.cjs';
2
- import '../AbstractBase-J4h6nW8k.cjs';
3
- import '../is-never.d-CgQ1j0-8.cjs';
4
- import 'typescript';
5
- import 'depcheck';
6
- import '../code/AbstractCode.cjs';
7
- import '../code/CodeBlock.cjs';
8
- import 'fs';
9
- import 'util';
10
- import 'mnemonist';
11
-
12
- /**
13
- * Retrieves all import statements from TypeScript source files across all workspaces in the monorepo.
14
- */
15
- declare function getAllImports(repo: MonoRepo): ImportStatement<TsCode<TsFile<Workspace<MonoRepo<null>>>>>[];
16
-
17
- export { getAllImports };
@@ -1,17 +0,0 @@
1
- import { d as MonoRepo, b as ImportStatement, e as TsCode, f as TsFile, W as Workspace } from '../MonoRepo-BFFUDAYn.js';
2
- import '../AbstractBase-J4h6nW8k.js';
3
- import '../is-never.d-CgQ1j0-8.js';
4
- import 'typescript';
5
- import 'depcheck';
6
- import '../code/AbstractCode.js';
7
- import '../code/CodeBlock.js';
8
- import 'fs';
9
- import 'util';
10
- import 'mnemonist';
11
-
12
- /**
13
- * Retrieves all import statements from TypeScript source files across all workspaces in the monorepo.
14
- */
15
- declare function getAllImports(repo: MonoRepo): ImportStatement<TsCode<TsFile<Workspace<MonoRepo<null>>>>>[];
16
-
17
- export { getAllImports };
@@ -1,16 +0,0 @@
1
- import { __name } from '../chunk-SHUYVCID.js';
2
-
3
- function getAllImports(repo) {
4
- return repo.workspaces.flatMap((ws) => {
5
- return ws.tsFiles.filter((ts) => {
6
- return ts.isSourceFile;
7
- }).flatMap((ts) => {
8
- return ts.tsCode.imports.flatMap((imp) => {
9
- return imp;
10
- });
11
- });
12
- });
13
- }
14
- __name(getAllImports, "getAllImports");
15
-
16
- export { getAllImports };
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- var getAllWorkspacePaths = require('./getAllWorkspacePaths');
4
- var upath = require('upath');
5
-
6
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
-
8
- var upath__default = /*#__PURE__*/_interopDefault(upath);
9
-
10
- var __defProp = Object.defineProperty;
11
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
12
- async function getAllWorkspacePackageJsonPaths() {
13
- const paths = await getAllWorkspacePaths.getAllWorkspacePaths();
14
- return paths.map((p) => {
15
- return upath__default.default.join(p, "package.json");
16
- });
17
- }
18
- __name(getAllWorkspacePackageJsonPaths, "getAllWorkspacePackageJsonPaths");
19
-
20
- exports.getAllWorkspacePackageJsonPaths = getAllWorkspacePackageJsonPaths;
@@ -1,6 +0,0 @@
1
- /**
2
- * Gets all workspace package.json file paths.
3
- */
4
- declare function getAllWorkspacePackageJsonPaths(): Promise<string[]>;
5
-
6
- export { getAllWorkspacePackageJsonPaths };
@@ -1,6 +0,0 @@
1
- /**
2
- * Gets all workspace package.json file paths.
3
- */
4
- declare function getAllWorkspacePackageJsonPaths(): Promise<string[]>;
5
-
6
- export { getAllWorkspacePackageJsonPaths };
@@ -1,13 +0,0 @@
1
- import { __name } from '../chunk-SHUYVCID.js';
2
- import { getAllWorkspacePaths } from './getAllWorkspacePaths';
3
- import upath from 'upath';
4
-
5
- async function getAllWorkspacePackageJsonPaths() {
6
- const paths = await getAllWorkspacePaths();
7
- return paths.map((p) => {
8
- return upath.join(p, "package.json");
9
- });
10
- }
11
- __name(getAllWorkspacePackageJsonPaths, "getAllWorkspacePackageJsonPaths");
12
-
13
- export { getAllWorkspacePackageJsonPaths };
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- var fs = require('fs-extra');
4
- var getAllWorkspacePackageJsonPaths = require('./getAllWorkspacePackageJsonPaths');
5
-
6
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
-
8
- var fs__default = /*#__PURE__*/_interopDefault(fs);
9
-
10
- var __defProp = Object.defineProperty;
11
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
12
- async function getAllWorkspacePackageJsons() {
13
- const paths = await getAllWorkspacePackageJsonPaths.getAllWorkspacePackageJsonPaths();
14
- return paths.map((p) => {
15
- return fs__default.default.readJsonSync(p);
16
- });
17
- }
18
- __name(getAllWorkspacePackageJsons, "getAllWorkspacePackageJsons");
19
-
20
- exports.getAllWorkspacePackageJsons = getAllWorkspacePackageJsons;
@@ -1,6 +0,0 @@
1
- /**
2
- * Gets all workspace package.json contents.
3
- */
4
- declare function getAllWorkspacePackageJsons(): Promise<any[]>;
5
-
6
- export { getAllWorkspacePackageJsons };
@@ -1,6 +0,0 @@
1
- /**
2
- * Gets all workspace package.json contents.
3
- */
4
- declare function getAllWorkspacePackageJsons(): Promise<any[]>;
5
-
6
- export { getAllWorkspacePackageJsons };
@@ -1,13 +0,0 @@
1
- import { __name } from '../chunk-SHUYVCID.js';
2
- import fs from 'fs-extra';
3
- import { getAllWorkspacePackageJsonPaths } from './getAllWorkspacePackageJsonPaths';
4
-
5
- async function getAllWorkspacePackageJsons() {
6
- const paths = await getAllWorkspacePackageJsonPaths();
7
- return paths.map((p) => {
8
- return fs.readJsonSync(p);
9
- });
10
- }
11
- __name(getAllWorkspacePackageJsons, "getAllWorkspacePackageJsons");
12
-
13
- export { getAllWorkspacePackageJsons };
@@ -1,15 +0,0 @@
1
- 'use strict';
2
-
3
- var getAllWorkspacePackageJsons = require('./getAllWorkspacePackageJsons');
4
-
5
- var __defProp = Object.defineProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- async function getAllWorkspacePackageNames() {
8
- const pkgs = await getAllWorkspacePackageJsons.getAllWorkspacePackageJsons();
9
- return pkgs.map((p) => {
10
- return p.name;
11
- });
12
- }
13
- __name(getAllWorkspacePackageNames, "getAllWorkspacePackageNames");
14
-
15
- exports.getAllWorkspacePackageNames = getAllWorkspacePackageNames;
@@ -1,6 +0,0 @@
1
- /**
2
- * Gets all workspace package names.
3
- */
4
- declare function getAllWorkspacePackageNames(): Promise<string[]>;
5
-
6
- export { getAllWorkspacePackageNames };
@@ -1,6 +0,0 @@
1
- /**
2
- * Gets all workspace package names.
3
- */
4
- declare function getAllWorkspacePackageNames(): Promise<string[]>;
5
-
6
- export { getAllWorkspacePackageNames };
@@ -1,12 +0,0 @@
1
- import { __name } from '../chunk-SHUYVCID.js';
2
- import { getAllWorkspacePackageJsons } from './getAllWorkspacePackageJsons';
3
-
4
- async function getAllWorkspacePackageNames() {
5
- const pkgs = await getAllWorkspacePackageJsons();
6
- return pkgs.map((p) => {
7
- return p.name;
8
- });
9
- }
10
- __name(getAllWorkspacePackageNames, "getAllWorkspacePackageNames");
11
-
12
- export { getAllWorkspacePackageNames };
@@ -1,23 +0,0 @@
1
- 'use strict';
2
-
3
- var getRepoPackageJson = require('./getRepoPackageJson');
4
- var glob = require('glob');
5
- var upath = require('upath');
6
-
7
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
-
9
- var upath__default = /*#__PURE__*/_interopDefault(upath);
10
-
11
- var __defProp = Object.defineProperty;
12
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
13
- async function getAllWorkspacePaths() {
14
- const pkg = await getRepoPackageJson.getRepoPackageJson();
15
- return (await Promise.all(pkg.workspaces.map((pattern) => {
16
- return glob.glob(pattern);
17
- }))).flat().map((fp) => {
18
- return upath__default.default.normalizeSafe(fp);
19
- });
20
- }
21
- __name(getAllWorkspacePaths, "getAllWorkspacePaths");
22
-
23
- exports.getAllWorkspacePaths = getAllWorkspacePaths;
@@ -1,6 +0,0 @@
1
- /**
2
- * Returns an array of all workspace directory paths.
3
- */
4
- declare function getAllWorkspacePaths(): Promise<string[]>;
5
-
6
- export { getAllWorkspacePaths };
@@ -1,6 +0,0 @@
1
- /**
2
- * Returns an array of all workspace directory paths.
3
- */
4
- declare function getAllWorkspacePaths(): Promise<string[]>;
5
-
6
- export { getAllWorkspacePaths };
@@ -1,16 +0,0 @@
1
- import { __name } from '../chunk-SHUYVCID.js';
2
- import { getRepoPackageJson } from './getRepoPackageJson';
3
- import { glob } from 'glob';
4
- import upath from 'upath';
5
-
6
- async function getAllWorkspacePaths() {
7
- const pkg = await getRepoPackageJson();
8
- return (await Promise.all(pkg.workspaces.map((pattern) => {
9
- return glob(pattern);
10
- }))).flat().map((fp) => {
11
- return upath.normalizeSafe(fp);
12
- });
13
- }
14
- __name(getAllWorkspacePaths, "getAllWorkspacePaths");
15
-
16
- export { getAllWorkspacePaths };