mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
chore(deps): update dependency globby to v12 (#2659)
This commit is contained in:
parent
300023923f
commit
4de167e246
@ -45,7 +45,7 @@
|
|||||||
"eslint": "^8.6.0",
|
"eslint": "^8.6.0",
|
||||||
"eslint-plugin-jsdoc": "^37.6.1",
|
"eslint-plugin-jsdoc": "^37.6.1",
|
||||||
"execa": "^6.0.0",
|
"execa": "^6.0.0",
|
||||||
"globby": "^11.1.0",
|
"globby": "^12.0.2",
|
||||||
"jiti": "^1.12.9",
|
"jiti": "^1.12.9",
|
||||||
"lerna": "^4.0.0",
|
"lerna": "^4.0.0",
|
||||||
"markdownlint-cli": "^0.30.0",
|
"markdownlint-cli": "^0.30.0",
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
"estree-walker": "^3.0.1",
|
"estree-walker": "^3.0.1",
|
||||||
"externality": "^0.1.5",
|
"externality": "^0.1.5",
|
||||||
"fs-extra": "^10.0.0",
|
"fs-extra": "^10.0.0",
|
||||||
"globby": "^11.1.0",
|
"globby": "^12.0.2",
|
||||||
"h3": "^0.3.8",
|
"h3": "^0.3.8",
|
||||||
"hash-sum": "^2.0.0",
|
"hash-sum": "^2.0.0",
|
||||||
"magic-string": "^0.25.7",
|
"magic-string": "^0.25.7",
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
"consola": "^2.15.3",
|
"consola": "^2.15.3",
|
||||||
"defu": "^5.0.1",
|
"defu": "^5.0.1",
|
||||||
"dotenv": "^11.0.0",
|
"dotenv": "^11.0.0",
|
||||||
"globby": "^11.1.0",
|
"globby": "^12.0.2",
|
||||||
"hash-sum": "^2.0.0",
|
"hash-sum": "^2.0.0",
|
||||||
"jiti": "^1.12.9",
|
"jiti": "^1.12.9",
|
||||||
"lodash.template": "^4.5.0",
|
"lodash.template": "^4.5.0",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { existsSync, lstatSync, readdirSync } from 'fs'
|
import { existsSync, lstatSync, readdirSync } from 'fs'
|
||||||
import { basename, dirname, resolve, join } from 'pathe'
|
import { basename, dirname, resolve, join } from 'pathe'
|
||||||
import globby from 'globby'
|
import { globby } from 'globby'
|
||||||
|
|
||||||
export interface ResolveOptions {
|
export interface ResolveOptions {
|
||||||
/**
|
/**
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
"esbuild": "^0.14.11",
|
"esbuild": "^0.14.11",
|
||||||
"etag": "^1.8.1",
|
"etag": "^1.8.1",
|
||||||
"fs-extra": "^10.0.0",
|
"fs-extra": "^10.0.0",
|
||||||
"globby": "^11.1.0",
|
"globby": "^12.0.2",
|
||||||
"gzip-size": "^7.0.0",
|
"gzip-size": "^7.0.0",
|
||||||
"h3": "^0.3.8",
|
"h3": "^0.3.8",
|
||||||
"hasha": "^5.2.2",
|
"hasha": "^5.2.2",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import fse from 'fs-extra'
|
import fse from 'fs-extra'
|
||||||
import globby from 'globby'
|
import { globby } from 'globby'
|
||||||
import { join, resolve } from 'pathe'
|
import { join, resolve } from 'pathe'
|
||||||
import { writeFile } from '../utils'
|
import { writeFile } from '../utils'
|
||||||
import { NitroPreset, NitroContext } from '../context'
|
import { NitroPreset, NitroContext } from '../context'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { createRequire } from 'module'
|
import { createRequire } from 'module'
|
||||||
import { join, relative, resolve } from 'pathe'
|
import { join, relative, resolve } from 'pathe'
|
||||||
import fse from 'fs-extra'
|
import fse from 'fs-extra'
|
||||||
import globby from 'globby'
|
import { globby } from 'globby'
|
||||||
import { readPackageJSON } from 'pkg-types'
|
import { readPackageJSON } from 'pkg-types'
|
||||||
import { writeFile } from '../utils'
|
import { writeFile } from '../utils'
|
||||||
import { NitroPreset, NitroContext } from '../context'
|
import { NitroPreset, NitroContext } from '../context'
|
||||||
|
@ -3,7 +3,7 @@ import type { Plugin } from 'rollup'
|
|||||||
import createEtag from 'etag'
|
import createEtag from 'etag'
|
||||||
import mime from 'mime'
|
import mime from 'mime'
|
||||||
import { resolve } from 'pathe'
|
import { resolve } from 'pathe'
|
||||||
import globby from 'globby'
|
import { globby } from 'globby'
|
||||||
import virtual from './virtual'
|
import virtual from './virtual'
|
||||||
|
|
||||||
export interface AssetOptions {
|
export interface AssetOptions {
|
||||||
@ -39,7 +39,7 @@ export function assets (opts: AssetOptions): Plugin {
|
|||||||
const assets: Record<string, Asset> = {}
|
const assets: Record<string, Asset> = {}
|
||||||
for (const assetdir in opts.dirs) {
|
for (const assetdir in opts.dirs) {
|
||||||
const dirOpts = opts.dirs[assetdir]
|
const dirOpts = opts.dirs[assetdir]
|
||||||
const files = globby.sync('**/*.*', { cwd: dirOpts.dir, absolute: false })
|
const files = await globby('**/*.*', { cwd: dirOpts.dir, absolute: false })
|
||||||
for (const _id of files) {
|
for (const _id of files) {
|
||||||
const fsPath = resolve(dirOpts.dir, _id)
|
const fsPath = resolve(dirOpts.dir, _id)
|
||||||
const id = assetdir + '/' + _id
|
const id = assetdir + '/' + _id
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { pathToFileURL } from 'url'
|
import { pathToFileURL } from 'url'
|
||||||
import { resolve } from 'pathe'
|
import { resolve } from 'pathe'
|
||||||
import globby from 'globby'
|
import { globby } from 'globby'
|
||||||
import type { Plugin } from 'rollup'
|
import type { Plugin } from 'rollup'
|
||||||
import { serializeImportName } from '../../utils'
|
import { serializeImportName } from '../../utils'
|
||||||
|
|
||||||
|
@ -3,14 +3,14 @@ import createEtag from 'etag'
|
|||||||
import mime from 'mime'
|
import mime from 'mime'
|
||||||
import { relative, resolve } from 'pathe'
|
import { relative, resolve } from 'pathe'
|
||||||
import virtual from '@rollup/plugin-virtual'
|
import virtual from '@rollup/plugin-virtual'
|
||||||
import globby from 'globby'
|
import { globbySync } from 'globby'
|
||||||
import type { Plugin } from 'rollup'
|
import type { Plugin } from 'rollup'
|
||||||
import type { NitroContext } from '../../context'
|
import type { NitroContext } from '../../context'
|
||||||
|
|
||||||
export function staticAssets (context: NitroContext) {
|
export function staticAssets (context: NitroContext) {
|
||||||
const assets: Record<string, { type: string, etag: string, mtime: string, path: string }> = {}
|
const assets: Record<string, { type: string, etag: string, mtime: string, path: string }> = {}
|
||||||
|
|
||||||
const files = globby.sync('**/*.*', { cwd: context.output.publicDir, absolute: false })
|
const files = globbySync('**/*.*', { cwd: context.output.publicDir, absolute: false })
|
||||||
|
|
||||||
for (const id of files) {
|
for (const id of files) {
|
||||||
let type = mime.getType(id) || 'text/plain'
|
let type = mime.getType(id) || 'text/plain'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { resolve, join, extname } from 'pathe'
|
import { resolve, join, extname } from 'pathe'
|
||||||
import { joinURL } from 'ufo'
|
import { joinURL } from 'ufo'
|
||||||
import globby from 'globby'
|
import { globby } from 'globby'
|
||||||
import { watch } from 'chokidar'
|
import { watch } from 'chokidar'
|
||||||
import { tryResolvePath } from '@nuxt/kit'
|
import { tryResolvePath } from '@nuxt/kit'
|
||||||
import type { Nuxt } from '@nuxt/schema'
|
import type { Nuxt } from '@nuxt/schema'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { promises as fsp } from 'fs'
|
import { promises as fsp } from 'fs'
|
||||||
import { resolve, dirname, relative } from 'pathe'
|
import { resolve, dirname, relative } from 'pathe'
|
||||||
import globby from 'globby'
|
import { globby } from 'globby'
|
||||||
import prettyBytes from 'pretty-bytes'
|
import prettyBytes from 'pretty-bytes'
|
||||||
import { gzipSize } from 'gzip-size'
|
import { gzipSize } from 'gzip-size'
|
||||||
import chalk from 'chalk'
|
import chalk from 'chalk'
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
"cookie-es": "^0.5.0",
|
"cookie-es": "^0.5.0",
|
||||||
"defu": "^5.0.1",
|
"defu": "^5.0.1",
|
||||||
"destr": "^1.1.0",
|
"destr": "^1.1.0",
|
||||||
"globby": "^11.1.0",
|
"globby": "^12.0.2",
|
||||||
"h3": "^0.3.8",
|
"h3": "^0.3.8",
|
||||||
"hash-sum": "^2.0.0",
|
"hash-sum": "^2.0.0",
|
||||||
"hookable": "^5.1.1",
|
"hookable": "^5.1.1",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { promises as fsp, existsSync } from 'fs'
|
import { promises as fsp, existsSync } from 'fs'
|
||||||
import { parse as parsePath, join } from 'pathe'
|
import { parse as parsePath, join } from 'pathe'
|
||||||
import globby from 'globby'
|
import { globby } from 'globby'
|
||||||
import { findExports } from 'mlly'
|
import { findExports } from 'mlly'
|
||||||
import { camelCase } from 'scule'
|
import { camelCase } from 'scule'
|
||||||
import { AutoImport } from '@nuxt/schema'
|
import { AutoImport } from '@nuxt/schema'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { basename, extname, join, dirname, relative } from 'pathe'
|
import { basename, extname, join, dirname, relative } from 'pathe'
|
||||||
import globby from 'globby'
|
import { globby } from 'globby'
|
||||||
import { pascalCase, splitByCase } from 'scule'
|
import { pascalCase, splitByCase } from 'scule'
|
||||||
import type { ScanDir, Component, ComponentsDir } from '@nuxt/schema'
|
import type { ScanDir, Component, ComponentsDir } from '@nuxt/schema'
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { promises as fsp } from 'fs'
|
import { promises as fsp } from 'fs'
|
||||||
import { execSync } from 'child_process'
|
import { execSync } from 'child_process'
|
||||||
import { resolve } from 'pathe'
|
import { resolve } from 'pathe'
|
||||||
import globby from 'globby'
|
import { globby } from 'globby'
|
||||||
|
|
||||||
async function loadPackage (dir: string) {
|
async function loadPackage (dir: string) {
|
||||||
const pkgPath = resolve(dir, 'package.json')
|
const pkgPath = resolve(dir, 'package.json')
|
||||||
|
Loading…
Reference in New Issue
Block a user