Skip to content

Commit

Permalink
Change mkdir to ensureDir (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
zBritva authored and ignatvilesov committed Nov 20, 2018
1 parent 92b6821 commit e9a2acf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class PowerBICustomVisualsWebpackPlugin {
dependenciesSchema: null,
modules: true,
visualSourceLocation: "",
pluginLocation: path.join(process.cwd(), ".tmp", "precompile", "visualPlugin.ts")
pluginLocation: path.join(".tmp", "precompile", "visualPlugin.ts")
};

this._name = "PowerBICustomVisualsWebpackPlugin";
Expand Down Expand Up @@ -185,7 +185,7 @@ class PowerBICustomVisualsWebpackPlugin {
pluginFolderPath.pop();
let pluginFolder = path.join(process.cwd(), pluginFolderPath.join(path.sep));
if (!(await fs.exists(pluginFolder))) {
await fs.mkdir(pluginFolder);
await fs.ensureDir(pluginFolder);
}
return await fs.writeFile(
path.join(process.cwd(), this.options.pluginLocation),
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powerbi-visuals-webpack-plugin",
"version": "1.0.14",
"version": "1.0.15",
"description": "PowerBI Custom Visuals webpack plugin",
"main": "index.js",
"keywords": [
Expand Down

0 comments on commit e9a2acf

Please sign in to comment.