fix: 🐛 Fixes TSconfig for all projects
This commit is contained in:
parent
82e0c6f961
commit
24c162419b
|
@ -14,7 +14,7 @@
|
|||
"scripts": {
|
||||
"lint": "eslint 'lib/**/*.{js,ts}' --quiet --fix",
|
||||
"test": "jest",
|
||||
"build": "tsc",
|
||||
"build": "tsc --build",
|
||||
"prepare": "yarn build",
|
||||
"run-dev": "yarn run build && node run",
|
||||
"publish-package": "npm publish --access public"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { EventEmitter } from 'events'
|
||||
import { Fetcher } from './fetcher'
|
||||
import { loginStatus } from './routes'
|
||||
import { AuthTicket } from './types'
|
||||
import { Fetcher } from '../../api/lib/fetcher'
|
||||
import { AuthTicket } from '../..//api/lib/types'
|
||||
|
||||
/*
|
||||
export enum LoginEvent {
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
"files": [
|
||||
"dist/**/*"
|
||||
],
|
||||
"repository": "git@github.com:kolplattformen/embedded-api.git",
|
||||
"author": "Johan Öbrink <johan.obrink@gmail.com>",
|
||||
"repository": "git@github.com:kolplattformen/skolplattformen.git",
|
||||
"author": "ÖS <info@skolplattformen.org>",
|
||||
"license": "Apache-2.0",
|
||||
"private": false,
|
||||
"scripts": {
|
||||
"lint": "eslint 'lib/**/*.{js,ts}' --quiet --fix",
|
||||
"test": "jest",
|
||||
"build": "tsc",
|
||||
"build": "tsc --build",
|
||||
"prepare": "yarn build",
|
||||
"run-dev": "yarn run build && node run",
|
||||
"publish-package": "npm publish --access public"
|
||||
|
|
|
@ -1,22 +1,21 @@
|
|||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"jsx": "react-jsx",
|
||||
"allowJs": true,
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"target": "ES6",
|
||||
"module": "CommonJS",
|
||||
"declaration": true,
|
||||
"outDir": "./dist",
|
||||
"strict": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"sourceMap": true
|
||||
},
|
||||
"files": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
"include": [
|
||||
"lib"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"**/__tests__/*",
|
||||
"**/__mocks__/*",
|
||||
"**/*.test.ts"
|
||||
]
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"types": ["node"]
|
||||
"types": ["node"],
|
||||
},
|
||||
"exclude": ["**/*.spec.ts", "**/*.spec.tsx"],
|
||||
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"module": "commonjs",
|
||||
"types": ["jest", "node"]
|
||||
"types": ["jest", "node"],
|
||||
"composite": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.spec.ts",
|
||||
|
|
|
@ -9,9 +9,7 @@
|
|||
"allowSyntheticDefaultImports": true,
|
||||
"sourceMap": true
|
||||
},
|
||||
"include": [
|
||||
"lib"
|
||||
],
|
||||
"include": ["lib", "../../__mocks__" ],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"**/__tests__/*",
|
||||
|
|
|
@ -17,6 +17,12 @@
|
|||
"@skolplattformen/api-skolplattformen": [
|
||||
"libs/api-skolplattformen/lib/index.ts"
|
||||
],
|
||||
"@skolplattformen/api-hjarntorget": [
|
||||
"libs/api-hjarntorget/lib/index.ts"
|
||||
],
|
||||
"@skolplattformen/api": [
|
||||
"libs/api/lib/index.ts"
|
||||
],
|
||||
"@skolplattformen/curriculum": ["libs/curriculum/src/index.ts"],
|
||||
"@skolplattformen/hooks": ["libs/hooks/src/index.ts"]
|
||||
}
|
||||
|
|
|
@ -122,6 +122,16 @@
|
|||
"sourceRoot": "apps/skolplattformen-sthlm/src",
|
||||
"projectType": "application",
|
||||
"targets": {
|
||||
|
||||
"build": {
|
||||
"executor": "@nrwl/react-native:bundle",
|
||||
"outputs": ["apps/skolplattformen-sthlm/build"],
|
||||
"options": {
|
||||
"entryFile": "apps/skolplattformen-sthlm/index.js",
|
||||
"platform": "ios",
|
||||
"bundleOutput": "dist/apps/skolplattformen-sthlm/ios/main.jsbundle"
|
||||
}
|
||||
},
|
||||
"start": {
|
||||
"executor": "@nrwl/react-native:start",
|
||||
"options": {
|
||||
|
|
Loading…
Reference in New Issue