Skip to content

Commit

Permalink
fix: add pull-schema task
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvander committed Mar 9, 2024
1 parent 5e8f4c5 commit 508f5d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@
pkl = "latest"
node = "18"
pnpm = "latest"

[tasks.pull-schema]
run = """
pkl eval package://pkg.pkl-lang.org/pkl-pantry/[email protected]#/generate.pkl -m src -p source=\"https://biomejs.dev/schemas/$(cat version.txt)/schema.json\"
cat src/Schema.pkl | sed 's/(\\([A-Za-z0-9]*\\)|Any)/\\1/g' | sed 's/module Schema/module Biome/g' > src/Biome.pkl
rm src/Schema.pkl
"""

0 comments on commit 508f5d0

Please sign in to comment.