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