# @pega/constellation-dx-components-build-utils

> This tool uses a 'v3' approach to group components in a library, create a component map, employ webpack, and load the library like Pega-generated components, constellation app-static.

Latest version **2.0.18** (published 2026-11-04) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install @pega/constellation-dx-components-build-utils
pnpm add @pega/constellation-dx-components-build-utils
yarn add @pega/constellation-dx-components-build-utils
bun add @pega/constellation-dx-components-build-utils
```

Provides the commands `dev-server`, `list-library`, `build-library`, `delete-library`, `publish-library`, `build-library-v3`.

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

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

## Facts

| | |
|---|---|
| Version | 2.0.18 |
| Published | 2026-11-04 |
| First published | 2023-09-26 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=24 |
| Dependencies | 25 |
| Unpacked size | 99.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Pegasystems |
| Maintainers | baipc, andrewlewis2, duddrc, ricmars, ssowersby, bob-difronzo, feenr-pega, cpmotion, pega-cosmos, ghosa4, sharv12, tumms2021389, vrspega, patilvishal, nikhilparmar, limj1 |
| Keywords | pega, custom-components-build-utils, custom-components-helper, custom-components-builder |

## Links

- npm: https://www.npmjs.com/package/@pega/constellation-dx-components-build-utils
- Repository: https://github.com/pegasystems/constellation-dx-components-build-utils
- Homepage: https://github.com/pegasystems/constellation-dx-components-build-utils#readme
- Issues: https://github.com/pegasystems/constellation-dx-components-build-utils/issues
- npm.io page: https://npm.io/package/@pega/constellation-dx-components-build-utils

## Dependencies (25)

- [arg](https://npm.io/package/arg.md) ^5.0.2
- [sass](https://npm.io/package/sass.md) ^1.106.1
- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [semver](https://npm.io/package/semver.md) ^7.7.2
- [webpack](https://npm.io/package/webpack.md) ^5.112.1
- [archiver](https://npm.io/package/archiver.md) ^8.0.0
- [inquirer](https://npm.io/package/inquirer.md) ^8.2.6
- [css-loader](https://npm.io/package/css-loader.md) ^7.1.5
- [@babel/core](https://npm.io/package/@babel/core.md) ^8.0.7
- [ora-classic](https://npm.io/package/ora-classic.md) ^5.4.2
- [sass-loader](https://npm.io/package/sass-loader.md) ^17.0.1
- [webpack-cli](https://npm.io/package/webpack-cli.md) ^6.0.1
- [babel-loader](https://npm.io/package/babel-loader.md) ^10.1.1
- [style-loader](https://npm.io/package/style-loader.md) ^4.0.0
- [os-browserify](https://npm.io/package/os-browserify.md) ^0.3.0
- [path-browserify](https://npm.io/package/path-browserify.md) ^1.0.1
- [replace-in-file](https://npm.io/package/replace-in-file.md) ^8.3.0
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^8.0.7
- [stream-browserify](https://npm.io/package/stream-browserify.md) ^3.0.0
- [webpack-dev-server](https://npm.io/package/webpack-dev-server.md) ^6.1.0
- [@babel/preset-react](https://npm.io/package/@babel/preset-react.md) ^8.0.1
- [constants-browserify](https://npm.io/package/constants-browserify.md) ^1.0.0
- [inquirer-tree-prompt](https://npm.io/package/inquirer-tree-prompt.md) ^1.1.2
- [webpack-stats-plugin](https://npm.io/package/webpack-stats-plugin.md) ^1.1.3
- [@babel/preset-typescript](https://npm.io/package/@babel/preset-typescript.md) ^8.0.7

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@progress/kendo-vue-listbox](https://npm.io/package/@progress/kendo-vue-listbox.md) — 932 weekly downloads

## Recent versions

- 2.0.18 (latest) — 2026-11-04
- 2.0.17 — 2026-10-06
- 2.0.16 — 2026-09-10
- 2.0.15 — 2026-06-10
- 2.0.14 — 2026-04-15
- 2.0.13 — 2026-04-06
- 2.0.12 — 2026-04-06
- 2.0.11-dev — 2025-11-03
- 2.0.11 — 2025-09-03
- 2.0.10 — 2025-09-03
- 2.0.9 — 2025-08-19
- 2.0.8-dev — 2025-08-12
- 2.0.8 — 2025-08-11
- 2.0.7 — 2025-07-14
- 2.0.6 — 2025-06-17
- … 45 more at https://npm.io/package/@pega/constellation-dx-components-build-utils/versions

## README

# ComponentLoader-v2

[![2.0.18](https://badge.fury.io/js/componentloader-v2.svg)](https://www.npmjs.com/package/@pega/constellation-dx-components-build-utils)
2.0.18

This tool uses a 'v2' approach to group components in a library, create a component map, employ webpack, and load the library like Pega-generated components.

## Installation

```bash
npm install @pega/constellation-dx-components-build-utils
```

```bash
npx build-library 
```
To build the library, the library name and version are determined by the package.json of your project

```bash
npx publish-library
```
To publish the library, ensure that the APPSTATICURL Constant is updated to the app-static server URL. You can pass an optional argument (e.g., --token-path=node_modules/@pega/xyz/.access_token) to specify the path to the access token file. Alternatively, you can update the constant.js file for B2STOKEN or TOKEN_PATH.

```bash
npx delete-library 
```
To delete the published library or a specific version from library published, Only dev version(e.g. 1.0.1-dev) can be deleted.

```bash
npx list-library 
```
To list the published libraries, including their respective versions and the components assets they offer.

### APIs

```bash
/**
 * This function generate build for library
 * @param {string} libraryName optional library name, else it will take value from package.json name
 * @param {string} libraryVersion optional library version, else it will take value from package.json version
 * @param {string} tokenParam optional B2S token for appstatic service, else it will take value from  constant.js B2STOKEN
 * @param {string} appStaticSVCUrl optional appstatic service url, else it will take value from constant.js APPSTATICURL
 */
 e.g. buildLib(libraryName, libraryVersion, tokenParam, appStaticSVCUrl)
 ```

 ```bash
