@plotdb/srcbuild 0.0.52 → 0.0.53

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.
@@ -16,11 +16,11 @@ bundlebuild = function(opt){
16
16
  js: {}
17
17
  };
18
18
  this.configFile = opt.configFile || null;
19
- this._relativePath = !(opt.relativePath != null)
20
- ? false
21
- : typeof opt.relativePath === 'string'
22
- ? opt.relativePath
23
- : this.configFile ? path.dirname(this.configFile) : false;
19
+ this._relativePath = typeof opt.relativePath === 'string'
20
+ ? opt.relativePath
21
+ : opt.relativePath && this.configFile
22
+ ? path.dirname(this.configFile)
23
+ : process.cwd();
24
24
  this.prepareConfig();
25
25
  return this.init(import$({
26
26
  srcdir: 'static',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "zbryikt",
3
3
  "name": "@plotdb/srcbuild",
4
- "version": "0.0.52",
4
+ "version": "0.0.53",
5
5
  "description": "",
6
6
  "main": "./dist/main.js",
7
7
  "files": [