aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-08-10 01:13:37 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-08-10 01:13:37 +0800
commit0113ecee96cd7ac3a6fc439df66ba826e7313768 (patch)
treefb951d4f643e33044e9490a6dbfd047f95cd5f2f
parenteb20e869472bbd7f463c331a236cae51e11cb27d (diff)
downloaddexon-sol-tools-0113ecee96cd7ac3a6fc439df66ba826e7313768.tar
dexon-sol-tools-0113ecee96cd7ac3a6fc439df66ba826e7313768.tar.gz
dexon-sol-tools-0113ecee96cd7ac3a6fc439df66ba826e7313768.tar.bz2
dexon-sol-tools-0113ecee96cd7ac3a6fc439df66ba826e7313768.tar.lz
dexon-sol-tools-0113ecee96cd7ac3a6fc439df66ba826e7313768.tar.xz
dexon-sol-tools-0113ecee96cd7ac3a6fc439df66ba826e7313768.tar.zst
dexon-sol-tools-0113ecee96cd7ac3a6fc439df66ba826e7313768.zip
Change scripts folder to build_scripts
-rw-r--r--packages/sra-api/build_scripts/buildJson.ts6
-rw-r--r--packages/sra-api/package.json2
2 files changed, 7 insertions, 1 deletions
diff --git a/packages/sra-api/build_scripts/buildJson.ts b/packages/sra-api/build_scripts/buildJson.ts
new file mode 100644
index 000000000..ea99a0823
--- /dev/null
+++ b/packages/sra-api/build_scripts/buildJson.ts
@@ -0,0 +1,6 @@
+import { writeFileSync } from 'fs';
+
+import { api } from '../src';
+
+const apiJson = JSON.stringify(api);
+writeFileSync('lib/api.json', apiJson);
diff --git a/packages/sra-api/package.json b/packages/sra-api/package.json
index a9bc934fe..5fed56303 100644
--- a/packages/sra-api/package.json
+++ b/packages/sra-api/package.json
@@ -19,7 +19,7 @@
"clean": "shx rm -rf lib",
"build": "tsc && yarn build-json",
"build-site": "yarn build && redoc-cli bundle lib/api.json --output public/index.html",
- "build-json": "ts-node scripts/buildJson.ts",
+ "build-json": "ts-node build_scripts/buildJson.ts",
"build-json:watch": "chokidar 'src/**/*' -c 'yarn build-json' ",
"deploy-site": "discharge deploy"
},