fix: building for web target
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
11dc3107e4
commit
7fa40b5872
4 changed files with 18 additions and 3 deletions
8
.swcrc
Normal file
8
.swcrc
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"jsc": {
|
||||
"parser": {
|
||||
"syntax": "typescript",
|
||||
"tsx": false
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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
8
spack.config.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
module.exports = {
|
||||
entry: {
|
||||
web: __dirname + "/src/index.ts",
|
||||
},
|
||||
output: {
|
||||
path: __dirname + "/dist",
|
||||
},
|
||||
};
|
|
@ -241,4 +241,3 @@ class Forgejo {
|
|||
}
|
||||
|
||||
export default Forgejo;
|
||||
export { Repository, Notification, User, Comment, Issue, Auth };
|
||||
|
|
Loading…
Reference in a new issue