Skip to content

Commit

Permalink
build(common): typescript common issues
Browse files Browse the repository at this point in the history
  • Loading branch information
artyorsh authored Jun 25, 2019
1 parent 3fd790c commit fb4d6ff
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 38 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { defaults: tsJestConfig } = require('ts-jest/presets');
const { pathsToModuleNameMapper } = require('ts-jest/utils');
const tsConfig = require('./tsconfig.dev');
const tsConfig = require('./tsconfig');

module.exports = {
...tsJestConfig,
Expand Down
20 changes: 2 additions & 18 deletions tsconfig.dev.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,12 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/tsc-out",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"sourceMap": true,
"moduleResolution": "node",
"jsx": "react-native",
"target": "es2015",
"lib": [
"es2018"
],
"typeRoots": [
"./node_modules/@types"
],
"paths": {
"@kitten/ui": [
"./src/framework/ui"
],
"@kitten/theme": [
"./src/framework/theme"
]
}
]
},
"include": [
"./src"
Expand Down
20 changes: 20 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/tsc-out",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"sourceMap": true,
"moduleResolution": "node",
"jsx": "react-native",
"typeRoots": [
"./node_modules/@types"
],
"paths": {
"@kitten/*": [
"./src/framework/*"
]
}
}
}
20 changes: 2 additions & 18 deletions tsconfig.prod.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,14 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/tsc-out",
"declaration": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"moduleResolution": "node",
"jsx": "react-native",
"target": "es2015",
"module": "esnext",
"lib": [
"es2018"
],
"typeRoots": [
"./node_modules/@types"
],
"paths": {
"@kitten/ui": [
"./src/framework/ui"
],
"@kitten/theme": [
"./src/framework/theme"
]
}
]
},
"include": [
"./src",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./tsconfig.dev.json",
"extends": "./tsconfig.dev",
"compilerOptions": {
"jsx": "react"
}
Expand Down

0 comments on commit fb4d6ff

Please sign in to comment.