mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
Add tsconfig front
This commit is contained in:
parent
5b1ecac1fa
commit
2369cc5187
@ -28,7 +28,7 @@ module.exports = {
|
||||
setupFilesAfterEnv: ['@strapi/admin-test-utils/after-env'],
|
||||
testEnvironment: 'jsdom',
|
||||
transform: {
|
||||
'^.+\\.js$': [
|
||||
'^.+\\.(j|t)s(x)?$': [
|
||||
'@swc/jest',
|
||||
{
|
||||
env: {
|
||||
|
||||
@ -1,8 +1,5 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"noEmit": true
|
||||
},
|
||||
"include": ["src"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
||||
@ -1,9 +1,5 @@
|
||||
{
|
||||
"extends": "tsconfig/base.json",
|
||||
"compilerOptions": {
|
||||
"jsx": "react-jsx",
|
||||
"noEmit": true
|
||||
},
|
||||
"extends": "tsconfig/front.json",
|
||||
"include": ["src"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
||||
@ -2,8 +2,5 @@
|
||||
|
||||
module.exports = {
|
||||
preset: '../../../jest-preset.front.js',
|
||||
transform: {
|
||||
'^.+\\.ts(x)?$': ['@swc/jest'],
|
||||
},
|
||||
displayName: 'Color picker plugin',
|
||||
};
|
||||
|
||||
10
packages/utils/tsconfig/front.json
Normal file
10
packages/utils/tsconfig/front.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"$schema": "http://json.schemastore.org/tsconfig",
|
||||
"extends": "./base.json",
|
||||
"compilerOptions": {
|
||||
"module": "ESNext",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"jsx": "react-jsx",
|
||||
"noEmit": true
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user