@batijs/build 0.0.246 → 0.0.248

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -0
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -104,6 +104,10 @@ async function transformFileAfterExec(filepath, fileContent) {
104
104
  return fileContent;
105
105
  case ".json":
106
106
  return JSON.stringify(fileContent, null, 2);
107
+ case ".yml":
108
+ case ".yaml":
109
+ if (typeof fileContent === "string") return fileContent;
110
+ return fileContent.toString();
107
111
  }
108
112
  }
109
113
  throw new Error(`Unsupported file extension ${parsed.base} (${filepath})`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/build",
3
- "version": "0.0.246",
3
+ "version": "0.0.248",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -10,10 +10,10 @@
10
10
  "devDependencies": {
11
11
  "@types/node": "^18.19.14",
12
12
  "tsup": "^8.2.4",
13
- "@batijs/compile": "0.0.246"
13
+ "@batijs/compile": "0.0.248"
14
14
  },
15
15
  "dependencies": {
16
- "@batijs/core": "0.0.246"
16
+ "@batijs/core": "0.0.248"
17
17
  },
18
18
  "main": "./dist/index.js",
19
19
  "module": "./dist/index.js",