From 1cc99e49f6fd17cac54d29545e656d8bdd32aa6b Mon Sep 17 00:00:00 2001 From: penjj Date: Wed, 11 Oct 2023 20:36:04 +0800 Subject: [PATCH] fix: update 'package.json' main file --- package.json | 2 +- src/codegen/writer.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 38b2a55..df8ea9f 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "codegen", "generate api" ], - "main": "src/index.ts", + "main": "dist/index.js", "bin": { "ts-autoapi": "dist/program.cjs" }, diff --git a/src/codegen/writer.ts b/src/codegen/writer.ts index e54cf44..6217581 100644 --- a/src/codegen/writer.ts +++ b/src/codegen/writer.ts @@ -2,6 +2,7 @@ import { upperFirst } from './name' import { Apis } from './parse' export const fixedHeader = `/* eslint-disable */ +// ts-nocheck /** * This file was auto generated by \`ts-autoapi\`.