Skip to content

Commit

Permalink
chore: copy templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Feb 20, 2024
1 parent 5754a96 commit 554c583
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
coverage
_lib
node_modules
create-farc/templates
tsconfig.*.tsbuildinfo
tsconfig.tsbuildinfo
.vercel
9 changes: 9 additions & 0 deletions .scripts/postbuild.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { dirname, relative, resolve } from 'node:path'
import glob from 'fast-glob'
import { copy } from 'fs-extra'

await rewriteHonoJsx()
copyTemplates()

async function rewriteHonoJsx() {
const files = await glob('./src/_lib/**/*.js')
Expand All @@ -25,3 +27,10 @@ async function rewriteHonoJsx() {
)
}
}

function copyTemplates() {
copy(
resolve(import.meta.dirname, '../templates'),
resolve(import.meta.dirname, '../create-farc/templates'),
)
}

0 comments on commit 554c583

Please sign in to comment.