Manages TypeScript workspace structure and npm policies for Devian v10 framework projects. Enforces single workspace root, prevents nested installs, and provides build/archive/dev scripts.
Manage the single workspace structure and npm policies for Devian TypeScript v10 framework projects.
This skill helps you work with Devian v10 TypeScript projects by enforcing workspace structure rules, managing npm dependencies, and providing build/archive/dev operations. It ensures that all npm operations happen at the workspace root and prevents common misconfigurations.
**Hard Rules (MUST follow):**
When working with the project:
1. Always verify you're in `framework-ts/` directory before npm commands
2. If you detect `package-lock.json` or `node_modules` in subfolders, warn the user
3. All npm operations must run from workspace root: `cd framework-ts && npm install`
The root `framework-ts/package.json` should contain:
```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"
}
}
```
Provide these commands to users based on their needs:
| Task | Command | Example |
|------|---------|---------|
| Build project | `npm run builder -- ../path/to/input.json` | `npm run builder -- ../input/input_common.json` |
| Archive project | `npm run archive -- <args>` | `npm run archive -- --output dist.zip` |
| Dev client | `npm run dev:client` | Starts development server |
| Start server | `npm run start:server` | Starts game server |
**Usage Pattern:**
```bash
cd framework-ts
npm run builder -- ../input/input_common.json
```
Verify `framework-ts/tsconfig.json` contains:
```json
{
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"moduleResolution": "node",
"baseUrl": ".",
"paths": {
"@devian/core": ["./module/devian/src"]
}
}
}
```
**CI/CD Environment:**
```bash
cd framework-ts
npm ci
```
**Development Environment:**
```bash
cd framework-ts
npm install
```
**Recovery Procedure (lockfile corruption):**
```bash
cd framework-ts
rm -rf node_modules package-lock.json
npm install
```
Before completing any task, verify:
If you encounter these issues:
**Issue**: Dependencies not found
**Solution**:
```bash
cd framework-ts
npm install
```
**Issue**: Multiple lockfiles detected
**Solution**:
```bash
find . -name "package-lock.json" -not -path "./framework-ts/package-lock.json" -delete
cd framework-ts
npm install
```
**Issue**: Build fails with module errors
**Solution**: Check `tsconfig.json` paths and workspace configuration
```bash
cd framework-ts
npm install
npm run builder -- ../input/input_common.json
```
```bash
cd framework-ts
npm run dev:client
npm run start:server
```
```bash
cd framework-ts
npm ci
npm run builder -- ../input/production.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-manager/raw