bajo 2.0.0 → 2.0.1

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.
@@ -144,21 +144,12 @@ class BasePlugin {
144
144
  * @param {...any} [args] - Argument variables you might want to add to the error object
145
145
  * @returns {Object} Err instance
146
146
  */
147
- err = (msg, ...args) => {
147
+ error = (msg, ...args) => {
148
148
  if (!this.print) return new Error(msg, ...args)
149
149
  const error = new Err(this, msg, ...args)
150
150
  return error.write()
151
151
  }
152
152
 
153
- /**
154
- * Alias to err () method above
155
- *
156
- * @method
157
- */
158
- error = (msg, ...args) => {
159
- return this.error(msg, ...args)
160
- }
161
-
162
153
  /**
163
154
  * Create an instance of Err object, display it on screen and then force
164
155
  * terminate the app process
@@ -87,7 +87,7 @@ export async function buildBaseConfig () {
87
87
  this.config = defaultsDeep({}, this.app.env._, this.app.argv._)
88
88
  this.alias = this.name
89
89
  set(this, 'dir.base', this.app.dir)
90
- const path = currentLoc(import.meta).dir + '/../../..'
90
+ const path = currentLoc(import.meta).dir + '/../..'
91
91
  set(this, 'dir.pkg', this.resolvePath(path))
92
92
  if (!get(this, 'dir.data')) set(this, 'dir.data', `${this.dir.base}/data`)
93
93
  this.dir.data = this.resolvePath(this.dir.data)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bajo",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "A framework to build a giant monstrous app rapidly",
5
5
  "main": "index.js",
6
6
  "scripts": {