Skip to content

Commit

Permalink
chore(build): use @loopback/build to inherit tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondfeng committed Nov 30, 2018
1 parent 818c604 commit af25dc3
Show file tree
Hide file tree
Showing 26 changed files with 27 additions and 26 deletions.
2 changes: 1 addition & 1 deletion benchmark/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../packages/build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion examples/hello-world/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "./node_modules/@loopback/build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion examples/log-extension/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "./node_modules/@loopback/build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion examples/rpc-server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "./node_modules/@loopback/build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"include": [
"src",
"test",
Expand Down
2 changes: 1 addition & 1 deletion examples/soap-calculator/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "./node_modules/@loopback/build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion examples/todo-list/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "./node_modules/@loopback/build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion examples/todo/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "./node_modules/@loopback/build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/authentication/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/boot/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
4 changes: 2 additions & 2 deletions packages/build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Now you run the scripts, such as:
By default, `lb-tsc` searches your project's root directory for
`tsconfig.build.json` then `tsconfig.json`. If neither of them exists, a
`tsconfig.json` will be created to extend from
`./node_modules/@loopback/build/config/tsconfig.common.json`.
`@loopback/build/config/tsconfig.common.json`.

To customize the configuration:

Expand All @@ -73,7 +73,7 @@ Now you run the scripts, such as:
```json
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "./node_modules/@loopback/build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
1 change: 1 addition & 0 deletions packages/build/config/tsconfig.common.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"noImplicitAny": true,
"strictNullChecks": true,
"resolveJsonModule": true,
"strictBindCallApply": true,

"lib": ["es2018", "dom", "esnext.asynciterable"],
"module": "commonjs",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
<% if (project.loopbackBuild) { -%>
"extends": "./node_modules/@loopback/build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
<% } else { -%>
"compilerOptions": {
"emitDecoratorMetadata": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/context/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/http-caching-proxy/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/http-server/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/metadata/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-spec-builder/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-v3-types/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-v3/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/repository-json-schema/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/repository/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/rest-explorer/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/rest/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/service-proxy/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/testlab/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../build/config/tsconfig.common.json",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"rootDir": "."
},
Expand Down

0 comments on commit af25dc3

Please sign in to comment.