@poetora/cli 0.1.2 → 0.1.4
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.
- package/.turbo/turbo-build.log +1 -1
- package/bin/constants.js +1 -1
- package/bin/index.d.ts +1 -1
- package/bin/index.js +3 -3
- package/bin/mdxAccessibility.js +2 -2
- package/bin/services/accessibility-check.service.js +1 -1
- package/bin/services/link.service.js +1 -1
- package/bin/services/openapi-check.service.js +1 -1
- package/bin/services/template.service.js +2 -2
- package/bin/services/update.service.js +2 -2
- package/bin/services/version.service.js +1 -1
- package/package.json +9 -10
- package/src/constants.ts +1 -1
- package/src/index.ts +3 -3
- package/src/mdxAccessibility.ts +2 -2
- package/src/services/__tests__/template.service.test.ts +1 -1
- package/src/services/accessibility-check.service.ts +1 -1
- package/src/services/link.service.ts +1 -1
- package/src/services/openapi-check.service.ts +1 -1
- package/src/services/template.service.ts +2 -2
- package/src/services/update.service.ts +2 -2
- package/src/services/version.service.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
package/bin/constants.js
CHANGED
package/bin/index.d.ts
CHANGED
package/bin/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { spawn } from '
|
|
3
|
-
import path from '
|
|
4
|
-
import { fileURLToPath } from '
|
|
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'
|
package/bin/mdxAccessibility.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import fs from '
|
|
2
|
-
import path from '
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { exec } from '
|
|
2
|
-
import { promisify } from '
|
|
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 {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poetora/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "The CLI for Poetora documentation Engine",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
"inquirer": "12.3.0",
|
|
37
37
|
"js-yaml": "4.1.0",
|
|
38
38
|
"mdast-util-mdx-jsx": "3.2.0",
|
|
39
|
-
"ora": "^
|
|
40
|
-
"react": "19.
|
|
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/
|
|
45
|
-
"@poetora/
|
|
46
|
-
"@poetora/
|
|
47
|
-
"@poetora/
|
|
48
|
-
"@poetora/validation": "0.1.
|
|
44
|
+
"@poetora/link-rot": "0.0.6",
|
|
45
|
+
"@poetora/prebuild": "0.1.5",
|
|
46
|
+
"@poetora/previewing": "0.1.5",
|
|
47
|
+
"@poetora/shared": "0.1.5",
|
|
48
|
+
"@poetora/validation": "0.1.5"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@tsconfig/recommended": "1.0.2",
|
|
@@ -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
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { type ChildProcess, spawn } from '
|
|
3
|
-
import path from '
|
|
4
|
-
import { fileURLToPath } from '
|
|
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);
|
package/src/mdxAccessibility.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import fs from '
|
|
2
|
-
import path from '
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { exec } from '
|
|
2
|
-
import { promisify } from '
|
|
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';
|