Skip to content

Commit

Permalink
Merge pull request #164 from Lightning-Flow-Scanner/re-apply-fixes-4.10
Browse files Browse the repository at this point in the history
Re apply fixes 4.10
  • Loading branch information
junners authored Jan 27, 2025
2 parents 8f8b596 + 2e8b1bc commit f9cb280
Show file tree
Hide file tree
Showing 23 changed files with 318 additions and 1,750 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/deploy-BETA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ jobs:
run: |
npm ci
npm run build
npm run tsc:cp:files
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
- 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
9 changes: 7 additions & 2 deletions .github/workflows/deploy-RELEASE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@ jobs:
scope: rubenhalman
- name: Publish
run: |
npm ci
npm install
npm run build
npm run tsc:cp:files
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 publish
env:
Expand Down
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ out/

*.log

coverage/

types/
coverage/
11 changes: 4 additions & 7 deletions .swcrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
"$schema": "https://swc.rs/schema.json",
"sourceMaps": "inline",
"module": {
"type": "es6",
"type": "commonjs",
"strictMode": true,
"noInterop": false,
"resolveFully": true,
"importInterop": "babel"
"noInterop": false
},
"jsc": {
"externalHelpers": false,
Expand All @@ -22,7 +20,6 @@
"decoratorMetadata": false
},
"keepClassNames": true,
"baseUrl": "."
},
"minify": false
"baseUrl": "./"
}
}
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ export default [
},
},
{
ignores: ["jest.config.ts", "./src/index.d.ts"],
ignores: ["jest.config.ts"],
},
];
36 changes: 6 additions & 30 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,40 +170,16 @@ 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",
{
$schema: "https://swc.rs/schema.json",
sourceMaps: "inline",
exclude: ["index.d.ts"],
module: {
type: "es6",
strictMode: true,
noInterop: false,
},
jsc: {
externalHelpers: false,
target: "es2015",
parser: {
syntax: "typescript",
tsx: true,
decorators: true,
dynamicImport: true,
},
transform: {
legacyDecorator: true,
decoratorMetadata: false,
},
keepClassNames: true,
baseUrl: ".",
},
},
],
"^.+\\.(t|j)sx?$": "@swc/jest",
},

// 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
Loading

0 comments on commit f9cb280

Please # to comment.