Skip to content

Commit

Permalink
Add gitBranch support and update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alec-chernicki committed Jul 18, 2024
1 parent 8af8566 commit 19516e0
Show file tree
Hide file tree
Showing 5 changed files with 782 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/commonality/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"find-up": "^6.3.0",
"fs-extra": "^11.2.0",
"get-port": "^7.0.0",
"git-branch": "^2.0.1",
"globby": "^13.2.2",
"import-meta-resolve": "^4.0.0",
"ip": "^1.1.9",
Expand Down
1 change: 1 addition & 0 deletions apps/commonality/src/cli/commands/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export const publish = command
codeowners,
blocks,
dependencies,
gitBranch: '',
} satisfies CreateSnapshotSchemaType;

const result = createSnapshotSchema.safeParse(data);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
packages:
- 'packages/**'

catalog:
react: ^18.2.0
react-dom: '^18.2.0'
lucide-react: '^0.396.0'
1 change: 1 addition & 0 deletions packages/utils-core/src/schemas/create-snapshot-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const dependencyTypeEnum = z.enum(['PRODUCTION', 'DEVELOPMENT', 'PEER']);
export const blockType = z.enum(['REACT', 'NODE', 'NEXT']);

export const createSnapshotSchema = z.object({
gitBranch: z.string(),
publishKey: z.string(),
projectId: z.string(),
codeowners: z.array(
Expand Down
Loading

0 comments on commit 19516e0

Please sign in to comment.