create-yeow 0.2.36 → 0.2.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-yeow",
3
- "version": "0.2.36",
3
+ "version": "0.2.37",
4
4
  "description": "Scaffold a Yeow plugin project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -199,6 +199,7 @@ async function getSourceMapConsumer() {
199
199
  async function printFormattedError(err) {
200
200
  const c = { r: '\x1b[0m', R: '\x1b[31m', Y: '\x1b[33m', C: '\x1b[36m', B: '\x1b[1m', D: '\x1b[2m' };
201
201
  let out = `\n${c.R}${c.B} JS Error [${err.plugin}]${c.r}\n`;
202
+ if (err.context) out += ` ${c.D}context: ${err.context}${c.r}\n`;
202
203
  out += ` ${c.Y}${err.message}${c.r}\n`;
203
204
 
204
205
  const consumer = (err.fileName === 'main.js' || err.stack) ? await getSourceMapConsumer() : null;
@@ -7,7 +7,8 @@
7
7
  "dev": "node .yeow/dev-server.js"
8
8
  },
9
9
  "dependencies": {
10
- "yeow-api": "^0.2.22"
10
+ "yeow-api": "^0.2.22",
11
+ "yeow-utils": "^0.1.0"
11
12
  },
12
13
  "devDependencies": {
13
14
  "esbuild": "^0.25.0",