weboptimizer 2.0.1265 → 2.0.1267

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.
package/configurator.js CHANGED
@@ -135,12 +135,11 @@ var load = function load(context) {
135
135
  givenCommandLineArguments: commandLineArguments
136
136
  };
137
137
  if (filePath) {
138
- runtimeInformation = JSON.parse((0, _fs.readFileSync)(filePath, {
138
+ var fileContent = (0, _fs.readFileSync)(filePath, {
139
139
  encoding: configuration.encoding
140
- }));
141
- (0, _fs.unlink)(filePath, function (error) {
142
- if (error) throw error;
143
140
  });
141
+ runtimeInformation = JSON.parse(fileContent);
142
+ (0, _fs.unlinkSync)(filePath);
144
143
  }
145
144
  //// region task specific configuration
146
145
  ///// region apply task type specific configuration
package/declarations.d.ts CHANGED
@@ -4,12 +4,14 @@
4
4
  dependency cycle.
5
5
  */
6
6
  type Mapping<T = string> = {[key:string]:T}
7
+
7
8
  interface PostcssTransformer {
8
9
  postcssPlugin: string
9
10
  postcssVersion: string
10
11
 
11
12
  (root:object, result:object):Promise<void>|void
12
13
  }
14
+
13
15
  /** @module declarations */
14
16
  declare module 'babel-preset-minify'
15
17
  declare module 'html-loader'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1265",
3
+ "version": "2.0.1267",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
package/tsconfig.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "experimentalDecorators": true,
11
11
  "isolatedModules": true,
12
12
  "jsx": "react",
13
- "lib": ["dom", "esnext"],
13
+ "lib": ["DOM", "ESNext"],
14
14
  "module": "esnext",
15
15
  "moduleResolution": "node",
16
16
  "paths": {