aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra-api/build_scripts/buildJson.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sra-api/build_scripts/buildJson.ts')
-rw-r--r--packages/sra-api/build_scripts/buildJson.ts6
1 files changed, 6 insertions, 0 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);