Skip to content

Commit 9648fd6

Browse files
committed
Defs generator path
1 parent 4e0767a commit 9648fd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/librdkafka-defs-generator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function generateConfigDTS(file) {
151151
generateInterface('ConsumerTopicConfig extends TopicConfig', consumerTopicProps),
152152
].join('\n\n');
153153

154-
fs.writeFileSync(path.resolve(__dirname, '../config.d.ts'), output);
154+
fs.writeFileSync(path.resolve(__dirname, '../types/config.d.ts'), output);
155155
}
156156

157157
function updateErrorDefinitions(file) {
@@ -184,7 +184,7 @@ function updateErrorDefinitions(file) {
184184
.replace(/(\/\/.*\r?\n)?LibrdKafkaError.codes = {[^}]+/g, `${getHeader(file)}\nLibrdKafkaError.codes = {\n${body}`)
185185

186186
fs.writeFileSync(error_js_file, error_js);
187-
fs.writeFileSync(path.resolve(__dirname, '../errors.d.ts'), `${getHeader(file)}\nexport const CODES: { ERRORS: {${body.replace(/[ \.]*(\*\/\r?\n \w+: )(-?\d+),?/g, ' (**$2**) $1number,')}}}`)
187+
fs.writeFileSync(path.resolve(__dirname, '../types/errors.d.ts'), `${getHeader(file)}\nexport const CODES: { ERRORS: {${body.replace(/[ \.]*(\*\/\r?\n \w+: )(-?\d+),?/g, ' (**$2**) $1number,')}}}`)
188188
}
189189

190190
(async function updateTypeDefs() {

0 commit comments

Comments
 (0)