yg-team-cli 2.5.0 → 2.5.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.
- package/README.md +3 -0
- package/dist/cli.js +3 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -213,9 +213,11 @@ var init_utils = __esm({
|
|
|
213
213
|
return await fs.readFile(file, "utf-8");
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
216
|
-
*
|
|
216
|
+
* 写入文件内容(自动创建父目录)
|
|
217
217
|
*/
|
|
218
218
|
static async write(file, content) {
|
|
219
|
+
const dir = path2.dirname(file);
|
|
220
|
+
await fs.ensureDir(dir);
|
|
219
221
|
await fs.writeFile(file, content, "utf-8");
|
|
220
222
|
}
|
|
221
223
|
/**
|