Skip to content

Commit 86ab52c

Browse files
committed
fix: Made declarationOnly optional for aliases resource. Made git installable
1 parent f8afacc commit 86ab52c

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "default",
3-
"version": "0.17.0-beta9",
3+
"version": "0.17.0-beta10",
44
"description": "",
55
"main": "dist/index.js",
66
"scripts": {

src/resources/git/git/git-resource.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getPty, Resource, ResourceSettings, SpawnStatus } from '@codifycli/plugin-core';
1+
import { Resource, ResourceSettings, SpawnStatus, Utils, getPty } from '@codifycli/plugin-core';
22
import { OS, StringIndexedObject } from 'codify-schemas';
33

44
import { GitEmailParameter } from './git-email-paramater.js';
@@ -33,10 +33,10 @@ export class GitResource extends Resource<GitConfig> {
3333
}
3434

3535
async create(): Promise<void> {
36-
// Git should always be installed with xcode tools. Nothing to do here.
36+
await Utils.installViaPkgMgr('git');
3737
}
3838

3939
async destroy(): Promise<void> {
40-
// Don't uninstall git. It will break things.
40+
await Utils.uninstallViaPkgMgr('git');
4141
}
4242
}

src/resources/shell/aliases/aliases-resource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const schema = z.object({
3131
}))
3232
.describe('Aliases to create')
3333
.optional(),
34-
declarationsOnly: z.boolean().default(false),
34+
declarationsOnly: z.boolean().optional().default(false),
3535
})
3636

3737
export type AliasesConfig = z.infer<typeof schema>;

0 commit comments

Comments
 (0)