diff --git a/src/file.ts b/src/file.ts index 0ab2aa10..6b716b8f 100644 --- a/src/file.ts +++ b/src/file.ts @@ -2,14 +2,9 @@ import dayjs from 'dayjs'; import _ from 'lodash'; import fs from 'node:fs/promises'; import path from 'node:path'; -import type selfPkgT from '../package.json'; import { parseSelector } from './selector'; import type { IArray, SubscriptionConfig } from './types'; -const selfPkg: typeof selfPkgT = JSON.parse( - await fs.readFile(process.cwd() + '/package.json', 'utf-8'), -); - const iArrayToArray = (array: IArray = []): T[] => { return Array().concat(array); }; @@ -50,12 +45,6 @@ export const writeConfig = async (fp: string, config: SubscriptionConfig) => { ); await fs.writeFile(fp, buffer); - const newPkg = { ...selfPkg, version: '0.0.' + newConfig.version }; - await fs.writeFile( - process.cwd() + '/package.json', - JSON.stringify(newPkg, void 0, 2) + '\n', - ); - await updateReadMeMd(newConfig); console.log({