javascript - Lerna:我怎样才能获得成功发布的包?
问题描述
我正在使用带有 lerna 和演示网站的 monorepo。我想发布更改的包并在演示中从 1 个命令(如npm run release
.
包.json:
...
"scripts": {
"release": "node ./release.js",
...
}
发布.js
const { spawnSync } = require('child_process');
const cmd = `npx lerna publish`;
const updatedPackages = spawnSync(cmd, { stdio: 'inherit', shell: true }); // there i want get list of successfully published packages.
udpdateDemo(updatedPackages); // custom function, which get list of packages and update it for demo
解决方案
推荐阅读
- haskell - 为什么在这种情况下读取函数不需要解析参数
- docker - Hazelcast 成员在 2 个不同的 docker 主机中
- node.js - 如何在没有唯一 ID 的情况下将数据保存在 Firebase 中?
- angular - CKEditor 4:如何在从 Angular CKEditor CDN 构建时添加自定义插件,如字数?
- python - 如何覆盖python元类方法?
- javascript - 中止 Dexie.js 查询
- xquery - Saxon xquery 验证失败 - 需要帮助来理解行为
- spring - Hibernate 在模式中找不到表
- python - 在 NumPy 中连接视图
- tableau-api - tableau 自定义排序 x 轴值