diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 00000000..03d9549e --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index f4b3b0aa..3667ca49 100644 --- a/src/index.ts +++ b/src/index.ts @@ -15,7 +15,7 @@ import { Project } from './project/project.ts'; // Fetch base git.setup(inputs.projectRoot); - await git.fetch('origin', inputs.base, '--progress', '--depth=1') + await git.fetch('origin', inputs.base, '--progress', '--depth=1'); // Get workspace const project = new Project(inputs.projectRoot); diff --git a/src/project/project.ts b/src/project/project.ts index 7a4dc80f..9d7a527a 100644 --- a/src/project/project.ts +++ b/src/project/project.ts @@ -90,7 +90,7 @@ export class Project { const { workspaces = [] } = main.manifest; for (const pattern of workspaces) { - const globber = await glob.create(path.join(this.root, pattern), { matchDirectories: true }) + const globber = await glob.create(path.join(this.root, pattern), { matchDirectories: true }); for await (const dir of globber.globGenerator()) { try { diff --git a/src/project/workspace.ts b/src/project/workspace.ts index efcac6b9..bea58dc6 100644 --- a/src/project/workspace.ts +++ b/src/project/workspace.ts @@ -115,6 +115,6 @@ export class Workspace { } get reference(): string { - return qstr`${this.name}#?:${this.version}@#$?#` + return qstr`${this.name}#?:${this.version}@#$?#`; } } diff --git a/tests/project/workspace.test.ts b/tests/project/workspace.test.ts index 09a7f744..84ef6639 100644 --- a/tests/project/workspace.test.ts +++ b/tests/project/workspace.test.ts @@ -113,8 +113,8 @@ describe('Workspace.isAffected', () => { }); it('should return true as tested workspace is not affected but its dependencies are', async () => { - vi.spyOn(wksA, 'dependencies').mockImplementation(async function* () { yield wksB }); - vi.spyOn(wksA, 'devDependencies').mockImplementation(async function* () { yield wksC }); + vi.spyOn(wksA, 'dependencies').mockImplementation(async function* () { yield wksB; }); + vi.spyOn(wksA, 'devDependencies').mockImplementation(async function* () { yield wksC; }); vi.spyOn(wksB, 'isAffected').mockResolvedValue(true); vi.spyOn(wksC, 'isAffected').mockResolvedValue(false); @@ -128,8 +128,8 @@ describe('Workspace.isAffected', () => { }); it('should return true as tested workspace is not affected but its devDependencies are', async () => { - vi.spyOn(wksA, 'dependencies').mockImplementation(async function* () { yield wksB }); - vi.spyOn(wksA, 'devDependencies').mockImplementation(async function* () { yield wksC }); + vi.spyOn(wksA, 'dependencies').mockImplementation(async function* () { yield wksB; }); + vi.spyOn(wksA, 'devDependencies').mockImplementation(async function* () { yield wksC; }); vi.spyOn(wksB, 'isAffected').mockResolvedValue(false); vi.spyOn(wksC, 'isAffected').mockResolvedValue(true);