docgen-tool 5.0.0-beta.3 → 5.0.0

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.
Files changed (2) hide show
  1. package/dist/cli.js +5 -6
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -1,10 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { program } from 'commander';
3
3
  import pico from 'picocolors';
4
- import path, { dirname, join } from 'path';
4
+ import path, { join } from 'path';
5
5
  import { promises } from 'fs';
6
6
  import fs from 'fs-extra';
7
- import { fileURLToPath } from 'url';
8
7
  import schemaValidator from 'z-schema';
9
8
  import * as cheerio from 'cheerio';
10
9
  import MarkdownIt from 'markdown-it';
@@ -14,8 +13,6 @@ import Html from 'react-pdf-html';
14
13
  import pkg from 'lodash';
15
14
  import ReactDOMServer from 'react-dom/server';
16
15
 
17
- fileURLToPath(new URL(".", import.meta.url));
18
- dirname(fileURLToPath(import.meta.url));
19
16
  const readFile = async (filePath) => {
20
17
  const normalized = path.normalize(filePath);
21
18
  try {
@@ -277,7 +274,9 @@ const loadTemplates = async ({
277
274
  console.log(pico.green("Loading templates"));
278
275
  try {
279
276
  let files = {
280
- main: await readFile(join(packageAbsolutePath, "include/templates/main.html")),
277
+ main: await readFile(
278
+ join(packageAbsolutePath, "include/templates/main.html")
279
+ ),
281
280
  redirect: await readFile(
282
281
  join(packageAbsolutePath, "include/templates/redirect.html")
283
282
  )
@@ -1074,7 +1073,7 @@ let createRedirect = async ({ options, redirectPage, homePage }) => {
1074
1073
  }
1075
1074
  };
1076
1075
 
1077
- var version = "5.0.0-beta.2";
1076
+ var version = "5.0.0-beta.3";
1078
1077
 
1079
1078
  function DocGen(process) {
1080
1079
  let mainProcess = process;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docgen-tool",
3
3
  "type": "module",
4
- "version": "5.0.0-beta.3",
4
+ "version": "5.0.0",
5
5
  "description": "A tool for creating HTML and PDF documentation",
6
6
  "bin": "./dist/cli.js",
7
7
  "files": [
@@ -10,7 +10,7 @@
10
10
  "scripts": {
11
11
  "copy:files": "ncp src/include dist/include",
12
12
  "dev": "tsx src/cli.ts run",
13
- "build:tsc": "rimraf dist && tsc -p tsconfig.json && yarn copy:files",
13
+ "check:types": "tsc --noEmit",
14
14
  "build": "rimraf dist && pkgroll && yarn copy:files",
15
15
  "run:build": "dist/cli.js",
16
16
  "build:docs": "rimraf docs && tsx src/cli.ts run -r -p -i src/docs -o ./docs",