@poetora/cli 0.1.2 → 0.1.3

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @poetora/cli@0.1.1 build /home/runner/work/poetora/poetora/packages/cli
2
+ > @poetora/cli@0.1.2 build /home/runner/work/poetora/poetora/packages/cli
3
3
  > tsc --project tsconfig.build.json
4
4
 
package/bin/constants.js CHANGED
@@ -1,3 +1,3 @@
1
- import os from 'node:os';
1
+ import os from 'os';
2
2
  export const HOME_DIR = os.homedir();
3
3
  export const CMD_EXEC_PATH = process.cwd();
package/bin/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import { type ChildProcess } from 'node:child_process';
2
+ import { type ChildProcess } from 'child_process';
3
3
  declare let cli: ChildProcess | null;
4
4
  export { cli };
package/bin/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { spawn } from 'node:child_process';
3
- import path from 'node:path';
4
- import { fileURLToPath } from 'node:url';
2
+ import { spawn } from 'child_process';
3
+ import path from 'path';
4
+ import { fileURLToPath } from 'url';
5
5
  const __filename = fileURLToPath(import.meta.url);
6
6
  const __dirname = path.dirname(__filename);
7
7
  const packageName = path.basename(process.argv[1] ?? '') === 'index'
@@ -1,5 +1,5 @@
1
- import fs from 'node:fs';
2
- import path from 'node:path';
1
+ import fs from 'fs';
2
+ import path from 'path';
3
3
  import { categorizeFilePaths, getPoetIgnore } from '@poetora/prebuild';
4
4
  import { coreRemark } from '@poetora/shared';
5
5
  import { visit } from 'unist-util-visit';
@@ -1,4 +1,4 @@
1
- import path from 'node:path';
1
+ import path from 'path';
2
2
  import { getConfigObj, getConfigPath } from '@poetora/prebuild';
3
3
  import { getBackgroundColors } from '@poetora/shared';
4
4
  import { checkDocsColors, } from '../accessibility.js';
@@ -1,4 +1,4 @@
1
- import * as path from 'node:path';
1
+ import * as path from 'path';
2
2
  import { getBrokenInternalLinks, renameFilesAndUpdateLinksInContent, } from '@poetora/link-rot';
3
3
  export class LinkService {
4
4
  logger;
@@ -1,4 +1,4 @@
1
- import * as fs from 'node:fs';
1
+ import * as fs from 'fs';
2
2
  import { getOpenApiDocumentFromUrl, isAllowedLocalSchemaUrl, validate } from '@poetora/shared';
3
3
  import * as yaml from 'js-yaml';
4
4
  import { FileSystemError, ValidationError } from '../errors/index.js';
@@ -1,5 +1,5 @@
1
- import * as fs from 'node:fs';
2
- import * as path from 'node:path';
1
+ import * as fs from 'fs';
2
+ import * as path from 'path';
3
3
  import { docsConfigSchema } from '@poetora/validation';
4
4
  import AdmZip from 'adm-zip';
5
5
  import * as fse from 'fs-extra';
@@ -1,5 +1,5 @@
1
- import { exec } from 'node:child_process';
2
- import { promisify } from 'node:util';
1
+ import { exec } from 'child_process';
2
+ import { promisify } from 'util';
3
3
  import { ExternalServiceError } from '../errors/index.js';
4
4
  const execAsync = promisify(exec);
5
5
  export class UpdateService {
@@ -1,4 +1,4 @@
1
- import { execSync } from 'node:child_process';
1
+ import { execSync } from 'child_process';
2
2
  import { getClientVersion, LOCAL_LINKED_CLI_VERSION } from '@poetora/previewing';
3
3
  import yargs from 'yargs';
4
4
  import { InvalidEnvironmentError } from '../errors/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poetora/cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "The CLI for Poetora documentation Engine",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -36,15 +36,15 @@
36
36
  "inquirer": "12.3.0",
37
37
  "js-yaml": "4.1.0",
38
38
  "mdast-util-mdx-jsx": "3.2.0",
39
- "ora": "^9.0.0",
40
- "react": "19.2.1",
39
+ "ora": "^8.1.1",
40
+ "react": "^19.0.1",
41
41
  "semver": "7.7.2",
42
42
  "unist-util-visit": "5.0.0",
43
43
  "yargs": "17.7.1",
44
- "@poetora/prebuild": "0.1.0",
45
44
  "@poetora/link-rot": "0.0.1",
46
- "@poetora/shared": "0.1.0",
45
+ "@poetora/prebuild": "0.1.0",
47
46
  "@poetora/previewing": "0.1.0",
47
+ "@poetora/shared": "0.1.0",
48
48
  "@poetora/validation": "0.1.0"
49
49
  },
50
50
  "devDependencies": {
@@ -64,8 +64,7 @@
64
64
  "openapi-types": "12.1.3",
65
65
  "rimraf": "5.0.1",
66
66
  "typescript": "5.9.3",
67
- "vitest": "4.0.15",
68
- "vitest-mock-process": "1.0.4"
67
+ "vitest": "4.0.15"
69
68
  },
70
69
  "scripts": {
71
70
  "dev": "pnpm build && NODE_NO_WARNINGS=1 node bin/index.js",
package/src/constants.ts CHANGED
@@ -1,4 +1,4 @@
1
- import os from 'node:os';
1
+ import os from 'os';
2
2
 
3
3
  export const HOME_DIR = os.homedir();
4
4
  export const CMD_EXEC_PATH = process.cwd();
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { type ChildProcess, spawn } from 'node:child_process';
3
- import path from 'node:path';
4
- import { fileURLToPath } from 'node:url';
2
+ import { type ChildProcess, spawn } from 'child_process';
3
+ import path from 'path';
4
+ import { fileURLToPath } from 'url';
5
5
 
6
6
  const __filename = fileURLToPath(import.meta.url);
7
7
  const __dirname = path.dirname(__filename);
@@ -1,5 +1,5 @@
1
- import fs from 'node:fs';
2
- import path from 'node:path';
1
+ import fs from 'fs';
2
+ import path from 'path';
3
3
  import { categorizeFilePaths, getPoetIgnore } from '@poetora/prebuild';
4
4
  import { coreRemark } from '@poetora/shared';
5
5
  import type { Node, Root, Text } from 'mdast';
@@ -1,4 +1,4 @@
1
- import * as fs from 'node:fs';
1
+ import * as fs from 'fs';
2
2
  import AdmZip from 'adm-zip';
3
3
  import * as fse from 'fs-extra';
4
4
  import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
@@ -1,4 +1,4 @@
1
- import path from 'node:path';
1
+ import path from 'path';
2
2
  import { getConfigObj, getConfigPath } from '@poetora/prebuild';
3
3
  import { getBackgroundColors } from '@poetora/shared';
4
4
  import {
@@ -1,4 +1,4 @@
1
- import * as path from 'node:path';
1
+ import * as path from 'path';
2
2
  import {
3
3
  getBrokenInternalLinks,
4
4
  type MdxPath,
@@ -1,4 +1,4 @@
1
- import * as fs from 'node:fs';
1
+ import * as fs from 'fs';
2
2
  import { getOpenApiDocumentFromUrl, isAllowedLocalSchemaUrl, validate } from '@poetora/shared';
3
3
  import * as yaml from 'js-yaml';
4
4
 
@@ -1,5 +1,5 @@
1
- import * as fs from 'node:fs';
2
- import * as path from 'node:path';
1
+ import * as fs from 'fs';
2
+ import * as path from 'path';
3
3
  import { docsConfigSchema } from '@poetora/validation';
4
4
  import AdmZip from 'adm-zip';
5
5
  import * as fse from 'fs-extra';
@@ -1,5 +1,5 @@
1
- import { exec } from 'node:child_process';
2
- import { promisify } from 'node:util';
1
+ import { exec } from 'child_process';
2
+ import { promisify } from 'util';
3
3
  import { ExternalServiceError } from '../errors/index.js';
4
4
  import type { ILogger } from '../utils/index.js';
5
5
  import type { VersionService } from './version.service.js';
@@ -1,4 +1,4 @@
1
- import { execSync } from 'node:child_process';
1
+ import { execSync } from 'child_process';
2
2
  import { getClientVersion, LOCAL_LINKED_CLI_VERSION } from '@poetora/previewing';
3
3
  import yargs from 'yargs';
4
4