import handler from template

This commit is contained in:
Robert Soriano
2022-05-16 08:22:54 -07:00
parent b0eab95b47
commit e9224c3c5e
6 changed files with 78 additions and 45 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "trpc-nuxt",
"type": "module",
"version": "0.0.2",
"version": "0.0.3",
"license": "MIT",
"main": "./dist/module.cjs",
"types": "./dist/types.d.ts",
@@ -10,9 +10,9 @@
"import": "./dist/module.mjs",
"require": "./dist/module.cjs"
},
"./handler": {
"import": "./dist/runtime/handler.mjs",
"types": "./dist/runtime/handler.d.ts"
"./api": {
"import": "./dist/runtime/api.mjs",
"types": "./dist/runtime/api.d.ts"
}
},
"files": [
@@ -20,11 +20,10 @@
"*.d.ts"
],
"scripts": {
"build": "nuxt-module-build",
"prepack": "nuxt-module-build",
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"play": "pnpm run build && nuxi dev playground",
"prepare": "nuxi prepare playground",
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
@@ -32,15 +31,16 @@
"@nuxt/kit": "^3.0.0-rc.3",
"@trpc/server": "^9.23.2",
"fs-extra": "^10.1.0",
"ufo": "^0.8.4",
"zod": "^3.16.0"
"pathe": "^0.3.0",
"ufo": "^0.8.4"
},
"devDependencies": {
"@antfu/eslint-config": "^0.23.1",
"@nuxt/module-builder": "latest",
"@types/fs-extra": "^9.0.13",
"eslint": "latest",
"nuxt": "^3.0.0-rc.3"
"nuxt": "^3.0.0-rc.3",
"zod": "^3.16.0"
},
"eslintConfig": {
"extends": "@antfu"