npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@boristype/bt-cli

v0.1.0-alpha.6

Published

This tool compiles TypeScript into valid SP-XML JavaScript (also known as BorisScript), ensuring full compliance with the specific constraints and APIs of the WebSoft HCM platform.

Downloads

542

Readme

btc — BorisType Compiler

Транспилятор TypeScript → BorisScript для платформы WebSoft HCM.

Использует bt-ir для emit: TypeScript Compiler API создаёт Program с noEmit: true, а кодогенерация выполняется через compileSourceFile() из bt-ir.

CLI-команды

btc init          # Создать проект (scaffold)
btc build         # Однократная сборка
btc dev           # Watch mode с инкрементальной компиляцией и авто-линковкой
btc link          # Линковка модулей в dist/
btc push          # Деплой dist/ на сервер WSHCM
btc artifact      # Создание артефакта для развёртывания

Структура src/

src/
├── index.ts                  # Точка входа (CLI bootstrap)
├── cli/                      # Тонкие обёртки над commander
│   ├── index.ts              # Регистрация команд
│   └── commands/             # Обработчики CLI-команд
├── core/                     # Вся бизнес-логика
│   ├── config.ts             # Чтение tsconfig / btconfig
│   ├── logger.ts             # Re-export логгера
│   ├── utils/                # Общие утилиты
│   │   ├── logger.ts         # Logger (singleton)
│   │   ├── properties.ts     # Парсер .properties файлов
│   │   └── xml.ts            # Общие XML builder/parser
│   ├── building/             # Компиляция TS → BS
│   │   ├── compiler.ts       # Program + emit через bt-ir
│   │   ├── compile-mode.ts   # Определение режима файла (module/script)
│   │   ├── coordinator.ts    # Координатор dev mode (multi-package)
│   │   ├── files.ts          # Копирование non-TS файлов
│   │   ├── output.ts         # Пост-обработка вывода
│   │   └── types.ts          # BuildContext, BuildResult, BtcCompileOptions
│   ├── linking/              # Сборка dist/ из модулей
│   │   ├── index.ts          # Pipeline: resolve → link → finalize
│   │   ├── parsers.ts        # Парсеры PackageInfo
│   │   ├── executables.ts    # Сбор executables
│   │   ├── dependencies.ts   # Дерево зависимостей
│   │   ├── cache.ts          # Кэширование линковки
│   │   ├── context.ts        # LinkingContext
│   │   ├── types.ts          # PackageInfo, LinkingOptions
│   │   ├── linkers/          # Линковщики по типу пакета
│   │   ├── generators/       # Генерация api_ext.xml, init.xml и т.д.
│   │   └── utils/            # URL, copy, node_modules
│   ├── pushing/              # Деплой на сервер WSHCM
│   │   ├── session.ts        # DeploySession (с retry/reconnect)
│   │   ├── upload.ts         # Загрузка файлов
│   │   ├── config.ts         # Чтение btconfig.properties
│   │   ├── queue.ts          # DebouncedPushQueue для dev mode
│   │   └── reinit.ts         # Реинициализация на сервере
│   └── artifacting/          # Создание архивов для деплоя

Сборка

npm run build    # tsc → build/

Требуется Node.js 22+.