Summary: Rename first batch for '.ts' files to '.tsx' Reviewed By: nikoant Differential Revision: D33843051 fbshipit-source-id: 68dd2dc6538afce2daaf24c6412dc5db8b38acbc
17 lines
402 B
TypeScript
17 lines
402 B
TypeScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
export function normalizePath(path: string): string {
|
|
if (process.platform === 'win32') {
|
|
path = path.replace(/\\/g, '/');
|
|
path = path.substring(path.indexOf('/'));
|
|
}
|
|
return path;
|
|
}
|