Manages Devian TypeScript project's single workspace structure and npm policies. Enforces root-level operations, workspace scripts, and prevents nested installations.
This skill has safety concerns that you should review before use. Some patterns were detected that may pose a risk.Safety score: 60/100.
KillerSkills scans all public content for safety. Use caution before installing or executing flagged content.
Defines and enforces the single workspace structure and npm policies for Devian TypeScript projects (v10).
This skill helps you manage Devian v10 TypeScript projects by:
The project uses a **single workspace root** architecture:
```
framework-ts/
├── package.json # Root workspace manifest
├── package-lock.json # Only valid lockfile
├── node_modules/ # Only valid node_modules
├── tsconfig.json # Root TypeScript config
├── module/*/ # Core modules
├── apps/*/ # Applications
└── tools/*/ # Build tools
```
**MUST** run all npm commands from `framework-ts/` directory:
```bash
cd framework-ts
npm install
npm ci
npm run <script>
```
**MUST NOT** run npm commands in subdirectories (`module/*`, `apps/*`, `tools/*`).
When working with a Devian v10 project:
1. Check that you're in the `framework-ts/` directory
2. Verify `package.json` contains `"workspaces"` array
3. Confirm workspace paths: `["module/*", "apps/*", "tools/*"]`
Always install from the workspace root:
```bash
cd framework-ts
npm install
```
For CI/CD environments:
```bash
cd framework-ts
npm ci
```
Use the standardized npm workspace scripts:
| Command | Purpose | Example |
|---------|---------|---------|
| `npm run builder -- <input>` | Run build tool | `npm run builder -- ../input/input_common.json` |
| `npm run archive -- <args>` | Archive project | `npm run archive -- --output ./archive` |
| `npm run dev:client` | Start client dev server | `npm run dev:client` |
| `npm run start:server` | Start game server | `npm run start:server` |
The root `tsconfig.json` defines module aliases:
When importing core modules:
```typescript
import { Something } from '@devian/core';
```
If you encounter lockfile corruption or inconsistencies:
```bash
cd framework-ts
rm -rf node_modules package-lock.json
npm install
```
**Warning**: Only do this when absolutely necessary. Prefer `npm ci` in CI/CD.
Before committing changes:
1. **Running `npm install` in subdirectories** — Always use workspace root
2. **Creating nested node_modules** — Remove immediately if found
3. **Ignoring workspace scripts** — Use standardized scripts instead of direct workspace commands
4. **Modifying subdirectory package.json versions** — Manage versions through workspace root
```json
{
"name": "devian-framework-ts",
"version": "10.0.0",
"type": "module",
"private": true,
"workspaces": [
"module/*",
"apps/*",
"tools/*"
],
"scripts": {
"builder": "npm -w builder run build --",
"archive": "npm -w archive run archive --",
"dev:client": "npm -w game-client run dev",
"start:server": "npm -w game-server run start"
}
}
```
Key settings in `framework-ts/tsconfig.json`:
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/devian-v10-workspace-management/raw