feat(MQ-001): initialize pnpm workspace with strict TS lint and vitest

This commit is contained in:
2026-03-06 08:11:55 -06:00
parent 9bd1450f90
commit f2435471af
12 changed files with 1984 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
{
"name": "@mosaic/queue",
"version": "0.0.1",
"description": "Valkey-backed task queue exposed via CLI and MCP",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\" \"vitest.config.ts\"",
"build": "tsc -p tsconfig.build.json",
"test": "vitest run"
}
}

View File

@@ -0,0 +1 @@
export const packageVersion = '0.0.1';

View File

@@ -0,0 +1,9 @@
import { describe, expect, it } from 'vitest';
import { packageVersion } from '../src/index.js';
describe('package bootstrap', () => {
it('exposes package version constant', () => {
expect(packageVersion).toBe('0.0.1');
});
});

View File

@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": false,
"rootDir": "src",
"outDir": "dist"
},
"include": ["src/**/*.ts"],
"exclude": ["tests/**/*"]
}

View File

@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"rootDir": "."
},
"include": ["src/**/*.ts", "tests/**/*.ts", "vitest.config.ts"]
}

View File

@@ -0,0 +1,8 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
environment: 'node',
include: ['tests/**/*.test.ts'],
},
});