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 f82762e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
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'),
)
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@vitest/coverage-v8": "^1.2.2",
"bun": "^1.0.28",
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
"hono": "^4",
"picocolors": "^1.0.0",
"rimraf": "^5.0.5",
Expand Down
4 changes: 3 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f82762e

Please sign in to comment.