@bemoje/monorepo 1.1.1 → 1.2.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/lib/MonoRepo.cjs +7370 -0
- package/lib/MonoRepo.d.cts +10 -0
- package/lib/MonoRepo.d.ts +10 -0
- package/lib/MonoRepo.js +7361 -0
- package/lib/code/AbstractCode.cjs +5568 -0
- package/lib/code/AbstractCode.d.cts +30 -0
- package/lib/code/AbstractCode.d.ts +30 -0
- package/lib/code/AbstractCode.js +5562 -0
- package/lib/code/CodeBlock.cjs +5614 -0
- package/lib/code/CodeBlock.d.cts +22 -0
- package/lib/code/CodeBlock.d.ts +22 -0
- package/lib/code/CodeBlock.js +5608 -0
- package/lib/code/TsCode.cjs +7370 -0
- package/lib/code/TsCode.d.cts +10 -0
- package/lib/code/TsCode.d.ts +10 -0
- package/lib/code/TsCode.js +7361 -0
- package/lib/code/imports/ImportKeywords.cjs +5652 -0
- package/lib/code/imports/ImportKeywords.d.cts +10 -0
- package/lib/code/imports/ImportKeywords.d.ts +10 -0
- package/lib/code/imports/ImportKeywords.js +5646 -0
- package/lib/code/imports/ImportSpecifiers.cjs +5708 -0
- package/lib/code/imports/ImportSpecifiers.d.cts +10 -0
- package/lib/code/imports/ImportSpecifiers.d.ts +10 -0
- package/lib/code/imports/ImportSpecifiers.js +5702 -0
- package/lib/code/imports/ImportStatement.cjs +7372 -0
- package/lib/code/imports/ImportStatement.d.cts +10 -0
- package/lib/code/imports/ImportStatement.d.ts +10 -0
- package/lib/code/imports/ImportStatement.js +7363 -0
- package/lib/code/imports/ModuleSpecifier.cjs +7372 -0
- package/lib/code/imports/ModuleSpecifier.d.cts +10 -0
- package/lib/code/imports/ModuleSpecifier.d.ts +10 -0
- package/lib/code/imports/ModuleSpecifier.js +7363 -0
- package/lib/common/AbstractBase.cjs +638 -0
- package/lib/common/AbstractBase.d.cts +3 -0
- package/lib/common/AbstractBase.d.ts +3 -0
- package/lib/common/AbstractBase.js +634 -0
- package/lib/file/File.cjs +5496 -0
- package/lib/file/File.d.cts +10 -0
- package/lib/file/File.d.ts +10 -0
- package/lib/file/File.js +5490 -0
- package/lib/file/TestFile.cjs +7368 -0
- package/lib/file/TestFile.d.cts +10 -0
- package/lib/file/TestFile.d.ts +10 -0
- package/lib/file/TestFile.js +7359 -0
- package/lib/file/TsFile.cjs +7368 -0
- package/lib/file/TsFile.d.cts +10 -0
- package/lib/file/TsFile.d.ts +10 -0
- package/lib/file/TsFile.js +7359 -0
- package/lib/index.cjs +7698 -0
- package/lib/index.d.cts +26 -0
- package/lib/index.d.ts +26 -0
- package/lib/index.js +7672 -0
- package/lib/methods/findWorkspacePackageName.cjs +86 -0
- package/lib/methods/findWorkspacePackageName.d.cts +6 -0
- package/lib/methods/findWorkspacePackageName.d.ts +6 -0
- package/lib/methods/findWorkspacePackageName.js +78 -0
- package/lib/methods/getAllImports.cjs +20 -0
- package/lib/methods/getAllImports.d.cts +17 -0
- package/lib/methods/getAllImports.d.ts +17 -0
- package/lib/methods/getAllImports.js +18 -0
- package/lib/methods/getAllWorkspacePackageJsonPaths.cjs +57 -0
- package/lib/methods/getAllWorkspacePackageJsonPaths.d.cts +6 -0
- package/lib/methods/getAllWorkspacePackageJsonPaths.d.ts +6 -0
- package/lib/methods/getAllWorkspacePackageJsonPaths.js +49 -0
- package/lib/methods/getAllWorkspacePackageJsons.cjs +66 -0
- package/lib/methods/getAllWorkspacePackageJsons.d.cts +6 -0
- package/lib/methods/getAllWorkspacePackageJsons.d.ts +6 -0
- package/lib/methods/getAllWorkspacePackageJsons.js +58 -0
- package/lib/methods/getAllWorkspacePackageNames.cjs +75 -0
- package/lib/methods/getAllWorkspacePackageNames.d.cts +6 -0
- package/lib/methods/getAllWorkspacePackageNames.d.ts +6 -0
- package/lib/methods/getAllWorkspacePackageNames.js +67 -0
- package/lib/methods/getAllWorkspacePaths.cjs +50 -0
- package/lib/methods/getAllWorkspacePaths.d.cts +6 -0
- package/lib/methods/getAllWorkspacePaths.d.ts +6 -0
- package/lib/methods/getAllWorkspacePaths.js +42 -0
- package/lib/methods/getImportsRecursively.cjs +7577 -0
- package/lib/methods/getImportsRecursively.d.cts +37 -0
- package/lib/methods/getImportsRecursively.d.ts +37 -0
- package/lib/methods/getImportsRecursively.js +7566 -0
- package/lib/methods/getRepoPackageJson.cjs +40 -0
- package/lib/methods/getRepoPackageJson.d.cts +6 -0
- package/lib/methods/getRepoPackageJson.d.ts +6 -0
- package/lib/methods/getRepoPackageJson.js +32 -0
- package/lib/methods/getRepoPackageJsonPath.cjs +34 -0
- package/lib/methods/getRepoPackageJsonPath.d.cts +6 -0
- package/lib/methods/getRepoPackageJsonPath.d.ts +6 -0
- package/lib/methods/getRepoPackageJsonPath.js +26 -0
- package/lib/repo/Workspace.cjs +7370 -0
- package/lib/repo/Workspace.d.cts +10 -0
- package/lib/repo/Workspace.d.ts +10 -0
- package/lib/repo/Workspace.js +7361 -0
- package/lib/util/SemanticExtnamePrefix.cjs +13 -0
- package/lib/util/SemanticExtnamePrefix.d.cts +14 -0
- package/lib/util/SemanticExtnamePrefix.d.ts +14 -0
- package/lib/util/SemanticExtnamePrefix.js +11 -0
- package/lib/util/SemanticExtnamePrefixDescriptions.cjs +13 -0
- package/lib/util/SemanticExtnamePrefixDescriptions.d.cts +15 -0
- package/lib/util/SemanticExtnamePrefixDescriptions.d.ts +15 -0
- package/lib/util/SemanticExtnamePrefixDescriptions.js +11 -0
- package/lib/util/SemanticExtnamePrefixes.cjs +18 -0
- package/lib/util/SemanticExtnamePrefixes.d.cts +97 -0
- package/lib/util/SemanticExtnamePrefixes.d.ts +97 -0
- package/lib/util/SemanticExtnamePrefixes.js +14 -0
- package/lib/util/getRepoRootDirpath.cjs +30 -0
- package/lib/util/getRepoRootDirpath.d.cts +6 -0
- package/lib/util/getRepoRootDirpath.d.ts +6 -0
- package/lib/util/getRepoRootDirpath.js +22 -0
- package/lib/util/getWorkspaceDirpaths.cjs +42 -0
- package/lib/util/getWorkspaceDirpaths.d.cts +6 -0
- package/lib/util/getWorkspaceDirpaths.d.ts +6 -0
- package/lib/util/getWorkspaceDirpaths.js +34 -0
- package/lib/util/hasExtnamePrefix.cjs +27 -0
- package/lib/util/hasExtnamePrefix.d.cts +38 -0
- package/lib/util/hasExtnamePrefix.d.ts +38 -0
- package/lib/util/hasExtnamePrefix.js +25 -0
- package/lib/util/resolveModuleImportPath.cjs +51 -0
- package/lib/util/resolveModuleImportPath.d.cts +8 -0
- package/lib/util/resolveModuleImportPath.d.ts +8 -0
- package/lib/util/resolveModuleImportPath.js +42 -0
- package/lib/util/semverVersionBump.cjs +30 -0
- package/lib/util/semverVersionBump.d.cts +22 -0
- package/lib/util/semverVersionBump.d.ts +22 -0
- package/lib/util/semverVersionBump.js +28 -0
- package/package.json +464 -31
- package/index.d.ts +0 -636
- package/index.mjs +0 -2321
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recursively retrieves all imports for the given entry points, categorizing them into external, builtin, and internal dependencies.
|
|
3
|
+
*
|
|
4
|
+
* @param entryPoints - An array of entry point file paths to analyze.
|
|
5
|
+
* @returns An object containing the file paths of all imports and categorized dependencies.
|
|
6
|
+
*/
|
|
7
|
+
declare function getImportsRecursively(entryPoints: string[]): Promise<Result>;
|
|
8
|
+
type Result = {
|
|
9
|
+
/**
|
|
10
|
+
* All file paths of the imports found recursively, in discovery order, starting from the entry points, including circular reference stops.
|
|
11
|
+
*/
|
|
12
|
+
filepaths: string[];
|
|
13
|
+
/**
|
|
14
|
+
* All workspace imports found recursively. Includes all `local` imports plus for any other worksapce imports discovered.
|
|
15
|
+
*/
|
|
16
|
+
recursive: {
|
|
17
|
+
/** External dependencies */
|
|
18
|
+
external: string[];
|
|
19
|
+
/** Built-in node dependencies */
|
|
20
|
+
builtin: string[];
|
|
21
|
+
/** Other repo workspaces */
|
|
22
|
+
internal: string[];
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Only workspace imports found in the same workspace as the entry points.
|
|
26
|
+
*/
|
|
27
|
+
local: {
|
|
28
|
+
/** External dependencies */
|
|
29
|
+
external: string[];
|
|
30
|
+
/** Built-in node dependencies */
|
|
31
|
+
builtin: string[];
|
|
32
|
+
/** Other repo workspaces */
|
|
33
|
+
internal: string[];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export { getImportsRecursively };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recursively retrieves all imports for the given entry points, categorizing them into external, builtin, and internal dependencies.
|
|
3
|
+
*
|
|
4
|
+
* @param entryPoints - An array of entry point file paths to analyze.
|
|
5
|
+
* @returns An object containing the file paths of all imports and categorized dependencies.
|
|
6
|
+
*/
|
|
7
|
+
declare function getImportsRecursively(entryPoints: string[]): Promise<Result>;
|
|
8
|
+
type Result = {
|
|
9
|
+
/**
|
|
10
|
+
* All file paths of the imports found recursively, in discovery order, starting from the entry points, including circular reference stops.
|
|
11
|
+
*/
|
|
12
|
+
filepaths: string[];
|
|
13
|
+
/**
|
|
14
|
+
* All workspace imports found recursively. Includes all `local` imports plus for any other worksapce imports discovered.
|
|
15
|
+
*/
|
|
16
|
+
recursive: {
|
|
17
|
+
/** External dependencies */
|
|
18
|
+
external: string[];
|
|
19
|
+
/** Built-in node dependencies */
|
|
20
|
+
builtin: string[];
|
|
21
|
+
/** Other repo workspaces */
|
|
22
|
+
internal: string[];
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Only workspace imports found in the same workspace as the entry points.
|
|
26
|
+
*/
|
|
27
|
+
local: {
|
|
28
|
+
/** External dependencies */
|
|
29
|
+
external: string[];
|
|
30
|
+
/** Built-in node dependencies */
|
|
31
|
+
builtin: string[];
|
|
32
|
+
/** Other repo workspaces */
|
|
33
|
+
internal: string[];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export { getImportsRecursively };
|