silverwolf-x's picture
download
raw
688 Bytes
// @ts-ignore internal module
import Runner from 'jscodeshift/src/Runner'
export default function runJscodeshift(
transformerPath: string,
flags: { [key: string]: any },
files: string[]
) {
// we run jscodeshift in the same process to be able to
// share state between the main CRA transform and sub-transforms
return Runner.run(transformerPath, files, {
ignorePattern: [
'**/node_modules/**',
'**/.next/**',
'**/build/**',
// test files
'**/*.test.*',
'**/*.spec.*',
'**/__tests__/**',
'**/__mocks__/**',
],
extensions: 'tsx,ts,jsx,js',
parser: 'tsx',
verbose: 2,
runInBand: true,
...flags,
})
}

Xet Storage Details

Size:
688 Bytes
·
Xet hash:
a0e1ba36a306b4af7d0fe86007ed9203972b1be8e03fc24fbd811ab5de10edcc

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.