ciya
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

ciya

Build moduleGraph and find circular relations. Respect paths in tsconfig.json

npm npm

usage

pnpm i ciya

features

  • Create module graph from entry file
  • Support node apis and cli usages

CLI

Usage:
  $ ciya <entry>

Commands:
  <entry>  [string] Build module graph from entry file

For more info, run any command with the `--help` flag:
  $ ciya --help

Options:
  --root [root]          [string] Resolve entry file and search all available tsconfig.json from root dir 
  --logLevel [logLevel]  [string] log level (default: silent)
  -h, --help             Display this message 

Node APIs

import { createModuleGraph } from 'ciya'

const moduleGraph = createModuleGraph(entry, { logger, root })

Types define of ModuleGraph

options

entry

  • type: string
  • require: true

Create module graph from entry file.

options.logger

  • type: Logger
  • require: false

options.root

Resolve entry file and search all available tsconfig files from root, default is process.cwd()

  • type: string
  • require: false

Readme

Keywords

none

Package Sidebar

Install

npm i ciya

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

129 kB

Total Files

12

Last publish

Collaborators

  • qidanta