@pushwoosh/frontend-builder-engine 0.1.6 → 0.1.7

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.
@@ -31,12 +31,19 @@ function smartMerge(obj, extend) {
31
31
  return result;
32
32
  }
33
33
 
34
+ export function readTsConfig(tsConfig) {
35
+ const { config } = ts.readConfigFile(tsConfig, ts.sys.readFile);
36
+ return config;
37
+ }
38
+
34
39
  function loadTsConfig(extend) {
35
40
  const tsConfigPath = path.resolve(__dirname, 'tsconfig.json');
36
- const { config } = ts.readConfigFile(tsConfigPath, ts.sys.readFile);
41
+ const config = readTsConfig(tsConfigPath);
37
42
  return smartMerge(config, extend);
38
43
  }
39
44
 
40
45
  module.exports = {
46
+ readTsConfig,
47
+ smartMerge,
41
48
  loadTsConfig,
42
49
  };
package/lib/test.js ADDED
@@ -0,0 +1,9 @@
1
+ const path = require('path');
2
+ const ts = require('typescript');
3
+
4
+ function main() {
5
+ const tsConfigPath = path.resolve(__dirname, 'tsconfigm.json');
6
+ const q = ts.readConfigFile(tsConfigPath, ts.sys.readFile);
7
+ console.log(q);
8
+ }
9
+ main();
package/lib/tsconfig.json CHANGED
@@ -13,6 +13,7 @@
13
13
  "importHelpers": true,
14
14
  "declaration": true,
15
15
  "sourceMap": false,
16
+ "skipLibCheck": true,
16
17
  /* ----- Strict Type-Checking Options ----- */
17
18
  "strict": true,
18
19
  "noImplicitAny": true,
@@ -2,7 +2,6 @@
2
2
  "extends": "./tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "rootDir": "..",
5
- "skipLibCheck": true,
6
5
  "baseUrl": ".",
7
6
  "paths": {
8
7
  "~/src": ["../src"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/frontend-builder-engine",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Pushwoosh frontend builder engine",
5
5
  "main": "./lib/pushwoosh-frontend-builder-engine.js",
6
6
  "scripts": {