Skip to content

Commit

Permalink
fix isVinyl import
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Aug 18, 2024
1 parent 2572b49 commit ed832f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actions/copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { globbySync, isDynamicPattern, type Options as GlobbyOptions } from 'glo
import multimatch from 'multimatch';
import { Data, Options } from 'ejs';
import normalize from 'normalize-path';
import File, { isVinyl } from 'vinyl';
import File from 'vinyl';

import type { MemFsEditor } from '../index.js';
import { getCommonPath, globify, render } from '../util.js';
Expand Down Expand Up @@ -127,7 +127,7 @@ export function _copySingle(this: MemFsEditor, from: string, to: string, options
}
}

if (isVinyl(file)) {
if (File.isVinyl(file)) {
this._write(
Object.assign(file.clone({ contents: false, deep: false }), {
contents,
Expand Down

0 comments on commit ed832f0

Please sign in to comment.