Skip to content

Commit 4938194

Browse files
authored
Add index.ts (#91)
1 parent 0e48f63 commit 4938194

File tree

7 files changed

+96
-10
lines changed

7 files changed

+96
-10
lines changed

eslint.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const js = require("@eslint/js");
22
const jest = require('eslint-plugin-jest');
33
const ts = require('typescript-eslint');
4+
const tsdoc = require('eslint-plugin-tsdoc');
45

56
const ckjsSpecificSettings = {
67
languageOptions: {
@@ -56,11 +57,16 @@ module.exports = ts.config(
5657
...ts.configs.recommended.map((config) => ({
5758
...config,
5859
ignores: ["**/*.js", "types/rdkafka.d.ts", "types/kafkajs.d.ts", "types/config.d.ts"],
60+
plugins: {
61+
"@typescript-eslint": ts.plugin,
62+
tsdoc,
63+
},
5964
rules: {
6065
...config.rules,
6166
"prefer-const": "warn",
6267
"@typescript-eslint/no-explicit-any": "warn",
6368
"@typescript-eslint/no-unused-vars": "warn",
69+
"tsdoc/syntax": "warn",
6470
}
6571
})),
6672
);

package-lock.json

Lines changed: 51 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

schemaregistry/index.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
export * from './confluent/types/decimal_pb'
2+
export * from './confluent/meta_pb'
3+
export * from './rules/encryption/awskms/aws-driver'
4+
export * from './rules/encryption/azurekms/azure-driver'
5+
export * from './rules/encryption/gcpkms/gcp-driver'
6+
export * from './rules/encryption/hcvault/hcvault-driver'
7+
export * from './rules/encryption/localkms/local-driver'
8+
export * from './rules/encryption/encrypt-executor'
9+
export * from './rules/encryption/kms-registry'
10+
export * from './rules/jsonata/jsonata-executor'
11+
export * from './serde/avro'
12+
export * from './serde/json'
13+
export * from './serde/protobuf'
14+
export * from './serde/rule-registry'
15+
export * from './serde/serde'
16+
export * from './rest-error'
17+
export * from './mock-schemaregistry-client'
18+
export * from './schemaregistry-client'

schemaregistry/package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
22
"name": "@confluentinc/schemaregistry",
3-
"version": "v0.1.16-devel",
3+
"version": "v0.1.17-devel",
44
"description": "Node.js client for Confluent Schema Registry",
5-
"main": "lib/index.js",
5+
"main": "dist/index.js",
6+
"types": "dist/index.d.ts",
7+
"files": [
8+
"dist"
9+
],
610
"devDependencies": {
711
"@bufbuild/buf": "^1.37.0",
812
"@bufbuild/protoc-gen-es": "^2.0.0",
@@ -12,6 +16,7 @@
1216
"bluebird": "^3.5.3",
1317
"eslint": "^8.57.0",
1418
"eslint-plugin-jest": "^28.6.0",
19+
"eslint-plugin-tsdoc": "^0.3.0",
1520
"jest": "^29.7.0",
1621
"jsdoc": "^4.0.2",
1722
"mocha": "^10.7.0",
@@ -44,7 +49,7 @@
4449
},
4550
"scripts": {
4651
"test:types": "tsc -p .",
47-
"test:schemaregistry": "make -f Makefile.schemaregistry test"
52+
"test:schemaregistry": "make -f Makefile test"
4853
},
4954
"keywords": [
5055
"schemaregistry",

schemaregistry/tsconfig-build.json

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

schemaregistry/tsconfig.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
22
"compilerOptions": {
33
"baseUrl": ".",
4+
"target": "es2021",
45
"lib": [
56
"es2021", "dom"
67
],
7-
"module": "nodenext",
8-
"target": "es2021",
9-
"strict": true,
8+
"declaration": true,
9+
"outDir": "dist",
10+
"types": ["../node_modules/@types/node"],
1011
"esModuleInterop": true,
12+
"strict": true,
1113
"forceConsistentCasingInFileNames": true,
12-
"moduleResolution": "nodenext",
1314
"allowUnusedLabels": false,
1415
"allowUnreachableCode": false,
1516
"noFallthroughCasesInSwitch": true,
@@ -18,10 +19,9 @@
1819
"noPropertyAccessFromIndexSignature": true,
1920
"noUnusedLocals": true,
2021
"useUnknownInCatchVariables": true,
21-
"types": ["../node_modules/@types/node"],
22-
"typeRoots": ["."],
23-
"noEmit": true,
2422
"resolveJsonModule": true,
23+
"moduleResolution": "nodenext",
24+
"module": "nodenext",
2525
"skipLibCheck": true
2626
},
2727
"include": [

0 commit comments

Comments
 (0)