diff --git a/package.json b/package.json index 9e7ad3e5d..ebf674b34 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "bin": { "protoc-gen-ts_proto": "./protoc-gen-ts_proto" }, + "types": "build/index.d.ts", "scripts": { "build": "yarn tsc", "build:test": "yarn proto2bin && yarn proto2pbjs && yarn bin2ts", diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 000000000..cb82007ae --- /dev/null +++ b/src/index.ts @@ -0,0 +1 @@ +export { DateOption, EnvOption, JsonTimestampOption, LongOption, OneofOption, Options, ServiceOption } from "./options"; diff --git a/tsconfig.json b/tsconfig.json index c74fef3c8..866a93614 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,8 @@ "strict": true, "outDir": "build", "skipLibCheck": true, - "experimentalDecorators": true + "experimentalDecorators": true, + "declaration": true }, "include": ["src"] }