refactor: add npm build script

This commit is contained in:
xyny 2024-05-12 12:02:48 +03:00
parent 53a8ec02df
commit 73cebdfa83
2 changed files with 5 additions and 3 deletions

View file

@ -1,3 +1,2 @@
compile: compile:
rm -rf ./tsp-output npm run build
npx tsp compile .

View file

@ -6,5 +6,8 @@
"@typespec/compiler": "latest", "@typespec/compiler": "latest",
"@typespec/json-schema": "^0.56.0" "@typespec/json-schema": "^0.56.0"
}, },
"private": true "private": true,
"scripts": {
"build": "rm -rf ./tsp-output && npx tsp compile ."
}
} }