MCPcopy
hub / github.com/haydenbleasel/ultracite / writeProjectFile

Function writeProjectFile

packages/cli/src/utils.ts:117–126  ·  view source on GitHub ↗
(
  filePath: string,
  content: string
)

Source from the content-addressed store, hash-verified

115};
116
117export const writeProjectFile = async (
118 filePath: string,
119 content: string
120): Promise<void> => {
121 // Validate before creating directories so the guard can't be used to
122 // mkdir outside the project
123 assertWritableProjectPath(filePath);
124 ensureDirectory(filePath);
125 await writeFile(filePath, content);
126};
127
128export const updatePackageJson = async ({
129 dependencies,

Callers 15

createAgentsFunction · 0.90
createEditorConfigFunction · 0.90
updateConfigFunction · 0.90
createHooksFunction · 0.90
updateTsConfigFileFunction · 0.90
husky.tsFile · 0.90
pre-commit.tsFile · 0.90
updatePackageJsonFunction · 0.90
updateJsonConfigFunction · 0.90
updateYamlConfigFunction · 0.90
updateEsmConfigFunction · 0.90
updateCjsConfigFunction · 0.90

Calls 2

ensureDirectoryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…