Commit 3caf78bf authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

contracts-bedrock: fix warning in node js (#10111)

The following warning was happening in CI:

```
(node:11982) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
```

Simply replaces the `rmdir` with `rm`. Note that the `sync` methods
are used here instead of the async promise based methods.
parent c4078e54
...@@ -81,8 +81,8 @@ const main = async () => { ...@@ -81,8 +81,8 @@ const main = async () => {
const storageLayoutDir = path.join(outdir, 'storageLayout') const storageLayoutDir = path.join(outdir, 'storageLayout')
const abiDir = path.join(outdir, 'abi') const abiDir = path.join(outdir, 'abi')
fs.rmdirSync(storageLayoutDir, { recursive: true }) fs.rmSync(storageLayoutDir, { recursive: true })
fs.rmdirSync(abiDir, { recursive: true }) fs.rmSync(abiDir, { recursive: true })
fs.mkdirSync(storageLayoutDir, { recursive: true }) fs.mkdirSync(storageLayoutDir, { recursive: true })
fs.mkdirSync(abiDir, { recursive: true }) fs.mkdirSync(abiDir, { recursive: true })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment