Skip to content

Commit ee3ff2d

Browse files
authored
Improve IDE quality of life using tsconfig paths (#574)
1 parent d33eac7 commit ee3ff2d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+163
-52
lines changed

package-lock.json

Lines changed: 34 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"name": "root",
33
"private": true,
44
"devDependencies": {
5-
"lerna": "^3.22.1"
5+
"@types/jasmine": "^3.5.10",
6+
"lerna": "^3.22.1",
7+
"typescript": ">=3.8.3 <4"
68
},
79
"license": "(Apache-2.0 AND BSD-3-Clause)"
810
}

packages/grpc-backend/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ SPECS := $(shell find spec -name '*.spec.ts')
55
default: clean build test
66

77
build:
8-
@./node_modules/.bin/tsc --project tsconfig.json --module es2015 --outDir build/es2015;
8+
@./node_modules/.bin/tsc --project tsconfig.build.json --module es2015 --outDir build/es2015;
99
@echo "es6 done"
10-
@./node_modules/.bin/tsc --project tsconfig.json --module commonjs --outDir build/commonjs \
10+
@./node_modules/.bin/tsc --project tsconfig.build.json --module commonjs --outDir build/commonjs \
1111
--declaration --declarationDir build/types;
1212
@echo "cjs done"
1313

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"paths": {},
5+
}
6+
}

packages/grpc-backend/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
"moduleResolution": "node",
1212
"forceConsistentCasingInFileNames": true,
1313
"skipLibCheck": false,
14+
"paths": {
15+
"@protobuf-ts/*": ["../*/src"]
16+
},
1417
"lib": [
1518
"es2017",
1619
"dom"

packages/grpc-backend/tsconfig.test.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"compilerOptions": {
88
"module": "CommonJS",
99
"declaration": false,
10-
"paths": {}
10+
"sourceMap": true
1111
}
1212
}

packages/grpc-transport/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ SPECS := $(shell find spec -name '*.spec.ts')
55
default: clean build test
66

77
build:
8-
@./node_modules/.bin/tsc --project tsconfig.json --module es2015 --outDir build/es2015;
8+
@./node_modules/.bin/tsc --project tsconfig.build.json --module es2015 --outDir build/es2015;
99
@echo "es6 done"
10-
@./node_modules/.bin/tsc --project tsconfig.json --module commonjs --outDir build/commonjs \
10+
@./node_modules/.bin/tsc --project tsconfig.build.json --module commonjs --outDir build/commonjs \
1111
--declaration --declarationDir build/types;
1212
@echo "cjs done"
1313

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"paths": {},
5+
}
6+
}

packages/grpc-transport/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
"moduleResolution": "node",
1212
"forceConsistentCasingInFileNames": true,
1313
"skipLibCheck": false,
14+
"paths": {
15+
"@protobuf-ts/*": ["../*/src"]
16+
},
1417
"lib": [
1518
"es2017",
1619
"dom"

packages/grpc-transport/tsconfig.test.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"compilerOptions": {
88
"module": "CommonJS",
99
"declaration": false,
10-
"paths": {}
10+
"sourceMap": true
1111
}
1212
}

0 commit comments

Comments
 (0)