Skip to content

Commit

Permalink
chore: use node: protocol when importing built-in modules (#2838)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuseen-l committed Mar 4, 2023
1 parent dd51461 commit df97961
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/metadata/scripts/update.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { join, relative, resolve } from 'path'
import { join, relative, resolve } from 'node:path'
import fs from 'fs-extra'
import matter from 'gray-matter'
import type { PackageIndexes, VueUseFunction, VueUsePackage } from '@vueuse/metadata'
Expand Down
4 changes: 2 additions & 2 deletions packages/nuxt/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { dirname, resolve } from 'path'
import { fileURLToPath } from 'url'
import { dirname, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
import { isPackageExists } from 'local-pkg'
import { defineNuxtModule } from '@nuxt/kit'
import { metadata } from '@vueuse/metadata'
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'node:path'
import assert from 'assert'
import assert from 'node:assert'
import { execSync as exec } from 'child_process'
import fs from 'fs-extra'
import fg from 'fast-glob'
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { execSync } from 'child_process'
import { execSync } from 'node:child_process'
import path from 'node:path'
import consola from 'consola'
import { version } from '../package.json'
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { execSync } from 'child_process'
import { execSync } from 'node:child_process'
import { readJSONSync } from 'fs-extra'
import { updateContributors } from './utils'

Expand Down

0 comments on commit df97961

Please sign in to comment.