Skip to content

Commit

Permalink
fix(test): swc (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mararok authored Dec 26, 2023
1 parent eeb15c5 commit ba66848
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Update CHANGELOG.md
uses: 'zen8sol/[email protected].3'
uses: 'zen8sol/[email protected].4'
with:
newVersion: '${{ env.NEW_VERSION }}'

Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ coverage
*.log
.yalc/**
.jestrc.json
.swcrc

yalc.lock
/test/tmp/**
Expand Down
32 changes: 32 additions & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"sourceMaps": true,
"module": {
"type": "commonjs",
"lazy": true,
"noInterop": false

},
"jsc": {
"target": "es2022",
"keepClassNames": true,
"parser": {
"syntax": "typescript",
"decorators": true,
"dynamicImport": true,
"noEarlyErrors": true
},
"transform": {
"legacyDecorator": false,
"decoratorMetadata": true,
"useDefineForClassFields": true
},
"baseUrl": "./",
"paths": {
"@": ["src"],
"@/*": ["src/*"],
"@test/*": ["test/helper/*"]
}
},
"minify": false
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"paths": {
"@": ["src"],
"@/*": ["src/*"],
"@test/*": ["test/helper/*"],
"@test/*": ["test/helper/*"]
},

},
Expand Down

0 comments on commit ba66848

Please sign in to comment.