@semrel-extra/topo
Advanced tools
Comparing version 1.4.4 to 1.5.0
@@ -0,1 +1,6 @@ | ||
## [1.5.0](https://github.com/semrel-extra/topo/compare/v1.4.4...v1.5.0) (2023-02-24) | ||
### Features | ||
* feat: mix toposource `graphs` to result ([db00d12](https://github.com/semrel-extra/topo/commit/db00d128d584d57cea9012a7f475cbdcba515958)) | ||
## [1.4.4](https://github.com/semrel-extra/topo/compare/v1.4.3...v1.4.4) (2023-01-05) | ||
@@ -2,0 +7,0 @@ |
{ | ||
"name": "@semrel-extra/topo", | ||
"version": "1.4.4", | ||
"version": "1.5.0", | ||
"description": "Helper to resolve monorepo dependencies graph", | ||
@@ -53,19 +53,18 @@ "publishConfig": { | ||
"dependencies": { | ||
"@types/toposort": "^2.0.3", | ||
"fast-glob": "^3.2.12", | ||
"toposort": "^2.0.2", | ||
"tslib": "^2.4.1" | ||
"toposource": "^1.1.1", | ||
"tslib": "^2.5.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^18.11.18", | ||
"@types/micromatch": "^4.0.2", | ||
"c8": "^7.12.0", | ||
"esbuild": "^0.16.14", | ||
"@types/node": "^18.14.1", | ||
"c8": "^7.13.0", | ||
"esbuild": "^0.17.10", | ||
"esbuild-node-externals": "^1.6.0", | ||
"loadr": "^0.1.1", | ||
"micromatch": "^4.0.5", | ||
"prettier": "^2.8.1", | ||
"tsc-esm-fix": "^2.20.8", | ||
"prettier": "^2.8.4", | ||
"tsc-esm-fix": "^2.20.12", | ||
"tsm": "^2.3.0", | ||
"typescript": "^4.9.4", | ||
"typescript": "^4.9.5", | ||
"uvu": "^0.5.6" | ||
@@ -72,0 +71,0 @@ }, |
@@ -1,30 +0,3 @@ | ||
export interface IPackageJson { | ||
name: string; | ||
workspaces?: string[]; | ||
dependencies?: Record<string, string>; | ||
devDependencies?: Record<string, string>; | ||
optionalDependencies?: Record<string, string>; | ||
peerDependencies?: Record<string, string>; | ||
} | ||
export interface IPackageEntry { | ||
name: string; | ||
manifest: IPackageJson; | ||
manifestPath: string; | ||
path: string; | ||
absPath: string; | ||
relPath: string; | ||
} | ||
export type ITopoOptions = Partial<ITopoOptionsNormalized>; | ||
export type ITopoOptionsNormalized = { | ||
workspaces: string[]; | ||
cwd: string; | ||
filter: (entry: IPackageEntry) => boolean; | ||
}; | ||
export interface ITopoContext { | ||
packages: Record<string, IPackageEntry>; | ||
queue: string[]; | ||
nodes: string[]; | ||
edges: [string, string | undefined][]; | ||
root: IPackageEntry; | ||
} | ||
import { ITopoOptionsNormalized, IPackageEntry, IPackageJson, ITopoOptions, ITopoContext } from './interface'; | ||
export * from './interface'; | ||
export declare const getPackages: (options: ITopoOptionsNormalized) => Promise<Record<string, IPackageEntry>>; | ||
@@ -35,5 +8,5 @@ export declare const getRootPackage: (cwd: string) => Promise<IPackageEntry>; | ||
nodes: string[]; | ||
edges: [string, string | undefined][]; | ||
edges: [string, string][]; | ||
}; | ||
export declare const getManifestsPaths: ({ workspaces, cwd }: ITopoOptionsNormalized) => Promise<string[]>; | ||
export declare const slash: (path: string) => string; |
@@ -1,30 +0,3 @@ | ||
export interface IPackageJson { | ||
name: string; | ||
workspaces?: string[]; | ||
dependencies?: Record<string, string>; | ||
devDependencies?: Record<string, string>; | ||
optionalDependencies?: Record<string, string>; | ||
peerDependencies?: Record<string, string>; | ||
} | ||
export interface IPackageEntry { | ||
name: string; | ||
manifest: IPackageJson; | ||
manifestPath: string; | ||
path: string; | ||
absPath: string; | ||
relPath: string; | ||
} | ||
export type ITopoOptions = Partial<ITopoOptionsNormalized>; | ||
export type ITopoOptionsNormalized = { | ||
workspaces: string[]; | ||
cwd: string; | ||
filter: (entry: IPackageEntry) => boolean; | ||
}; | ||
export interface ITopoContext { | ||
packages: Record<string, IPackageEntry>; | ||
queue: string[]; | ||
nodes: string[]; | ||
edges: [string, string | undefined][]; | ||
root: IPackageEntry; | ||
} | ||
import { ITopoOptionsNormalized, IPackageEntry, IPackageJson, ITopoOptions, ITopoContext } from './interface'; | ||
export * from './interface'; | ||
export declare const getPackages: (options: ITopoOptionsNormalized) => Promise<Record<string, IPackageEntry>>; | ||
@@ -35,5 +8,5 @@ export declare const getRootPackage: (cwd: string) => Promise<IPackageEntry>; | ||
nodes: string[]; | ||
edges: [string, string | undefined][]; | ||
edges: [string, string][]; | ||
}; | ||
export declare const getManifestsPaths: ({ workspaces, cwd }: ITopoOptionsNormalized) => Promise<string[]>; | ||
export declare const slash: (path: string) => string; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19321
3
10
369
+ Addedtoposource@^1.1.1
+ Addedtoposource@1.2.0(transitive)
- Removed@types/toposort@^2.0.3
- Removedtoposort@^2.0.2
- Removed@types/toposort@2.0.7(transitive)
- Removedtoposort@2.0.2(transitive)
Updatedtslib@^2.5.0