aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/license.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/license.ts')
-rw-r--r--src/lib/license.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/license.ts b/src/lib/license.ts
new file mode 100644
index 0000000..d9c8ffe
--- /dev/null
+++ b/src/lib/license.ts
@@ -0,0 +1,7 @@
+import * as license from "$/../LICENSE?raw";
+
+export default (typeof license === "string"
+ ? license
+ : "default" in license
+ ? license.default
+ : JSON.stringify(license, null, 2)) as string;