@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.
- package/lib/index.cjs +2496 -213
- package/lib/index.d.cts +2765 -26
- package/lib/index.d.ts +2765 -26
- package/lib/index.js +2469 -30
- package/package.json +178 -297
- package/lib/MonoRepo.cjs +0 -142
- package/lib/MonoRepo.d.cts +0 -10
- package/lib/MonoRepo.d.ts +0 -10
- package/lib/MonoRepo.js +0 -134
- package/lib/code/AbstractCode.cjs +0 -77
- package/lib/code/AbstractCode.d.cts +0 -30
- package/lib/code/AbstractCode.d.ts +0 -30
- package/lib/code/AbstractCode.js +0 -74
- package/lib/code/CodeBlock.cjs +0 -51
- package/lib/code/CodeBlock.d.cts +0 -22
- package/lib/code/CodeBlock.d.ts +0 -22
- package/lib/code/CodeBlock.js +0 -48
- package/lib/code/TsCode.cjs +0 -90
- package/lib/code/TsCode.d.cts +0 -10
- package/lib/code/TsCode.d.ts +0 -10
- package/lib/code/TsCode.js +0 -87
- package/lib/code/imports/ImportKeywords.cjs +0 -42
- package/lib/code/imports/ImportKeywords.d.cts +0 -10
- package/lib/code/imports/ImportKeywords.d.ts +0 -10
- package/lib/code/imports/ImportKeywords.js +0 -39
- package/lib/code/imports/ImportSpecifiers.cjs +0 -98
- package/lib/code/imports/ImportSpecifiers.d.cts +0 -10
- package/lib/code/imports/ImportSpecifiers.d.ts +0 -10
- package/lib/code/imports/ImportSpecifiers.js +0 -95
- package/lib/code/imports/ImportStatement.cjs +0 -89
- package/lib/code/imports/ImportStatement.d.cts +0 -10
- package/lib/code/imports/ImportStatement.d.ts +0 -10
- package/lib/code/imports/ImportStatement.js +0 -86
- package/lib/code/imports/ModuleSpecifier.cjs +0 -77
- package/lib/code/imports/ModuleSpecifier.d.cts +0 -10
- package/lib/code/imports/ModuleSpecifier.d.ts +0 -10
- package/lib/code/imports/ModuleSpecifier.js +0 -74
- package/lib/common/AbstractBase.cjs +0 -77
- package/lib/common/AbstractBase.d.cts +0 -3
- package/lib/common/AbstractBase.d.ts +0 -3
- package/lib/common/AbstractBase.js +0 -74
- package/lib/file/File.cjs +0 -118
- package/lib/file/File.d.cts +0 -10
- package/lib/file/File.d.ts +0 -10
- package/lib/file/File.js +0 -91
- package/lib/file/TestFile.cjs +0 -42
- package/lib/file/TestFile.d.cts +0 -10
- package/lib/file/TestFile.d.ts +0 -10
- package/lib/file/TestFile.js +0 -39
- package/lib/file/TsFile.cjs +0 -46
- package/lib/file/TsFile.d.cts +0 -10
- package/lib/file/TsFile.d.ts +0 -10
- package/lib/file/TsFile.js +0 -43
- package/lib/methods/findWorkspacePackageName.cjs +0 -17
- package/lib/methods/findWorkspacePackageName.d.cts +0 -6
- package/lib/methods/findWorkspacePackageName.d.ts +0 -6
- package/lib/methods/findWorkspacePackageName.js +0 -14
- package/lib/methods/getAllImports.cjs +0 -18
- package/lib/methods/getAllImports.d.cts +0 -17
- package/lib/methods/getAllImports.d.ts +0 -17
- package/lib/methods/getAllImports.js +0 -16
- package/lib/methods/getAllWorkspacePackageJsonPaths.cjs +0 -20
- package/lib/methods/getAllWorkspacePackageJsonPaths.d.cts +0 -6
- package/lib/methods/getAllWorkspacePackageJsonPaths.d.ts +0 -6
- package/lib/methods/getAllWorkspacePackageJsonPaths.js +0 -13
- package/lib/methods/getAllWorkspacePackageJsons.cjs +0 -20
- package/lib/methods/getAllWorkspacePackageJsons.d.cts +0 -6
- package/lib/methods/getAllWorkspacePackageJsons.d.ts +0 -6
- package/lib/methods/getAllWorkspacePackageJsons.js +0 -13
- package/lib/methods/getAllWorkspacePackageNames.cjs +0 -15
- package/lib/methods/getAllWorkspacePackageNames.d.cts +0 -6
- package/lib/methods/getAllWorkspacePackageNames.d.ts +0 -6
- package/lib/methods/getAllWorkspacePackageNames.js +0 -12
- package/lib/methods/getAllWorkspacePaths.cjs +0 -23
- package/lib/methods/getAllWorkspacePaths.d.cts +0 -6
- package/lib/methods/getAllWorkspacePaths.d.ts +0 -6
- package/lib/methods/getAllWorkspacePaths.js +0 -16
- package/lib/methods/getImportsRecursively.cjs +0 -176
- package/lib/methods/getImportsRecursively.d.cts +0 -37
- package/lib/methods/getImportsRecursively.d.ts +0 -37
- package/lib/methods/getImportsRecursively.js +0 -168
- package/lib/methods/getRepoPackageJson.cjs +0 -17
- package/lib/methods/getRepoPackageJson.d.cts +0 -6
- package/lib/methods/getRepoPackageJson.d.ts +0 -6
- package/lib/methods/getRepoPackageJson.js +0 -10
- package/lib/methods/getRepoPackageJsonPath.cjs +0 -17
- package/lib/methods/getRepoPackageJsonPath.d.cts +0 -6
- package/lib/methods/getRepoPackageJsonPath.d.ts +0 -6
- package/lib/methods/getRepoPackageJsonPath.js +0 -10
- package/lib/repo/Workspace.cjs +0 -383
- package/lib/repo/Workspace.d.cts +0 -10
- package/lib/repo/Workspace.d.ts +0 -10
- package/lib/repo/Workspace.js +0 -376
- package/lib/util/SemanticExtnamePrefix.cjs +0 -12
- package/lib/util/SemanticExtnamePrefix.d.cts +0 -14
- package/lib/util/SemanticExtnamePrefix.d.ts +0 -14
- package/lib/util/SemanticExtnamePrefix.js +0 -12
- package/lib/util/SemanticExtnamePrefixDescriptions.cjs +0 -12
- package/lib/util/SemanticExtnamePrefixDescriptions.d.cts +0 -15
- package/lib/util/SemanticExtnamePrefixDescriptions.d.ts +0 -15
- package/lib/util/SemanticExtnamePrefixDescriptions.js +0 -12
- package/lib/util/SemanticExtnamePrefixes.cjs +0 -9
- package/lib/util/SemanticExtnamePrefixes.d.cts +0 -97
- package/lib/util/SemanticExtnamePrefixes.d.ts +0 -97
- package/lib/util/SemanticExtnamePrefixes.js +0 -6
- package/lib/util/getRepoRootDirpath.cjs +0 -30
- package/lib/util/getRepoRootDirpath.d.cts +0 -6
- package/lib/util/getRepoRootDirpath.d.ts +0 -6
- package/lib/util/getRepoRootDirpath.js +0 -21
- package/lib/util/getWorkspaceDirpaths.cjs +0 -27
- package/lib/util/getWorkspaceDirpaths.d.cts +0 -6
- package/lib/util/getWorkspaceDirpaths.d.ts +0 -6
- package/lib/util/getWorkspaceDirpaths.js +0 -19
- package/lib/util/hasExtnamePrefix.cjs +0 -18
- package/lib/util/hasExtnamePrefix.d.cts +0 -38
- package/lib/util/hasExtnamePrefix.d.ts +0 -38
- package/lib/util/hasExtnamePrefix.js +0 -11
- package/lib/util/resolveModuleImportPath.cjs +0 -34
- package/lib/util/resolveModuleImportPath.d.cts +0 -8
- package/lib/util/resolveModuleImportPath.d.ts +0 -8
- package/lib/util/resolveModuleImportPath.js +0 -26
- package/lib/util/semverVersionBump.cjs +0 -28
- package/lib/util/semverVersionBump.d.cts +0 -22
- package/lib/util/semverVersionBump.d.ts +0 -22
- package/lib/util/semverVersionBump.js +0 -26
package/lib/file/TestFile.cjs
DELETED
|
@@ -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;
|
package/lib/file/TestFile.d.cts
DELETED
|
@@ -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';
|
package/lib/file/TestFile.d.ts
DELETED
|
@@ -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';
|
package/lib/file/TestFile.js
DELETED
|
@@ -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 };
|
package/lib/file/TsFile.cjs
DELETED
|
@@ -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;
|
package/lib/file/TsFile.d.cts
DELETED
|
@@ -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';
|
package/lib/file/TsFile.d.ts
DELETED
|
@@ -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';
|
package/lib/file/TsFile.js
DELETED
|
@@ -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,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,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,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,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,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 };
|