Skip to content

Commit

Permalink
fix: compile startup error
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdabbs committed May 3, 2023
1 parent 6a6642d commit a53b912
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/compile/src/validations.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { z } from 'zod'
import yaml from 'yaml-front-matter'

import { Bundle, Property, formula as Formula, schemas } from '@pi-base/core'
import { Bundle, Property, Trait, formula as Formula, schemas } from '@pi-base/core'

import { File } from './fs.js'

Expand Down Expand Up @@ -228,7 +228,7 @@ export function trait(input: File) {
...rest
} = loadFront(input.contents)

const trait: Trait<string> = schemas.trait(z.string()).parse({
const trait: Trait<string> = schemas.trait<string>(z.string()).parse({
uid: String(uid).trim(),
space: String(space).trim(),
property: String(property).trim(),
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"unified": "^10.1.2",
"unist-util-is": "^5.2.1",
"unist-util-visit": "^4.1.2",
"zod": "3.20.1"
"zod": "^3.21.3"
},
"devDependencies": {
"@types/unist": "^2.0.3",
Expand Down
8 changes: 2 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a53b912

Please sign in to comment.