Files
callstack__agent-device/scripts/__tests__/npm-skills-exclusion.test.ts
Michał Pierzchała b0d4b40467 chore: stop publishing skills to npm (#1730)
* chore: stop publishing skills to npm

* fix: align simulator skill startup

* docs: align agent setup with open-first workflow
2026-08-11 11:46:33 +02:00

22 lines
660 B
TypeScript

import assert from 'node:assert/strict';
import { readFile } from 'node:fs/promises';
import { join } from 'node:path';
import { test } from 'vitest';
const ROOT = join(import.meta.dirname, '..', '..');
test('the npm package excludes repository skills', async () => {
const manifest = JSON.parse(await readFile(join(ROOT, 'package.json'), 'utf8')) as {
files?: string[];
};
const publishedSkills = (manifest.files ?? []).filter(
(entry) => entry === 'skills' || entry.startsWith('skills/'),
);
assert.deepEqual(
publishedSkills,
[],
'skills are installed from the repository and must not ship in the npm CLI package',
);
});