Skip to content

Commit 29b160a

Browse files
committed
fix: fixed wrong rimraf import
fixes #212
1 parent d10b9a9 commit 29b160a

File tree

1 file changed

+2
-2
lines changed
  • create/templates/core/cordova-plain-build

1 file changed

+2
-2
lines changed

create/templates/core/cordova-plain-build/build.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import rm from 'rimraf';
1+
import { rimraf } from 'rimraf';
22
import cpy from 'cpy';
33
import fs from 'fs';
44
import path from 'path';
@@ -21,7 +21,7 @@ function removeWebBlocks(content) {
2121
.replace(/([\n]{2,})/g, '\n');
2222
}
2323

24-
rm('./cordova/www').then(() => {
24+
rimraf('./cordova/www').then(() => {
2525
fs.mkdirSync(path.resolve('cordova', 'www'));
2626
cpy(['./www/**/*.*'], 'cordova/www', {
2727
parents: true,

0 commit comments

Comments
 (0)