Commit aee07949 by Ryan McKinley Committed by GitHub

Toolkit: copyIfNonExistent order swapped (#21653)

parent 6553d775
...@@ -40,13 +40,13 @@ export const prepare = useSpinner<void>('Preparing', async () => { ...@@ -40,13 +40,13 @@ export const prepare = useSpinner<void>('Preparing', async () => {
await Promise.all([ await Promise.all([
// Copy only if local tsconfig does not exist. Otherwise this will work, but have odd behavior // Copy only if local tsconfig does not exist. Otherwise this will work, but have odd behavior
copyIfNonExistent( copyIfNonExistent(
resolvePath(process.cwd(), 'tsconfig.json'), resolvePath(__dirname, '../../config/tsconfig.plugin.local.json'),
resolvePath(__dirname, '../../config/tsconfig.plugin.local.json') resolvePath(process.cwd(), 'tsconfig.json')
), ),
// Copy only if local prettierrc does not exist. Otherwise this will work, but have odd behavior // Copy only if local prettierrc does not exist. Otherwise this will work, but have odd behavior
copyIfNonExistent( copyIfNonExistent(
resolvePath(process.cwd(), '.prettierrc.js'), resolvePath(__dirname, '../../config/prettier.plugin.rc.js'),
resolvePath(__dirname, '../../config/prettier.plugin.rc.js') resolvePath(process.cwd(), '.prettierrc.js')
), ),
]); ]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment