Skip to content

Commit f30ad19

Browse files
committed
Fix node imports
1 parent 3fa3d2d commit f30ad19

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

scripts/build-api.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
#!/usr/bin/env node
2-
import childProcess from 'child_process'
3-
import { existsSync } from 'fs'
4-
import { mkdir, rm, writeFile } from 'fs/promises'
52
import { globby } from 'globby'
6-
import { join } from 'path'
3+
import childProcess from 'node:child_process'
4+
import { existsSync } from 'node:fs'
5+
import { mkdir, rm, writeFile } from 'node:fs/promises'
6+
import { join } from 'node:path'
7+
import { promisify } from 'node:util'
78
import rehypeHighlight from 'rehype-highlight'
89
import rehypeStringify from 'rehype-stringify'
910
import remarkGfm from 'remark-gfm'
1011
import remarkParse from 'remark-parse'
1112
import remarkRehype from 'remark-rehype'
1213
import TypeDoc, { Converter, ReflectionKind } from 'typedoc'
1314
import { unified } from 'unified'
14-
import { promisify } from 'util'
1515
import { build } from 'vite'
1616

1717
import { DIST, PROJECTS, SRC } from './lib/dir.js'

scripts/build-docs.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#!/usr/bin/env node
2-
import childProcess from 'child_process'
3-
import { existsSync } from 'fs'
4-
import { mkdir, readFile, rm, writeFile } from 'fs/promises'
52
import { globby } from 'globby'
6-
import { join } from 'path'
3+
import childProcess from 'node:child_process'
4+
import { existsSync } from 'node:fs'
5+
import { mkdir, readFile, rm, writeFile } from 'node:fs/promises'
6+
import { join } from 'node:path'
7+
import { promisify } from 'node:util'
78
import rehypeHighlight from 'rehype-highlight'
89
import rehypeRaw from 'rehype-raw'
910
import rehypeStringify from 'rehype-stringify'
1011
import remarkParse from 'remark-parse/lib/index.js'
1112
import remarkRehype from 'remark-rehype'
1213
import { unified } from 'unified'
13-
import { promisify } from 'util'
1414
import { build } from 'vite'
1515

1616
import { DIST, PROJECTS, ROOT, SRC } from './lib/dir.js'

scripts/build-home.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
2-
import { copyFile, rm } from 'fs/promises'
3-
import { join } from 'path'
2+
import { copyFile, rm } from 'node:fs/promises'
3+
import { join } from 'node:path'
44
import { build } from 'vite'
55

66
import { DIST, SRC } from './lib/dir.js'

scripts/lib/dir.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { join } from 'path'
2-
import { fileURLToPath } from 'url'
1+
import { join } from 'node:path'
2+
import { fileURLToPath } from 'node:url'
33

44
export const ROOT = join(fileURLToPath(import.meta.url), '..', '..', '..')
55
export const PROJECTS = join(ROOT, '..')

0 commit comments

Comments
 (0)