New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@libria/scaffold-plugin-ts-workspace

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libria/scaffold-plugin-ts-workspace

NestJs cli wrapper template for @libria/scaffold

latest
Source
npmnpm
Version
0.0.6
Version published
Weekly downloads
6
100%
Maintainers
1
Weekly downloads
 
Created
Source

@libria/scaffold-plugin-ts-workspace

TypeScript workspace (monorepo) template for @libria/scaffold.

This plugin manages TypeScript monorepo workspaces with npm workspaces and TypeScript project references. It provides two subcommands: init to create a new workspace, and add to add projects into an existing workspace.

Installation

npm install @libria/scaffold-plugin-ts-workspace

Usage

Initialize a new workspace

# Interactive — prompts for all options
lb-scaffold new ts-workspace my-monorepo

# Non-interactive
lb-scaffold new ts-workspace my-monorepo --package-manager npm --git-init

Add a project to an existing workspace

# Interactive — prompts for template and options
lb-scaffold new ts-workspace my-project --workspace ./my-monorepo --template ts-lib

# Add an Angular app
lb-scaffold new ts-workspace my-app --workspace ./my-monorepo --template angular

# Add a NestJS backend
lb-scaffold new ts-workspace my-api --workspace ./my-monorepo --template nestjs

Supported Options

init subcommand

OptionTypeDescription
--package-managerselectPackage manager (npm, yarn, pnpm)
--git-initbooleanInitialize a git repository

add subcommand

OptionTypeDescription
--workspacestringPath to the workspace root
--templateselectTemplate to use (ts-lib, angular, nestjs, nextjs)
--base-pathstringSubdirectory for the new project (e.g. packages)

How It Works

The init subcommand creates a workspace directory with a root package.json (configured for npm workspaces), a shared tsconfig.base.json, and a root tsconfig.json with project references.

The add subcommand delegates to other template plugins (ts-lib, angular, nestjs, nextjs) to scaffold the project, then automatically:

  • Adds the project to the workspace's package.json workspaces array
  • Adds a TypeScript project reference to the root tsconfig.json
  • Patches the project's tsconfig.json to extend from the workspace's tsconfig.base.json

License

MIT

Keywords

typescript

FAQs

Package last updated on 17 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts