-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix swc compiled paths resolving, added strip leading paths, fix jest…
… paths
- Loading branch information
1 parent
22180e1
commit 8fbee6e
Showing
21 changed files
with
176 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/src/tests/ | ||
src/**/*.test.ts | ||
jest.config.js | ||
tsconfig.json | ||
tsconfig.build.json | ||
postbuild.js | ||
/src/tests | ||
.swcrc |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
const fs = require('fs') | ||
const config = JSON.parse(fs.readFileSync(`${__dirname}/.swcrc`, 'utf-8')) | ||
|
||
module.exports = { | ||
...require('../../jest.config.base.js'), | ||
|
||
transform: { | ||
'^.+\\.(t|j)sx?$': ['@swc/jest', { ...config, swcrc: false, exclude: [] }], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ src/**/*.test.ts | |
jest.config.js | ||
tsconfig.json | ||
tsconfig.build.json | ||
postbuild.js | ||
.swcrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/swcrc", | ||
"jsc": { | ||
"parser": { | ||
"syntax": "typescript", | ||
"jsx": false, | ||
"dynamicImport": false, | ||
"privateMethod": true, | ||
"functionBind": false, | ||
"exportDefaultFrom": false, | ||
"exportNamespaceFrom": false, | ||
"decorators": false, | ||
"decoratorsBeforeExport": false, | ||
"topLevelAwait": false, | ||
"importMeta": false | ||
}, | ||
"baseUrl": ".", | ||
"transform": null, | ||
"target": "es2016", | ||
"loose": false, | ||
"externalHelpers": false, | ||
"keepClassNames": true, | ||
"preserveAllComments": true, | ||
"paths": { | ||
"@/*": ["src/*"] | ||
} | ||
}, | ||
"exclude": ["examples","src/tests", ".test.ts"], | ||
"minify": false, | ||
"sourceMaps": "inline" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
const fs = require('fs') | ||
const config = JSON.parse(fs.readFileSync(`${__dirname}/.swcrc`, 'utf-8')) | ||
|
||
module.exports = { | ||
...require('../../jest.config.base.js'), | ||
|
||
transform: { | ||
'^.+\\.(t|j)sx?$': ['@swc/jest', { ...config, swcrc: false, exclude: [] }], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ src/**/*.test.ts | |
jest.config.js | ||
tsconfig.json | ||
tsconfig.build.json | ||
postbuild.js | ||
.swcrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/swcrc", | ||
"jsc": { | ||
"parser": { | ||
"syntax": "typescript", | ||
"jsx": false, | ||
"dynamicImport": false, | ||
"privateMethod": true, | ||
"functionBind": false, | ||
"exportDefaultFrom": false, | ||
"exportNamespaceFrom": false, | ||
"decorators": false, | ||
"decoratorsBeforeExport": false, | ||
"topLevelAwait": false, | ||
"importMeta": false | ||
}, | ||
"baseUrl": ".", | ||
"transform": null, | ||
"target": "es2016", | ||
"loose": false, | ||
"externalHelpers": false, | ||
"keepClassNames": true, | ||
"preserveAllComments": true, | ||
"paths": { | ||
"@/*": ["src/*"] | ||
} | ||
}, | ||
"exclude": ["examples","src/tests", ".test.ts"], | ||
"minify": false, | ||
"sourceMaps": "inline" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
const fs = require('fs') | ||
const config = JSON.parse(fs.readFileSync(`${__dirname}/.swcrc`, 'utf-8')) | ||
|
||
module.exports = { | ||
...require('../../jest.config.base.js'), | ||
|
||
transform: { | ||
'^.+\\.(t|j)sx?$': ['@swc/jest', { ...config, swcrc: false, exclude: [] }], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ src/**/*.test.ts | |
jest.config.js | ||
tsconfig.json | ||
tsconfig.build.json | ||
postbuild.js | ||
.swcrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/swcrc", | ||
"jsc": { | ||
"parser": { | ||
"syntax": "typescript", | ||
"jsx": false, | ||
"dynamicImport": false, | ||
"privateMethod": true, | ||
"functionBind": false, | ||
"exportDefaultFrom": false, | ||
"exportNamespaceFrom": false, | ||
"decorators": false, | ||
"decoratorsBeforeExport": false, | ||
"topLevelAwait": false, | ||
"importMeta": false | ||
}, | ||
"baseUrl": ".", | ||
"transform": null, | ||
"target": "es2016", | ||
"loose": false, | ||
"externalHelpers": false, | ||
"keepClassNames": true, | ||
"preserveAllComments": true, | ||
"paths": { | ||
"@/*": ["src/*"] | ||
} | ||
}, | ||
"exclude": ["examples","src/tests", ".test.ts"], | ||
"minify": false, | ||
"sourceMaps": "inline" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
const fs = require('fs') | ||
const config = JSON.parse(fs.readFileSync(`${__dirname}/.swcrc`, 'utf-8')) | ||
|
||
module.exports = { | ||
...require('../../jest.config.base.js'), | ||
|
||
transform: { | ||
'^.+\\.(t|j)sx?$': ['@swc/jest', { ...config, swcrc: false, exclude: [] }], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ examples | |
jest.config.js | ||
tsconfig.json | ||
tsconfig.build.json | ||
.swcrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/swcrc", | ||
"jsc": { | ||
"parser": { | ||
"syntax": "typescript", | ||
"jsx": false, | ||
"dynamicImport": false, | ||
"privateMethod": true, | ||
"functionBind": false, | ||
"exportDefaultFrom": false, | ||
"exportNamespaceFrom": false, | ||
"decorators": false, | ||
"decoratorsBeforeExport": false, | ||
"topLevelAwait": false, | ||
"importMeta": false | ||
}, | ||
"baseUrl": ".", | ||
"transform": null, | ||
"target": "es2016", | ||
"loose": false, | ||
"externalHelpers": false, | ||
"keepClassNames": true, | ||
"preserveAllComments": true, | ||
"paths": { | ||
"@/*": ["src/*"] | ||
} | ||
}, | ||
"exclude": ["examples","src/tests", ".test.ts"], | ||
"minify": false, | ||
"sourceMaps": "inline" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
const fs = require('fs') | ||
const config = JSON.parse(fs.readFileSync(`${__dirname}/.swcrc`, 'utf-8')) | ||
|
||
module.exports = { | ||
...require('../../jest.config.base.js'), | ||
|
||
transform: { | ||
'^.+\\.(t|j)sx?$': ['@swc/jest', { ...config, swcrc: false, exclude: [] }], | ||
}, | ||
transformIgnorePatterns: ['/node_modules\/(?!@walletconnect/modal)(.*)'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters