Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripts: Fix Entry points are not detected in Windows OS #38781

Merged
merged 4 commits into from Feb 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/scripts/CHANGELOG.md
Expand Up @@ -6,6 +6,10 @@

- Automatically copy PHP files located in the `src` folder and its subfolders to the output directory (`build` by default) ([#38715](https://github.com/WordPress/gutenberg/pull/38715)).

## 21.0.2 (2022-02-15)

- Entry points are not detected in Windows OS ([#38781](https://github.com/WordPress/gutenberg/pull/38781)).

## 21.0.1 (2022-02-11)

### Bug Fix
Expand Down
3 changes: 2 additions & 1 deletion packages/scripts/utils/config.js
Expand Up @@ -230,7 +230,8 @@ function getWebpackEntryPoints() {
}
const entryName = filepath
.replace( extname( filepath ), '' )
.replace( srcDirectory, '' );
.replace( srcDirectory, '' )
.replace( /\\/g, '/' );

// Detects the proper file extension used in the `src` directory.
const [ entryFilepath ] = glob(
Expand Down