Skip to content

Commit ad024d7

Browse files
committed
Update npm packages
1 parent de88b8d commit ad024d7

File tree

11 files changed

+10098
-3666
lines changed

11 files changed

+10098
-3666
lines changed

babel.config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"plugins": ["@babel/plugin-transform-flow-strip-types"]
3+
}

build.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ const FILES_TO_COPY = [
2222
.map((file) => ({ src: path.join(SRC, file), dest: file })),
2323
];
2424

25-
if (fs.existsSync(BUILD)) {
25+
if (fs.rmSync !== undefined) {
26+
fs.rmSync(BUILD, { recursive: true, force: true });
27+
} else if (fs.existsSync(BUILD)) {
2628
fs.rmdirSync(BUILD, { recursive: true });
2729
}
2830

examples/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ module.exports = {
235235
{
236236
// These files are used in README.md.
237237
files: ["readme-*.js"],
238-
parser: "babel-eslint",
238+
parser: "@babel/eslint-parser",
239239
},
240240
{
241241
// TypeScript.

0 commit comments

Comments
 (0)