MCPcopy Create free account
hub / github.com/SZzzzz/react-scripts-ts-antd / verifyAbsent

Function verifyAbsent

scripts/eject.js:71–81  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

69 const appPath = paths.appPath;
70
71 function verifyAbsent(file) {
72 if (fs.existsSync(path.join(appPath, file))) {
73 console.error(
74 `\`${file}\` already exists in your app folder. We cannot ` +
75 'continue as you would lose all the changes in that file or directory. ' +
76 'Please move or delete it (maybe make a copy for backup) and run this ' +
77 'command again.'
78 );
79 process.exit(1);
80 }
81 }
82
83 const folders = ['config', 'config/jest', 'scripts'];
84

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected