Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions project/packages/plugin/scanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Scanner {
* @returns {Promise<*>}
*/
async replacer( files, from, to, pathToFolder ) {
return replace( {
return replace.sync( {
files: files,
from: from,
to: to,
Expand Down Expand Up @@ -68,7 +68,7 @@ class Scanner {
async searchReplace( data, projectPath ) {
const phpFiles = [
path.join( projectPath, 'the-plugin-name.php' ),
path.join( projectPath, 'src', 'bootstrap.php' ),
path.join( projectPath, 'src', 'Bootstrap.php' ),
path.join( projectPath, 'src', 'App', '**', '*.php' ),
path.join( projectPath, 'src', 'Common', '**', '*.php' ),
path.join( projectPath, 'src', 'Compatibility', '**', '*.php' ),
Expand All @@ -88,7 +88,7 @@ class Scanner {
const travisCiFiles = [
path.join( projectPath, '.travis.yml' ),
];
const bootstrapFile = path.join( projectPath, 'src', 'bootstrap.php' );
const bootstrapFile = path.join( projectPath, 'src', 'Bootstrap.php' );
const composerFile = path.join( projectPath, 'composer.json' );
const pathEntryFile = path.join( projectPath, `the-plugin-name.php` );

Expand Down