You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Digging into the code found out that the error originates because of below code const emitOutput = program.emit(sourceFile, writeFile); if (emitOutput.emitSkipped || emitOutput.diagnostics.length > 0)
when changed if statement in the above code as below, ts file generation is successful. if (emitOutput.emitSkipped && emitOutput.diagnostics.length > 0)
In my case emitOutput.emitSkipped is true in case of a .js file.
Please let me know if this could be an issue with my config. Below is the command I am using dts-generator --name myProjectname --main /src/index --project . --out myProjectname.d.ts --exclude __tests__/**/*.d.ts --exclude __mocks__/**/*.ts --exclude node_modules/**/*.ts --prefix ''
The text was updated successfully, but these errors were encountered:
Digging into the code found out that the error originates because of below code
const emitOutput = program.emit(sourceFile, writeFile); if (emitOutput.emitSkipped || emitOutput.diagnostics.length > 0)
when changed if statement in the above code as below, ts file generation is successful.
if (emitOutput.emitSkipped && emitOutput.diagnostics.length > 0)
In my case emitOutput.emitSkipped is true in case of a .js file.
Please let me know if this could be an issue with my config. Below is the command I am using
dts-generator --name myProjectname --main /src/index --project . --out myProjectname.d.ts --exclude __tests__/**/*.d.ts --exclude __mocks__/**/*.ts --exclude node_modules/**/*.ts --prefix ''
The text was updated successfully, but these errors were encountered: