# @aligov/pegasus-builder

> 天马构建器基础服务

Latest version **0.3.3** (published 2021-10-26) · NO license · 0 weekly downloads

## Install

```sh
npm install @aligov/pegasus-builder
pnpm add @aligov/pegasus-builder
yarn add @aligov/pegasus-builder
bun add @aligov/pegasus-builder
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.3 |
| Published | 2021-10-26 |
| First published | 2021-10-26 |
| Weekly downloads | 0 |
| License | NO |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 31.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | desen.mds |
| Maintainers | shenyu.wsy, liunian, tao1991123, itrip, xiazhiqiang, zhousufa, mo.zhou, guoliang.hgl, zwhu, daip, baizhao |

## Links

- npm: https://www.npmjs.com/package/@aligov/pegasus-builder
- Repository: git@gitlab.alibaba-inc.com:pegasus/pegasus-builder
- npm.io page: https://npm.io/package/@aligov/pegasus-builder

## Dependencies (5)

- [semver](https://npm.io/package/semver.md) ^6.0.0
- [urllib](https://npm.io/package/urllib.md) ^2.33.2
- [fs-extra](https://npm.io/package/fs-extra.md) ^7.0.1
- [@aligov/mui-uniq](https://npm.io/package/@aligov/mui-uniq.md) ^1.1.9
- [@aligov/upx-client](https://npm.io/package/@aligov/upx-client.md) ^1.0.11

## Recent versions

- 0.3.3 (latest) — 2021-10-26

## README

## pegasus-builder

天马构建器依赖的相关基础服务

### 模块 seed 依赖计算

```js
const { seed } = require('@ali/pegasus-builder');

const packages = {
  '@ali/universal-env': '^1.1.10',
  'rax-text': '*',
  'rax-view': '^0.6.5',
  '@ali/mui-zepto': '5.0.x',
  '@ali/pmod-fedata': '5.0.9999',
  '@ali/pcom-page-error': '*',
  '@ali/pi-kissy-pc': '*'
};
seed(packages).then(res => {
  //{seed:{}, unpublished:[]}
  console.log(res);
});
```

### 模块预发发布版本计算服务

```js
const { beta } = require('@ali/pegasus-builder');

const name = '@ali/tnpm-beta-test';
const version = '1.1.0';
const notfound = '1.2.0';

beta(name, version).then(betaVersion => {
  // 1.1.0-beta.2
  console.log(betaVersion);
});

beta(name, notfound).then(betaVersion => {
  // 1.2.0-beta.0
  console.log(betaVersion);
});
```

---
_Source: https://npm.io/package/@aligov/pegasus-builder · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
