refactor(update): properly separate code

This commit is contained in:
matt1432 2025-04-16 10:44:57 -04:00
commit a93ec6ad3f
8 changed files with 53 additions and 52 deletions
apps/update-sources/src

View file

@ -1,9 +1,9 @@
import { readPackageJSON, writePackageJSON } from 'pkg-types';
import { accessSync, constants, existsSync } from 'node:fs';
import { spawnSync } from 'node:child_process';
import { styleText } from 'node:util';
import { replaceInFile, npmRun } from './lib';
import { styleText } from 'node:util';
/* Constants */
@ -11,7 +11,6 @@ const FLAKE = process.env.FLAKE as string;
const PINS = new Map([]);
const updatePackageJson = async(workspaceDir: string, updates: object) => {
const currentPackageJson = await readPackageJSON(`${workspaceDir}/package.json`);