Compare commits

...

3 Commits

Author SHA1 Message Date
wobsoriano
0bb648bb08 chore: release v0.3.7 2022-12-21 09:15:38 -08:00
wobsoriano
ca2344ad86 add prepublish script 2022-12-21 09:12:53 -08:00
wobsoriano
004e655194 more cleanup 2022-12-20 20:14:58 -08:00
2 changed files with 5 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "trpc-nuxt",
"type": "module",
"version": "0.3.6",
"version": "0.3.7",
"license": "MIT",
"exports": {
"./package.json": "./package.json",
@@ -29,7 +29,8 @@
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"release": "bumpp --commit --push --tag && npm publish",
"prepare": "nuxi prepare playground"
"prepare": "nuxi prepare playground",
"prepublishOnly": "pnpm build"
},
"peerDependencies": {
"@trpc/client": "<10.0.0",

View File

@@ -49,8 +49,8 @@ export default defineNuxtModule<ModuleOptions>({
write: true,
getContents() {
return dedent`
import { createTRPCHandler } from ${JSON.stringify(join(runtimeDir, 'api'))}
import * as functions from '${trpcOptionsPath}'
import { createTRPCHandler } from ${JSON.stringify(join(runtimeDir, 'api'))};
import * as functions from ${JSON.stringify(trpcOptionsPath)};
export default createTRPCHandler({
...functions,