wrsmith108/linear-claude-skill
Linear
UnverifiedManaging Linear issues, projects, and teams. Use when working with Linear tasks, creating issues, updating status, querying projects, or managing team workflows.
scripts/build.mjs
View on GitHub#!/usr/bin/env node
/**
* esbuild pre-compilation script
*
* Bundles all TypeScript entry points in scripts/ to dist/ for
* faster CLI startup (eliminates tsx runtime compilation overhead).
*
* Usage:
* node scripts/build.mjs
*/
import * as esbuild from 'esbuild';
import { readdirSync } from 'node:fs';
// Use readdirSync + filter instead of globSync (Node 22+) for compatibility
const entryPoints = readdirSync('scripts')
.filter(f => f.endsWith('.ts'))
.map(f => `scripts/${f}`);
await esbuild.build({
entryPoints,
bundle: true,
platform: 'node',
target: 'es2022',
format: 'esm',
outdir: 'dist',
external: ['@linear/sdk'],
sourcemap: false,
minify: false,
define: { '__BUNDLED__': 'true' },
});
console.log(`Built ${entryPoints.length} entry points to dist/`);
// Compile test files separately (same config minus __BUNDLED__ define)
const testDir = 'scripts/__tests__';
try {
const testFiles = readdirSync(testDir)
.filter(f => f.endsWith('.ts'))
.map(f => `${testDir}/${f}`);
if (testFiles.length > 0) {
await esbuild.build({
entryPoints: testFiles,
bundle: true,
platform: 'node',
target: 'es2022',
format: 'esm',
outdir: 'dist/__tests__',
external: ['@linear/sdk'],
sourcemap: false,
minify: false,
});
console.log(`Built ${testFiles.length} test files to dist/__tests__/`);
}
} catch (e) {
if (e.code !== 'ENOENT') throw e;
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies. | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |
| meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要". | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |