mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 20:19:33 +01:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0bb648bb08 | ||
|
|
ca2344ad86 | ||
|
|
004e655194 |
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user