fix: building for web target
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Aravinth Manivannan 2023-09-19 03:09:44 +05:30
parent 11dc3107e4
commit 7fa40b5872
Signed by: realaravinth
GPG key ID: F8F50389936984FF
4 changed files with 18 additions and 3 deletions

8
.swcrc Normal file
View file

@ -0,0 +1,8 @@
{
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": false
}
}
}

View file

@ -4,10 +4,10 @@
"description": "",
"main": "index.js",
"scripts": {
"build": "swc ./src/index.ts -o dist/index.js",
"build": "spack",
"lint": "prettier --write ./src/*",
"test": "jest",
"doc": "typedoc ./src/index.ts ./src/auth.ts ./src/spec/**"
"doc": "typedoc ./src/index.ts"
},
"keywords": [],
"author": "",

8
spack.config.js Normal file
View file

@ -0,0 +1,8 @@
module.exports = {
entry: {
web: __dirname + "/src/index.ts",
},
output: {
path: __dirname + "/dist",
},
};

View file

@ -241,4 +241,3 @@ class Forgejo {
}
export default Forgejo;
export { Repository, Notification, User, Comment, Issue, Auth };