MCPcopy Create free account
hub / github.com/bufferhead-code/nextjs-use-php / resetToOriginalState

Function resetToOriginalState

build.ts:40–46  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

38}
39
40function resetToOriginalState(filePath: string) {
41 const path = require('node:path');
42 const fse = require('fs-extra');
43 const finalFileName = filePath.replace('.original', '');
44 fse.removeSync(finalFileName);
45 fse.moveSync(filePath, finalFileName);
46}
47
48function build() {
49

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected