From 939b79b99288aa8a6eba6c0254f9cae612828747 Mon Sep 17 00:00:00 2001 From: xyny Date: Sun, 12 May 2024 12:14:36 +0300 Subject: [PATCH] feat: add headers & build-web script --- .gitignore | 3 ++- _headers | 2 ++ package.json | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 _headers 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" } }