Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .github/workflows/deploy-BETA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ jobs:
- name: Install Dependencies
run: |
npm ci
npm run build
cp package*.json out && cp tsconfig.cjs.json out
mkdir -p out/src
mkdir -p out/src/media
cp ./src/media/bannerslim.png out/src/media
cp readme.md out
npm run swc:sim:pack
- name: Semantic Release Dependency
run: npm install -g @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/git @semantic-release/npm conventional-changelog-conventionalcommits semantic-release
- name: Publish Beta
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/deploy-RELEASE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,8 @@ jobs:
- name: Publish
run: |
npm install
npm run build
cp package.json out
cp tsconfig.cjs.json out
mkdir -p out/src
mkdir -p out/src/media
cp ./src/media/bannerslim.png out/src/media
cp readme.md out
cd out
npm run swc:sim:pack
cd out/src
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKENX }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ out/

*.log

coverage/
coverage/
types/
8 changes: 5 additions & 3 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"$schema": "https://swc.rs/schema.json",
"sourceMaps": "inline",
"sourceMaps": false,
"module": {
"type": "commonjs",
"strictMode": true,
"noInterop": false
"noInterop": false,
"resolveFully": true
},
"jsc": {
"externalHelpers": false,
Expand All @@ -21,5 +22,6 @@
},
"keepClassNames": true,
"baseUrl": "./"
}
},
"minify": true
}
36 changes: 30 additions & 6 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,40 @@ const config: Config = {
// testRunner: "jest-circus/runner",

// A map from regular expressions to paths to transformers
// transform: { "^.+.tsx?$": ["ts-jest", { tsconfig: "tsconfig.cjs.json", isolatedModules: true }] },
transform: {
"^.+\\.(t|j)sx?$": "@swc/jest",
"^.+\\.(t|j)sx?$": [
"@swc/jest",
{
$schema: "https://swc.rs/schema.json",
sourceMaps: "inline",
module: {
type: "commonjs",
strictMode: true,
noInterop: false,
resolveFully: false,
},
jsc: {
externalHelpers: false,
target: "es2015",
parser: {
syntax: "typescript",
tsx: true,
decorators: true,
dynamicImport: true,
},
transform: {
legacyDecorator: true,
decoratorMetadata: false,
},
keepClassNames: true,
baseUrl: ".",
},
},
],
},

// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
// transformIgnorePatterns: [
// "/node_modules/",
// "\\.pnp\\.[^\\/]+$"
// ],
transformIgnorePatterns: ["/node_modules/", "\\.pnp\\.[^\\/]+$"],

// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
// unmockedModulePathPatterns: undefined,
Expand Down
File renamed without changes
Loading
Loading