2 files changed, 7 insertions, 2 deletions
diff --git a/cdn/.swcrc b/cdn/.swcrc
index 9a89b49d..ab531194 100644
--- a/cdn/.swcrc
+++ b/cdn/.swcrc
@@ -7,6 +7,11 @@
"syntax": "typescript",
"decorators": true
},
- "target": "es2021"
+ "target": "es2021",
+ "baseUrl": ".",
+ "paths": {
+ "@fosscord/cdn/": ["src/index"],
+ "@fosscord/cdn/*": ["src/*"]
+ }
}
}
diff --git a/cdn/package.json b/cdn/package.json
index addec363..eb623fcc 100644
--- a/cdn/package.json
+++ b/cdn/package.json
@@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "cdn for fosscord",
"main": "dist/index.js",
- "types": "dist/index.d.ts",
+ "types": "src/index.ts",
"scripts": {
"postinstall": "ts-patch install -s",
"test": "npm run build && jest --coverage ./tests",
|