Skip to content

Commit af45fdf

Browse files
authored
Merge pull request #239 from proto-graphql/izumin5210/rewrite-with-ts-poet
refactor(protoc-gen-pothos): rewrite printer with ts-poet
2 parents 089cd48 + c8b21a7 commit af45fdf

File tree

68 files changed

+7851
-8544
lines changed

Some content is hidden

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

68 files changed

+7851
-8544
lines changed
Lines changed: 7 additions & 0 deletions

e2e/buf.gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ plugins:
1616
out: tests/__generated__/pothos/ts-proto
1717
opt:
1818
- import_prefix=@testapis/ts-proto/lib/
19-
- pothos_builder_path=@/builder
19+
- pothos_builder_path=@testapp/builder
2020
- name: pothos
2121
path: ../packages/protoc-gen-pothos/bin/protoc-gen-pothos
2222
out: tests/__generated__/pothos/ts-proto-with-forcelong-number
2323
opt:
2424
- import_prefix=@testapis/ts-proto-with-forcelong-number/lib/
25-
- pothos_builder_path=@/builder
25+
- pothos_builder_path=@testapp/builder
2626
- long_number=Int

e2e/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
testEnvironment: "node",
1212
rootDir: path.dirname(tsconfigPath),
1313
moduleNameMapper: {
14-
"^@/(.*)$": "<rootDir>/$1",
14+
"^@testapp/(.*)$": "<rootDir>/$1",
1515
},
1616
};
1717
}),

e2e/setupTests.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async function setupTest(opts) {
3434
compilerOptions: {
3535
baseUrl: ".",
3636
paths: {
37-
"@/*": ["./*"],
37+
"@testapp/*": ["./*"],
3838
},
3939
},
4040
include: [

e2e/tests/nexus--deprecation--google-protobuf/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"compilerOptions": {
55
"baseUrl": ".",
66
"paths": {
7-
"@/*": ["./*"]
7+
"@testapp/*": ["./*"]
88
}
99
},
1010
"include": ["./**/*", "../../src/**/*", "../__generated__/nexus/google-protobuf/testapis/deprecation/**/*"]

e2e/tests/nexus--deprecation--protobufjs/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"compilerOptions": {
55
"baseUrl": ".",
66
"paths": {
7-
"@/*": ["./*"]
7+
"@testapp/*": ["./*"]
88
}
99
},
1010
"include": ["./**/*", "../../src/**/*", "../__generated__/nexus/protobufjs/testapis/deprecation/**/*"]

e2e/tests/nexus--edgecases-import_squashed_union--google-protobuf/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"compilerOptions": {
55
"baseUrl": ".",
66
"paths": {
7-
"@/*": ["./*"]
7+
"@testapp/*": ["./*"]
88
}
99
},
1010
"include": [

e2e/tests/nexus--edgecases-import_squashed_union--protobufjs/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"compilerOptions": {
55
"baseUrl": ".",
66
"paths": {
7-
"@/*": ["./*"]
7+
"@testapp/*": ["./*"]
88
}
99
},
1010
"include": [

e2e/tests/nexus--empty_types--google-protobuf/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"compilerOptions": {
55
"baseUrl": ".",
66
"paths": {
7-
"@/*": ["./*"]
7+
"@testapp/*": ["./*"]
88
}
99
},
1010
"include": ["./**/*", "../../src/**/*", "../__generated__/nexus/google-protobuf/testapis/empty_types/**/*"]

e2e/tests/nexus--empty_types--protobufjs/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"compilerOptions": {
55
"baseUrl": ".",
66
"paths": {
7-
"@/*": ["./*"]
7+
"@testapp/*": ["./*"]
88
}
99
},
1010
"include": ["./**/*", "../../src/**/*", "../__generated__/nexus/protobufjs/testapis/empty_types/**/*"]

0 commit comments

Comments
 (0)