@plotdb/srcbuild 0.0.45 → 0.0.46

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/dist/ext/pug.js CHANGED
@@ -152,7 +152,7 @@ pugbuild.prototype = import$(Object.create(base.prototype), {
152
152
  if (!(lng = lng || this$.i18n.language)) {
153
153
  return p;
154
154
  }
155
- return path.join(this$.intlbase, lng, p);
155
+ return path.join('/', this$.intlbase, lng, p);
156
156
  };
157
157
  ret.intlbase = function(p, lng){
158
158
  p == null && (p = "");
@@ -160,7 +160,7 @@ pugbuild.prototype = import$(Object.create(base.prototype), {
160
160
  if (!(lng = lng || this$.i18n.language)) {
161
161
  return p;
162
162
  }
163
- return path.join(this$.intlbase, lng, p);
163
+ return path.join('/', this$.intlbase, lng, p);
164
164
  };
165
165
  (ret.filters || (ret.filters = {})).i18n = function(t, o){
166
166
  return this$.i18n.t((t || '').trim());
package/dist/watch.js CHANGED
@@ -17,9 +17,11 @@ watch = function(opt){
17
17
  ignored: opt.ignored || ['.git'],
18
18
  ignoreInitial: true
19
19
  };
20
- this._root = opt.root ? Array.isArray(opt.root)
21
- ? opt.root
22
- : [opt.root] : void 8;
20
+ this._root = opt.root
21
+ ? Array.isArray(opt.root)
22
+ ? opt.root
23
+ : [opt.root]
24
+ : ['.'];
23
25
  this.log = opt.logger || aux.logger;
24
26
  this.init();
25
27
  return this;
@@ -34,14 +36,14 @@ watch.prototype = import$(Object.create(Object.prototype), {
34
36
  },
35
37
  init: function(){
36
38
  var this$ = this;
37
- this.watcher = chokidar.watch(this._root || ['.'], this.chokidarCfg).on('add', function(it){
39
+ this.watcher = chokidar.watch(this._root, this.chokidarCfg).on('add', function(it){
38
40
  return this$.add(path.normalize(it));
39
41
  }).on('change', function(it){
40
42
  return this$.change(path.normalize(it));
41
43
  }).on('unlink', function(it){
42
44
  return this$.unlink(path.normalize(it));
43
45
  });
44
- this.log.info("watching src for file change".cyan);
46
+ this.log.info(("watching " + this._root.join(' ') + " for file change").cyan);
45
47
  this.changeDebounced = debounce(function(){
46
48
  var files;
47
49
  files = Array.from(this$.buf.change);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "zbryikt",
3
3
  "name": "@plotdb/srcbuild",
4
- "version": "0.0.45",
4
+ "version": "0.0.46",
5
5
  "description": "",
6
6
  "main": "./dist/main.js",
7
7
  "files": [