Skip to content

Commit

Permalink
fix: 🐛 Fixes TSconfig for all projects
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorlarsson committed Nov 9, 2021
1 parent 82e0c6f commit 24c1624
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 26 deletions.
2 changes: 1 addition & 1 deletion libs/api-hjarntorget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions libs/api-skolplattformen/lib/loginStatus.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions libs/api-skolplattformen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
29 changes: 14 additions & 15 deletions libs/api-skolplattformen/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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 changes: 1 addition & 1 deletion libs/api-skolplattformen/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
3 changes: 2 additions & 1 deletion libs/api-skolplattformen/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
"types": ["jest", "node"],
"composite": true
},
"include": [
"**/*.spec.ts",
Expand Down
4 changes: 1 addition & 3 deletions libs/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"allowSyntheticDefaultImports": true,
"sourceMap": true
},
"include": [
"lib"
],
"include": ["lib", "../../__mocks__" ],
"exclude": [
"node_modules",
"**/__tests__/*",
Expand Down
6 changes: 6 additions & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
Expand Down
10 changes: 10 additions & 0 deletions workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 24c1624

Please sign in to comment.