From eba2d2a18cb86f83563176af0f37c7add72cf3a1 Mon Sep 17 00:00:00 2001 From: ymc9 <104139426+ymc9@users.noreply.github.com> Date: Tue, 3 Dec 2024 08:26:04 +0800 Subject: [PATCH] chore: remove CLI version from generated code to avoid unnecessarily updating files --- packages/sdk/src/code-gen.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/sdk/src/code-gen.ts b/packages/sdk/src/code-gen.ts index 68106343d..7b26cc0c4 100644 --- a/packages/sdk/src/code-gen.ts +++ b/packages/sdk/src/code-gen.ts @@ -1,5 +1,4 @@ import { CompilerOptions, DiagnosticCategory, ModuleKind, Project, ScriptTarget, SourceFile } from 'ts-morph'; -import pkgJson from './package.json'; import { PluginError } from './types'; /** @@ -24,7 +23,7 @@ export function createProject(options?: CompilerOptions) { export function saveSourceFile(sourceFile: SourceFile) { sourceFile.replaceWithText( `/****************************************************************************** -* This file was generated by ZenStack CLI ${pkgJson.version}. +* This file was generated by ZenStack CLI. ******************************************************************************/ /* eslint-disable */