aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra-spec/build_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sra-spec/build_scripts')
-rw-r--r--packages/sra-spec/build_scripts/buildJson.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/sra-spec/build_scripts/buildJson.ts b/packages/sra-spec/build_scripts/buildJson.ts
new file mode 100644
index 000000000..b92b5172b
--- /dev/null
+++ b/packages/sra-spec/build_scripts/buildJson.ts
@@ -0,0 +1,7 @@
+import { writeFileSync } from 'fs';
+
+import { api } from '../src';
+
+const apiJson = JSON.stringify(api);
+writeFileSync('lib/api.json', apiJson);
+writeFileSync('public/api.json', apiJson);