Skip to content

Commit

Permalink
fix(dts-gen): fix error when running dts-gen globally (#2772)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanphamcybozu committed May 22, 2024
1 parent c98ab15 commit 971c876
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/dts-gen/src/templates/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export interface RenderInput {
const renderAsFile = async (output: string, renderInput: RenderInput) => {
const tsExpression = convertToTsExpression(renderInput);
const eslint = new ESLint({
cwd: path.resolve(__dirname, "..", ".."),
fix: true,
useEslintrc: false,
baseConfig: {
Expand Down

0 comments on commit 971c876

Please sign in to comment.