Skip to content

Commit

Permalink
fix: writeFile in monopkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
snomiao committed Apr 20, 2022
1 parent f261a26 commit d18e90a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/md-aggregate/package.json
Expand Up @@ -23,5 +23,5 @@
"publishConfig": {
"access": "public"
},
"gitHead": "01d7a6059eafd25815df5d44bdf264dcd1c288b5"
"gitHead": "f261a265844bf30e7094e09c4718c03e62f219d0"
}
6 changes: 3 additions & 3 deletions packages/mono-pkgs/monopkgs.mjs
@@ -1,5 +1,5 @@
#!/usr/bin/env node
import { readFile } from "fs/promises";
import { readFile, writeFile } from "fs/promises";
import { globby } from "globby";
import path, { relative, resolve } from "path";
async function cli(rawArgv) {
Expand Down Expand Up @@ -40,8 +40,8 @@ async function cli(rawArgv) {
};
Object.assign(pkg, info);
const out = JSON.stringify(pkg, null, 2);
console.log(out);
// console.log(pkgPath);
// console.log(out);
console.log(pkgPath);
await writeFile(pkgPath, out);
};
await Promise.all(pkgs.map(pkgParse));
Expand Down
2 changes: 1 addition & 1 deletion packages/snosay/package.json
Expand Up @@ -38,5 +38,5 @@
"publishConfig": {
"access": "public"
},
"gitHead": "c93e4bd8b39c13c78ca8f511923f0ad33deaf17d"
"gitHead": "f261a265844bf30e7094e09c4718c03e62f219d0"
}

0 comments on commit d18e90a

Please sign in to comment.