fix: building for web target
ci/woodpecker/push/woodpecker Pipeline was successful Details

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 };