@workskills/getskill 1.1.9 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -220,14 +220,15 @@ async function registerUser(username, email, password) {
220
220
  throw new Error(errorMessage);
221
221
  }
222
222
  }
223
- async function resolveRequiredValue(question, directValue, envValue, defaultValue) {
223
+ async function resolveRequiredValue(question, directValue, envValue, defaultValue, secret = false) {
224
224
  const candidate = directValue?.trim() || envValue?.trim();
225
225
  if (candidate) {
226
226
  return candidate;
227
227
  }
228
228
  return (0, system_1.promptForInput)(question, {
229
229
  required: true,
230
- defaultValue
230
+ defaultValue,
231
+ secret
231
232
  });
232
233
  }
233
234
  async function ensureRegistryAuth(options = {}) {
@@ -251,7 +252,7 @@ async function ensureRegistryAuth(options = {}) {
251
252
  }
252
253
  const username = await resolveRequiredValue('请输入 getskill 用户名', options.username, process.env.GETSKILL_USERNAME);
253
254
  let email = options.email?.trim() || process.env.GETSKILL_EMAIL?.trim();
254
- const password = await resolveRequiredValue('请输入 getskill 密码', options.password, process.env.GETSKILL_PASSWORD);
255
+ const password = await resolveRequiredValue('请输入 getskill 密码', options.password, process.env.GETSKILL_PASSWORD, undefined, true);
255
256
  try {
256
257
  const session = await createAccessToken(username, password);
257
258
  const normalizedSession = {
@@ -238,9 +238,13 @@ async function publishSkill(skillPath, options = {}) {
238
238
  catch {
239
239
  await (0, system_1.executeCommand)(`git remote add origin "${quoteShellArg(currentRemoteUrl)}"`, resolvedSkillPath);
240
240
  }
241
- const pushCommand = authSession && (0, publish_registry_1.isRegistryRepoUrl)(currentRemoteUrl)
242
- ? `git -c "http.extraHeader=${quoteShellArg((0, publish_registry_1.buildGitHttpExtraHeader)(authSession))}" push -u origin "${quoteShellArg(branch)}"`
243
- : `git push -u origin "${quoteShellArg(branch)}"`;
241
+ const pushEnv = authSession && (0, publish_registry_1.isRegistryRepoUrl)(currentRemoteUrl)
242
+ ? {
243
+ GIT_CONFIG_COUNT: '1',
244
+ GIT_CONFIG_KEY_0: 'http.extraHeader',
245
+ GIT_CONFIG_VALUE_0: (0, publish_registry_1.buildGitHttpExtraHeader)(authSession)
246
+ }
247
+ : undefined;
244
248
  await (0, system_1.executeCommand)(`git checkout -B "${quoteShellArg(branch)}"`, resolvedSkillPath);
245
249
  await ensureLocalGitIdentity(resolvedSkillPath, authSession?.username || options.username, authSession?.email || options.email || null);
246
250
  await (0, system_1.executeCommand)('git add .', resolvedSkillPath);
@@ -260,7 +264,7 @@ async function publishSkill(skillPath, options = {}) {
260
264
  throw error;
261
265
  }
262
266
  }
263
- await (0, system_1.executeCommand)(pushCommand, resolvedSkillPath);
267
+ await (0, system_1.executeCommand)(`git push -u origin "${quoteShellArg(branch)}"`, resolvedSkillPath, pushEnv ? { env: pushEnv } : undefined);
264
268
  logger_1.default.info(`已发布技能目录: ${resolvedSkillPath}`);
265
269
  return {
266
270
  skillPath: resolvedSkillPath,
@@ -12,5 +12,6 @@ export declare function isInteractiveTerminal(): boolean;
12
12
  export declare function promptForInput(question: string, options?: {
13
13
  defaultValue?: string;
14
14
  required?: boolean;
15
+ secret?: boolean;
15
16
  }): Promise<string>;
16
17
  export declare function getGitCommitHash(repoPath: string): Promise<string | null>;
@@ -264,10 +264,29 @@ function promptForInput(question, options = {}) {
264
264
  : `${question}: `;
265
265
  const rl = readline_1.default.createInterface({
266
266
  input: process.stdin,
267
- output: process.stdout
267
+ output: process.stdout,
268
+ terminal: true
268
269
  });
270
+ if (options.secret) {
271
+ const originalWrite = rl._writeToOutput;
272
+ rl._writeToOutput = (value) => {
273
+ if (value.startsWith(promptText)) {
274
+ process.stdout.write(value);
275
+ return;
276
+ }
277
+ if (value.includes('\n')) {
278
+ process.stdout.write(value);
279
+ return;
280
+ }
281
+ process.stdout.write('*');
282
+ };
283
+ void originalWrite;
284
+ }
269
285
  rl.question(promptText, (answer) => {
270
286
  rl.close();
287
+ if (options.secret) {
288
+ process.stdout.write('\n');
289
+ }
271
290
  const finalValue = answer.trim() || options.defaultValue || '';
272
291
  if (options.required && !finalValue) {
273
292
  reject(new Error(`${question} 不能为空`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workskills/getskill",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "A skill management tool for OpenClaw that enables searching, downloading, and updating skill files from the getskill.work repository",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",
@@ -59,7 +59,9 @@
59
59
  "win32"
60
60
  ],
61
61
  "files": [
62
- "dist/",
62
+ "dist/main.js",
63
+ "dist/main.d.ts",
64
+ "dist/lib/",
63
65
  "README.md",
64
66
  "EXAMPLES.md",
65
67
  "LICENSE"
@@ -1 +0,0 @@
1
- export {};
@@ -1,92 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __importDefault = (this && this.__importDefault) || function (mod) {
36
- return (mod && mod.__esModule) ? mod : { "default": mod };
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- const path_1 = __importDefault(require("path"));
40
- const publish_registry_1 = require("./lib/publish-registry");
41
- const getskill = __importStar(require("./main"));
42
- async function run() {
43
- const keyword = 'pdf';
44
- console.log('步骤 0/5: 清空本地登录状态,验证未登录默认场景...');
45
- (0, publish_registry_1.clearAuthSession)();
46
- if ((0, publish_registry_1.loadAuthSession)()) {
47
- throw new Error('清空登录状态失败,当前仍存在本地登录态');
48
- }
49
- console.log(' 当前状态: 未登录');
50
- console.log('步骤 1/5: 搜索关键词 "pdf"...');
51
- const results = await getskill.searchSkills(keyword);
52
- if (!Array.isArray(results) || results.length === 0) {
53
- throw new Error('搜索结果为空,无法继续测试');
54
- }
55
- console.log('步骤 2/5: 提取第一条记录...');
56
- const first = results[0];
57
- const skillName = first.full_name || first.name;
58
- if (!skillName) {
59
- throw new Error('第一条记录缺少 full_name/name,无法继续测试');
60
- }
61
- console.log('第一条记录:');
62
- console.log(` 名称: ${skillName}`);
63
- console.log(` 描述: ${first.description || '(无描述)'}`);
64
- console.log(` Git: ${first.git_url || first.clone_url || '(无)'}`);
65
- console.log('步骤 3/5: 下载该记录对应仓库(未登录)...');
66
- const downloadResult = await getskill.downloadSkill(skillName);
67
- console.log('下载结果:');
68
- console.log(` 仓库缓存: ${downloadResult.repoPath}`);
69
- (downloadResult.files || []).forEach((file) => {
70
- console.log(` 已安装目录: ${file}`);
71
- });
72
- console.log('步骤 4/5: 读取本地技能并检查是否包含刚安装技能...');
73
- const localSkills = getskill.listLocalSkills();
74
- const installedSkillDirs = (downloadResult.files || []).map((file) => path_1.default.basename(file));
75
- const containsInstalled = installedSkillDirs.some((dirName) => localSkills.includes(dirName));
76
- console.log(`本地技能总数: ${localSkills.length}`);
77
- console.log(`是否包含刚安装技能: ${containsInstalled ? '是' : '否'}`);
78
- if (!containsInstalled) {
79
- throw new Error(`本地技能列表未包含新安装技能目录: ${installedSkillDirs.join(', ')}`);
80
- }
81
- console.log('步骤 5/5: 确认非发布操作不会生成登录态...');
82
- if ((0, publish_registry_1.loadAuthSession)()) {
83
- throw new Error('未登录常用流程执行后意外生成了登录态');
84
- }
85
- console.log(' 校验结果: 搜索/安装/列出技能均无需登录');
86
- console.log('\n测试通过: 未登录状态下的 搜索 -> 下载 -> 本地校验 全流程成功');
87
- }
88
- run().catch((error) => {
89
- const message = error instanceof Error ? error.message : String(error);
90
- console.error('\n测试失败:', message);
91
- process.exit(1);
92
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const network_1 = require("../lib/network");
4
- describe('search result filtering', () => {
5
- it('keeps only public repos with SKILL.md', async () => {
6
- const payload = {
7
- ok: true,
8
- data: [
9
- {
10
- full_name: 'skills/valid-skill',
11
- description: 'valid',
12
- clone_url: 'https://example.com/valid-skill.git'
13
- },
14
- {
15
- full_name: 'skills/forked-skill',
16
- description: 'fork',
17
- clone_url: 'https://example.com/forked-skill.git',
18
- fork: true
19
- },
20
- {
21
- full_name: 'skills/private-skill',
22
- description: 'private',
23
- clone_url: 'https://example.com/private-skill.git',
24
- private: true
25
- }
26
- ]
27
- };
28
- const results = await (0, network_1.transformSearchResults)(payload, async (repoFullName) => repoFullName === 'skills/valid-skill');
29
- expect(results).toHaveLength(1);
30
- expect(results[0]).toMatchObject({
31
- full_name: 'skills/valid-skill',
32
- git_url: 'https://example.com/valid-skill.git'
33
- });
34
- });
35
- it('returns an empty array for malformed payloads', async () => {
36
- await expect((0, network_1.transformSearchResults)({ ok: false, data: [] })).resolves.toEqual([]);
37
- await expect((0, network_1.transformSearchResults)({ ok: true, data: undefined })).resolves.toEqual([]);
38
- });
39
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,41 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const fs_1 = __importDefault(require("fs"));
7
- const path_1 = __importDefault(require("path"));
8
- const vitest_1 = require("vitest");
9
- const config_1 = require("../lib/config");
10
- const publish_registry_1 = require("../lib/publish-registry");
11
- const authFilePath = (0, config_1.getAuthFilePath)();
12
- const originalAuthContent = fs_1.default.existsSync(authFilePath)
13
- ? fs_1.default.readFileSync(authFilePath, 'utf8')
14
- : null;
15
- (0, vitest_1.describe)('publish-registry auth state', () => {
16
- (0, vitest_1.beforeEach)(() => {
17
- (0, publish_registry_1.clearAuthSession)();
18
- });
19
- (0, vitest_1.afterAll)(() => {
20
- (0, publish_registry_1.clearAuthSession)();
21
- if (originalAuthContent !== null) {
22
- fs_1.default.mkdirSync(path_1.default.dirname(authFilePath), {
23
- recursive: true
24
- });
25
- fs_1.default.writeFileSync(authFilePath, originalAuthContent, 'utf8');
26
- }
27
- });
28
- (0, vitest_1.it)('defaults to logged-out state when auth file is absent', () => {
29
- (0, vitest_1.expect)((0, publish_registry_1.loadAuthSession)()).toBeNull();
30
- });
31
- (0, vitest_1.it)('can save and clear auth state explicitly', () => {
32
- (0, publish_registry_1.saveAuthSession)({
33
- username: 'demo-user',
34
- email: 'demo@example.com',
35
- token: 'demo-token'
36
- });
37
- (0, vitest_1.expect)((0, publish_registry_1.loadAuthSession)()?.username).toBe('demo-user');
38
- (0, publish_registry_1.clearAuthSession)();
39
- (0, vitest_1.expect)((0, publish_registry_1.loadAuthSession)()).toBeNull();
40
- });
41
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const vitest_1 = require("vitest");
4
- const skill_validator_1 = require("../lib/skill-validator");
5
- (0, vitest_1.describe)('skill-validator', () => {
6
- (0, vitest_1.it)('accepts a valid SKILL.md structure', () => {
7
- const content = `---
8
- name: pdf-helper
9
- description: extract text from pdf
10
- license: MIT
11
- compatibility: node 18+
12
- metadata:
13
- author: workskills
14
- version: '1.0.0'
15
- category: cli-tool
16
- ---
17
-
18
- # PDF Helper
19
-
20
- ## 何时使用此 Skill
21
-
22
- 需要处理 PDF 文本时。
23
-
24
- ## 指令
25
-
26
- 按步骤执行。
27
- `;
28
- const result = (0, skill_validator_1.validateSkillMarkdownContent)(content);
29
- (0, vitest_1.expect)(result.valid).toBe(true);
30
- (0, vitest_1.expect)(result.errors).toEqual([]);
31
- (0, vitest_1.expect)(result.metadata.name).toBe('pdf-helper');
32
- });
33
- (0, vitest_1.it)('rejects an invalid SKILL.md structure', () => {
34
- const result = (0, skill_validator_1.validateSkillMarkdownContent)('# missing front matter');
35
- (0, vitest_1.expect)(result.valid).toBe(false);
36
- (0, vitest_1.expect)(result.errors[0]).toContain('YAML front matter');
37
- });
38
- (0, vitest_1.it)('normalizes repo names safely', () => {
39
- (0, vitest_1.expect)((0, skill_validator_1.sanitizeRepositoryName)('My Skill Repo.git')).toBe('my-skill-repo');
40
- });
41
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,37 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const fs_1 = __importDefault(require("fs"));
7
- const os_1 = __importDefault(require("os"));
8
- const path_1 = __importDefault(require("path"));
9
- const state_1 = require("../lib/state");
10
- describe('state helpers', () => {
11
- it('normalizes skill names for local directories', () => {
12
- expect((0, state_1.normalizeSkillName)('skills/demo-tool')).toBe('demo-tool');
13
- expect((0, state_1.normalizeSkillName)('skills/team/demo-tool')).toBe('team_demo-tool');
14
- });
15
- it('rejects git urls in cli arguments', () => {
16
- expect(() => (0, state_1.normalizeCliSkillArgument)('https://example.com/repo.git')).toThrow(/技能名称/);
17
- expect(() => (0, state_1.normalizeCliSkillArgument)('demo-tool.git')).toThrow(/Git URL/);
18
- });
19
- it('collects markdown skills while ignoring README files', () => {
20
- const tempRoot = fs_1.default.mkdtempSync(path_1.default.join(os_1.default.tmpdir(), 'getskill-test-'));
21
- const nestedDir = path_1.default.join(tempRoot, 'examples');
22
- fs_1.default.mkdirSync(nestedDir, { recursive: true });
23
- fs_1.default.writeFileSync(path_1.default.join(tempRoot, 'SKILL.md'), '# skill');
24
- fs_1.default.writeFileSync(path_1.default.join(tempRoot, 'README.md'), '# readme');
25
- fs_1.default.writeFileSync(path_1.default.join(nestedDir, 'guide.md'), '# guide');
26
- const results = (0, state_1.collectSkillMarkdownFiles)(tempRoot).sort();
27
- expect(results).toEqual(['SKILL.md', path_1.default.join('examples', 'guide.md')].sort());
28
- });
29
- it('builds an inspection view for local skills', () => {
30
- const info = (0, state_1.getInstalledSkillInfo)('skills/demo-tool');
31
- expect(info.skillName).toBe('skills/demo-tool');
32
- expect(info.localSkillName).toBe('demo-tool');
33
- expect(typeof info.installed).toBe('boolean');
34
- expect(typeof info.cached).toBe('boolean');
35
- expect(info.skillDir.endsWith(path_1.default.join('.openclaw', 'skills', 'demo-tool'))).toBe(true);
36
- });
37
- });
package/dist/verify.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
package/dist/verify.js DELETED
@@ -1,108 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __importDefault = (this && this.__importDefault) || function (mod) {
36
- return (mod && mod.__esModule) ? mod : { "default": mod };
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- const fs_1 = __importDefault(require("fs"));
40
- const path_1 = __importDefault(require("path"));
41
- const child_process_1 = require("child_process");
42
- const exported = __importStar(require("./main"));
43
- const projectRoot = __dirname;
44
- const candidateProjectRoots = [projectRoot, path_1.default.resolve(projectRoot, '..')];
45
- function findFirstExistingPath(relativePath) {
46
- for (const root of candidateProjectRoots) {
47
- const candidate = path_1.default.join(root, relativePath);
48
- if (fs_1.default.existsSync(candidate)) {
49
- return candidate;
50
- }
51
- }
52
- return path_1.default.join(projectRoot, relativePath);
53
- }
54
- const tsconfigPath = findFirstExistingPath('tsconfig.json');
55
- const packageJsonPath = findFirstExistingPath('package.json');
56
- function assert(condition, message) {
57
- if (!condition) {
58
- throw new Error(message);
59
- }
60
- }
61
- function run() {
62
- (0, child_process_1.execFileSync)(process.execPath, [require.resolve('typescript/bin/tsc'), '--noEmit', '-p', tsconfigPath], {
63
- cwd: projectRoot,
64
- stdio: 'inherit'
65
- });
66
- const packageJson = JSON.parse(fs_1.default.readFileSync(packageJsonPath, 'utf8'));
67
- assert(typeof exported.searchSkills === 'function', 'searchSkills 导出缺失');
68
- assert(typeof exported.downloadSkill === 'function', 'downloadSkill 导出缺失');
69
- assert(typeof exported.updateSkill === 'function', 'updateSkill 导出缺失');
70
- assert(typeof exported.listLocalSkills === 'function', 'listLocalSkills 导出缺失');
71
- assert(typeof exported.getSkillsDirectory === 'function', 'getSkillsDirectory 导出缺失');
72
- assert(typeof exported.getSkillsCacheDirectory === 'function', 'getSkillsCacheDirectory 导出缺失');
73
- assert(typeof exported.publishSkill === 'function', 'publishSkill 导出缺失');
74
- const originalLog = console.log;
75
- const logLines = [];
76
- console.log = (...args) => {
77
- logLines.push(args.map((arg) => String(arg)).join(' '));
78
- };
79
- try {
80
- exported.printHelp();
81
- }
82
- finally {
83
- console.log = originalLog;
84
- }
85
- const helpOutput = logLines.join('\n');
86
- assert(helpOutput.includes('getskill --help'), '帮助输出缺少 --help');
87
- assert(helpOutput.includes('getskill --version'), '帮助输出缺少 --version');
88
- assert(helpOutput.includes('getskill install <技能名称>'), '帮助输出缺少 install 用法');
89
- assert(helpOutput.includes('--version <tag>'), '帮助输出缺少 install/update --version 用法');
90
- assert(helpOutput.includes('getskill update <技能名称>'), '帮助输出缺少 update 用法');
91
- assert(helpOutput.includes('getskill update --all'), '帮助输出缺少 update --all 用法');
92
- assert(helpOutput.includes('getskill uninstall <技能名称>'), '帮助输出缺少 uninstall 用法');
93
- assert(helpOutput.includes('getskill inspect <技能名称>'), '帮助输出缺少 inspect 用法');
94
- assert(helpOutput.includes('getskill search <关键词> --json'), '帮助输出缺少 search --json 用法');
95
- assert(helpOutput.includes('getskill publish <目录>'), '帮助输出缺少 publish 用法');
96
- assert(helpOutput.includes('--name <repo-name>'), '帮助输出缺少 publish 仓库名参数');
97
- const versionOutput = exported.getCliVersion();
98
- assert(versionOutput === packageJson.version, `--version 输出异常: expected ${packageJson.version}, got ${versionOutput}`);
99
- console.log('verify passed');
100
- }
101
- try {
102
- run();
103
- }
104
- catch (error) {
105
- const message = error instanceof Error ? error.message : String(error);
106
- console.error('verify failed:', message);
107
- process.exit(1);
108
- }
@@ -1,2 +0,0 @@
1
- declare const _default: import("vite").UserConfig;
2
- export default _default;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const config_1 = require("vitest/config");
4
- exports.default = (0, config_1.defineConfig)({
5
- test: {
6
- environment: 'node',
7
- globals: true,
8
- include: ['tests/**/*.test.ts'],
9
- coverage: {
10
- provider: 'v8',
11
- reporter: ['text', 'html'],
12
- thresholds: {
13
- lines: 60,
14
- functions: 60,
15
- branches: 50,
16
- statements: 60
17
- },
18
- include: ['main.ts', 'lib/**/*.ts']
19
- }
20
- }
21
- });