Skip to content

Commit

Permalink
Merge pull request #222 from docsbydoxdox/hotfix/node-namespaces
Browse files Browse the repository at this point in the history
[hotfix] Added node namespace to node packages.
  • Loading branch information
neogeek committed Apr 13, 2024
2 parents 11e097a + f102f07 commit 8e7ba62
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions bin/version.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env node

import { join } from 'path';
import { join } from 'node:path';

import { readFile, writeFile } from 'fs/promises';
import { readFile, writeFile } from 'node:fs/promises';

import semver from 'semver';

Expand Down
6 changes: 3 additions & 3 deletions packages/doxdox-cli/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { promises as fs } from 'fs';
import fs from 'node:fs/promises';

import { promisify } from 'util';
import { promisify } from 'node:util';

import { exec } from 'child_process';
import { exec } from 'node:child_process';

const execAsync = promisify(exec);

Expand Down
10 changes: 5 additions & 5 deletions packages/doxdox-cli/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/usr/bin/env node

import { EOL, homedir } from 'os';
import { EOL, homedir } from 'node:os';

import { promises as fs } from 'fs';
import fs from 'node:fs/promises';

import { dirname, join, resolve } from 'path';
import { dirname, join, resolve } from 'node:path';

import { execSync } from 'child_process';
import { execSync } from 'node:child_process';

import { fileURLToPath } from 'url';
import { fileURLToPath } from 'node:url';

import { globby } from 'globby';

Expand Down
4 changes: 2 additions & 2 deletions packages/doxdox-core/src/loader.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { join, resolve } from 'path';
import { join, resolve } from 'node:path';

import { pathToFileURL } from 'url';
import { pathToFileURL } from 'node:url';

import { getProjectPackage, isDirectory, isFile } from './utils.js';

Expand Down
4 changes: 2 additions & 2 deletions packages/doxdox-core/src/utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { promises as fs } from 'fs';
import fs from 'node:fs/promises';

import { join } from 'path';
import { join } from 'node:path';

import {
findFileInPath,
Expand Down
6 changes: 3 additions & 3 deletions packages/doxdox-core/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { promises as fs } from 'fs';
import fs from 'node:fs/promises';

import { resolve, dirname } from 'path';
import { resolve, dirname } from 'node:path';

import { fileURLToPath } from 'url';
import { fileURLToPath } from 'node:url';

import normalizeData from 'normalize-package-data';

Expand Down
4 changes: 2 additions & 2 deletions packages/doxdox-parser-custom/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { promises as fs } from 'fs';
import fs from 'node:fs/promises';

import { join } from 'path';
import { join } from 'node:path';

import { File, Method, multiLinePatternMatch, slugify } from 'doxdox-core';

Expand Down
2 changes: 1 addition & 1 deletion packages/doxdox-parser-dox/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { promises as fs } from 'fs';
import fs from 'node:fs/promises';

import { slugify } from 'doxdox-core';

Expand Down
8 changes: 4 additions & 4 deletions packages/doxdox-parser-jsdoc/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { promises as fs } from 'fs';
import fs from 'node:fs/promises';

import { fileURLToPath } from 'url';
import { fileURLToPath } from 'node:url';

import { platform } from 'os';
import { platform } from 'node:os';

import { dirname, join } from 'path';
import { dirname, join } from 'node:path';

import spawn from 'spawn-please';

Expand Down
4 changes: 2 additions & 2 deletions packages/doxdox-parser-template/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { promises as fs } from 'fs';
import fs from 'node:fs/promises';

import { join } from 'path';
import { join } from 'node:path';

import { File } from 'doxdox-core';

Expand Down
2 changes: 1 addition & 1 deletion packages/doxdox-renderer-dash/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { join } from 'path';
import { join } from 'node:path';

import admzip from 'adm-zip';

Expand Down
2 changes: 1 addition & 1 deletion packages/doxdox-renderer-github-wiki/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { join } from 'path';
import { join } from 'node:path';

import admzip from 'adm-zip';

Expand Down

0 comments on commit 8e7ba62

Please sign in to comment.