diff --git a/.gitignore b/.gitignore index e598f52..2accabc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ tsp-output/* -node_modules/* \ No newline at end of file +node_modules/* +dist/* \ No newline at end of file diff --git a/_headers b/_headers new file mode 100644 index 0000000..0f068bf --- /dev/null +++ b/_headers @@ -0,0 +1,2 @@ +/* + Content-Disposition: inline \ No newline at end of file diff --git a/package.json b/package.json index f8eb080..46645b9 100644 --- a/package.json +++ b/package.json @@ -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" } }