feat: add headers & build-web script

This commit is contained in:
xyny 2024-05-12 12:14:36 +03:00
parent 73cebdfa83
commit 939b79b992
3 changed files with 6 additions and 2 deletions

3
.gitignore vendored
View file

@ -1,2 +1,3 @@
tsp-output/*
node_modules/*
node_modules/*
dist/*

2
_headers Normal file
View file

@ -0,0 +1,2 @@
/*
Content-Disposition: inline

View file

@ -8,6 +8,7 @@
},
"private": true,
"scripts": {
"build": "rm -rf ./tsp-output && npx tsp compile ."
"build": "rm -rf ./tsp-output && npx tsp compile .",
"build-web": "npm run build && cp -r ./tsp-output/@typespec/json-schema ./dist && cp ./_headers ./dist"
}
}