Skip to content

Commit 9f15f59

Browse files
authored
PLAT-129601: Upgrade react-refresh-webpack-plugin 0.3.3 to 0.4.3 (#231)
* PLAT-129601: Upgrade @pmmmwh/react-refresh-webpack-plugin module from 0.3.3 to 0.4.1 * Update CHANGELOG.md * Update package-lock.json * Update commands/eject.js (for fixing lint error) * Update package.json 2
1 parent 89683e4 commit 9f15f59

File tree

3 files changed

+41
-40
lines changed

3 files changed

+41
-40
lines changed

commands/eject.js

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -69,36 +69,35 @@ function displayHelp() {
6969

7070
function validateEject() {
7171
return prompts({
72-
type: 'confirm',
73-
name: 'shouldEject',
74-
message: 'Are you sure you want to eject? This action is permanent.',
75-
default: false
76-
})
77-
.then(answer => {
78-
if (!answer.shouldEject) {
79-
console.log(chalk.cyan('Close one! Eject aborted.'));
80-
return {abort: true};
81-
} else {
82-
checkGitStatus();
72+
type: 'confirm',
73+
name: 'shouldEject',
74+
message: 'Are you sure you want to eject? This action is permanent.',
75+
default: false
76+
}).then(answer => {
77+
if (!answer.shouldEject) {
78+
console.log(chalk.cyan('Close one! Eject aborted.'));
79+
return {abort: true};
80+
} else {
81+
checkGitStatus();
8382

84-
// Make shallow array of files paths
85-
const files = assets.reduce((list, dir) => {
86-
return list.concat(
87-
fs
88-
.readdirSync(dir.src)
89-
// set full relative path
90-
.map(file => ({
91-
src: path.join(dir.src, file),
92-
dest: path.join(dir.dest, file)
93-
}))
94-
// omit dirs from file list
95-
.filter(file => fs.lstatSync(file.src).isFile())
96-
);
97-
}, []);
98-
files.forEach(verifyAbsent);
99-
return {files};
100-
}
101-
});
83+
// Make shallow array of files paths
84+
const files = assets.reduce((list, dir) => {
85+
return list.concat(
86+
fs
87+
.readdirSync(dir.src)
88+
// set full relative path
89+
.map(file => ({
90+
src: path.join(dir.src, file),
91+
dest: path.join(dir.dest, file)
92+
}))
93+
// omit dirs from file list
94+
.filter(file => fs.lstatSync(file.src).isFile())
95+
);
96+
}, []);
97+
files.forEach(verifyAbsent);
98+
return {files};
99+
}
100+
});
102101
}
103102

104103
function checkGitStatus() {

package-lock.json

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"@babel/runtime": "7.12.1",
5858
"@enact/dev-utils": "3.1.0",
5959
"@enact/template-moonstone": "3.1.0",
60-
"@pmmmwh/react-refresh-webpack-plugin": "0.3.3",
60+
"@pmmmwh/react-refresh-webpack-plugin": "0.4.3",
6161
"@typescript-eslint/eslint-plugin": "4.5.0",
6262
"@typescript-eslint/parser": "4.5.0",
6363
"@wojtekmaj/enzyme-adapter-react-17": "0.3.2",

0 commit comments

Comments
 (0)