Skip to content

Commit

Permalink
fix: builder.copy is not a function
Browse files Browse the repository at this point in the history
Add @sveltejs/kit/filesystem copy function to builder.
  • Loading branch information
chrsep committed Mar 24, 2021
1 parent 914b591 commit 411972f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/famous-turtles-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Add copy function to Builder.js
9 changes: 9 additions & 0 deletions packages/kit/src/core/adapt/Builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ export default class Builder {
rimraf(path);
}

/**
* @param {string} from
* @param {string} to
* @param {(basename: string) => boolean} filter
*/
copy(from, to, filter = () => true) {
copy(from, to, filter);
}

/** @param {string} dir */
mkdirp(dir) {
mkdirp(dir);
Expand Down

0 comments on commit 411972f

Please sign in to comment.