Skip to content

Commit 5975fed

Browse files
authored
chore: use copy builder from unbuild to copy type definitions (#125)
* chore: use `copy` builder from `unbuild` to copy type definitions Fixes #117. * fix linter
1 parent 2db8037 commit 5975fed

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

build.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { defineBuildConfig } from 'unbuild'
2+
3+
export default defineBuildConfig({
4+
entries: [
5+
{
6+
builder: 'copy',
7+
input: 'src',
8+
pattern: 'graphql-server.d.ts',
9+
outDir: 'dist',
10+
},
11+
],
12+
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"dist"
1717
],
1818
"scripts": {
19-
"prepack": "nuxi prepare playground && nuxt-module-build build && shx cp src/graphql-server.d.ts dist",
19+
"prepack": "nuxi prepare playground && nuxt-module-build build",
2020
"build": "pnpm prepack",
2121
"dev": "nuxi dev playground",
2222
"dev:build": "nuxi build playground",

0 commit comments

Comments
 (0)