/**
 * This function publish the library to appstatic service
 * @param {string} libraryName optional library name, else it will take value from package.json name
 * @param {string} libraryVersion optional library version, else it will take value from package.json version
 * @param {string} tokenParam optional B2S token for appstatic service, else it will take value from  constant.js B2STOKEN
 * @param {string} appStaticSVCUrl optional appstatic service url, else it will take value from constant.js APPSTATICURL
 */
 e.g. publishLib(libraryName, libraryVersion, tokenParam, appStaticSVCUrl)
 ```

 ```bash
/**
 * This function provides interactive list of libraries/versions available for org from token.
 * User can use down/up/right arrow to explore content of libraries.
 * @param {string} tokenParam optional B2S token for appstatic service, else it will take value from  constant.js B2STOKEN
 * @param {string} appStaticSVCUrl optional appstatic service url, else it will take value from constant.js APPSTATICURL
 */
 e.g. listLib(tokenParam, appStaticSVCUrl)
 ```

 ```bash
/**
 * This function return json response of libraries/versions available for org from token.
 * Example : ["Dept1_constellation-ui-gallery":["0.0.1":'[{comptsconfig json data}]',"0.0.2":'[{comptsconfig json data}]'],"Dept2_constellation-ui-gallery":["0.0.1":'[{comptsconfig json data}]',"0.0.2":'[{comptsconfig json data}]'],"lib-a":[],"pega-as-internal":["0.0.2":'[{comptsconfig json data}]'],"pega-constellation-ui-gallery":["1.0.0":'[{comptsconfig json data}]'],"pega-temp-internal":[]]
 * @param {string} tokenParam optional B2S token for appstatic service, else it will take value from  constant.js B2STOKEN
 * @param {string} appStaticSVCUrl optional appstatic service url, else it will take value from constant.js APPSTATICURL
 */
 e.g. await listLibJSONResponse(tokenParam, appStaticSVCUrl)
 ```

 ```bash
/**
 * This function provides interactive list of libraries/versions available for org from token.
    Take a choice prompt of deleting entire lib/specific version of a lib(Only -dev version allowed to delete)
 * @param {string} tokenParam optional B2S token for appstatic service, else it will take value from  constant.js B2STOKEN
 * @param {string} appStaticSVCUrl optional appstatic service url, else it will take value from constant.js APPSTATICURL
 */
 e.g. deleteLib(tokenParam, appStaticSVCUrl)
 ```

 ```bash
/**
 * This function delete library based on library/version passed.
 * @param {string} libraryName Library name required arg.
 * @param {string} libraryVersion Library version required arg.
 * @param {string} tokenParam optional B2S token for appstatic service, else it will take value from  constant.js B2STOKEN
 * @param {string} appStaticSVCUrl optional appstatic service url, else it will take value from constant.js APPSTATICURL
 */
 e.g. deleteLibVersion(libraryName, libraryVersion, tokenParam, appStaticSVCUrl)
 ```

 ```bash
/**
 * This function starts dev server for library based on library/version passed.
 * @param {string} libraryName Library name required arg.
 * @param {string} libraryVersion Library version required arg.
 * @param {string} port optional default 3030
 */
 e.g. devServerStart(libraryName, libraryVersion, localPort)
 ```

 ```bash
/**
 * This function generate build for library with v3 version
 * @param {string} libraryName optional library name, else it will take value from package.json name
 * @param {string} libraryVersion optional library version, else it will take value from package.json version
 * @param {string} tokenParam optional B2S token for appstatic service, else it will take value from  constant.js B2STOKEN
 * @param {string} appStaticSVCUrl optional appstatic service url, else it will take value from constant.js APPSTATICURL
  * @param {string} pathToBuild optional sub path of component dir, example : src/app/_components/custom-constellation
 */
 e.g. buildLibV3(libraryName, libraryVersion, tokenParam, appStaticSVCUrl, pathToBuild)
 ```

---
_Source: https://npm.io/package/@pega/constellation-dx-components-build-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
