@onepercentio/one-ui 0.13.7 → 0.13.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,14 @@ function resolveFromMainContext(module) {
9
9
  }
10
10
  const { join, relative, resolve } = require("path");
11
11
  const HTMLPlugin = require.main.require("html-webpack-plugin");
12
- const { writeFileSync, readdirSync, lstatSync, rmSync } = require("fs");
12
+ const {
13
+ writeFileSync,
14
+ readdirSync,
15
+ lstatSync,
16
+ rmSync,
17
+ existsSync,
18
+ mkdirSync,
19
+ } = require("fs");
13
20
  const lodash = require("lodash");
14
21
  const { findPathDeep } = require("deepdash")(lodash);
15
22
  const chalk = require("chalk");
@@ -108,6 +115,7 @@ function createConfig(
108
115
  },
109
116
  outputDir = join(resolve("."), "templates")
110
117
  ) {
118
+ if (!existsSync(outputDir)) mkdirSync(outputDir, { recursive: true });
111
119
  const results = findAllStaticGeneration();
112
120
  const entries = parseResultsrToEntries(results);
113
121
 
@@ -186,6 +194,7 @@ function createConfig(
186
194
  },
187
195
  ],
188
196
  });
197
+
189
198
  whereToPlaceTheNewLoaderPath.splice(1, 0, {
190
199
  test: /\.email\.tsx/,
191
200
  use: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onepercentio/one-ui",
3
- "version": "0.13.7",
3
+ "version": "0.13.8",
4
4
  "description": "A set of reusable components created through the development of Onepercent projects",
5
5
  "repository": "git@github.com:onepercentio/one-ui.git",
6
6
  "author": "Murilo Oliveira de Araujo <murilo.araujo@onepercent.io>",