Skip to content

Commit

Permalink
feat: adjust ts codegen to sdk-47
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev committed Sep 9, 2024
1 parent 47faeed commit d823349
Show file tree
Hide file tree
Showing 389 changed files with 50,552 additions and 109,980 deletions.
7 changes: 6 additions & 1 deletion buf.gen.ts.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
version: v1
plugins:
- name: ts
out: ./ts/src/generated
strategy: all
path: ./ts/node_modules/.bin/protoc-gen-ts_proto
out: ./ts/src/generated
opt: "esModuleInterop=true,forceLong=long,outputTypeRegistry=true,useExactTypes=false,outputIndex=true"
- name: grpc-gateway-ts
path: ./ts/node_modules/.bin/protoc-gen-ts_proto
out: ./.cache/tmp/ts/generated-grpc-js
opt: "esModuleInterop=true,forceLong=long,outputTypeRegistry=true,useExactTypes=false,outputServices=grpc-js"
64 changes: 32 additions & 32 deletions ts/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
{
"ignorePatterns": ["node_modules/", "build/", "umd/"],
"env": {
"node": true,
"es2021": true,
"jest": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
"ignorePatterns": ["node_modules/", "build/", "umd/"],
"env": {
"node": true,
"es2021": true,
"jest": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "simple-import-sort"],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"ignoreRestSiblings": true
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "simple-import-sort"],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"ignoreRestSiblings": true
}
],
"simple-import-sort/imports": "error"
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]
"simple-import-sort/imports": "error"
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]
}
52 changes: 26 additions & 26 deletions ts/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
const common = {
transform: {
"^.+\\.(t|j)s$": ["ts-jest", { tsconfig: "./tsconfig.json" }],
},
rootDir: ".",
setupFiles: ["./test/setup.ts"],
transform: {
"^.+\\.(t|j)s$": ["ts-jest", { tsconfig: "./tsconfig.json" }],
},
rootDir: ".",
setupFiles: ["./test/setup.ts"],
};

module.exports = {
collectCoverageFrom: [
"<rootDir>/src/**/*.{js,ts}",
"!<rootDir>/src/generated/**/*",
"!<rootDir>/src/deprecated/**/*",
"!<rootDir>/src/patch/index.*",
"!<rootDir>/src/index.*",
],
projects: [
{
displayName: "unit",
...common,
testMatch: ["<rootDir>/src/**/*.spec.ts"],
setupFilesAfterEnv: ["./test/setup-unit-tests.ts"],
},
{
displayName: "functional",
...common,
testMatch: ["<rootDir>/test/functional/**/*.spec.ts"],
setupFilesAfterEnv: ["./test/setup-functional-tests.ts"],
},
],
collectCoverageFrom: [
"<rootDir>/src/**/*.{js,ts}",
"!<rootDir>/src/generated/**/*",
"!<rootDir>/src/deprecated/**/*",
"!<rootDir>/src/patch/index.*",
"!<rootDir>/src/index.*",
],
projects: [
{
displayName: "unit",
...common,
testMatch: ["<rootDir>/src/**/*.spec.ts"],
setupFilesAfterEnv: ["./test/setup-unit-tests.ts"],
},
{
displayName: "functional",
...common,
testMatch: ["<rootDir>/test/functional/**/*.spec.ts"],
setupFilesAfterEnv: ["./test/setup-functional-tests.ts"],
},
],
};
Loading

0 comments on commit d823349

Please sign in to comment.