Skip to content

Commit 628d15d

Browse files
committed
fix(plugin): replace require() with ES imports in build.spec.ts
Fixes @typescript-eslint/no-require-imports lint error from CI.
1 parent c4a27bd commit 628d15d

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

packages/claude-code-plugin/scripts/build.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* by MCP server (single source of truth).
1010
*/
1111

12+
import * as path from 'path';
13+
import * as fs from 'fs';
1214
import { describe, it, expect, beforeAll } from 'vitest';
1315

1416
// Import utilities that are testable in isolation
@@ -188,10 +190,6 @@ describe('build script orchestration', () => {
188190
// Packaging Integration — namespaced command assets
189191
// ============================================================================
190192
describe('packaging integration', () => {
191-
// Use a fresh import of path/fs to keep these tests self-contained
192-
const path = require('path');
193-
const fs = require('fs');
194-
195193
const pluginRoot = path.resolve(__dirname, '..');
196194
const commandsDir = path.join(pluginRoot, 'commands');
197195

0 commit comments

Comments
 (0)