add root tsconfig

This commit is contained in:
Robert Soriano
2022-10-29 23:09:44 -07:00
parent 2b5daf54fa
commit 4e637a4ec3
8 changed files with 727 additions and 539 deletions

View File

@@ -1 +1 @@
export * from './dist/client'
export * from './dist/client/index'

View File

@@ -3,15 +3,14 @@
"version": "0.4.0-beta.1",
"packageManager": "pnpm@7.5.0",
"license": "MIT",
"sideEffects": false,
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
},
"./client": {
"types": "./dist/client.d.ts",
"require": "./dist/client.js",
"import": "./dist/client.mjs"
}
@@ -21,7 +20,7 @@
"types": "./dist/index.d.ts",
"files": [
"dist",
"*.d.ts"
"client.d.ts"
],
"scripts": {
"prepublishOnly": "nr build",
@@ -46,8 +45,8 @@
"@trpc/server": "10.0.0-rc.1",
"bumpp": "^8.2.1",
"nuxt": "3.0.0-rc.12",
"tsup": "^6.3.0",
"typescript": "4.5.4"
"tsup": "6.0.1",
"typescript": "^4.7.4"
},
"eslintConfig": {
"extends": "@antfu",

View File

@@ -1,16 +1,3 @@
{
"compilerOptions": {
"target": "es2020",
"module": "esnext",
"strict": true,
"esModuleInterop": true,
"moduleResolution": "node",
"skipLibCheck": true,
"noUnusedLocals": true,
"noImplicitAny": true,
"allowJs": true,
"noEmit": true,
"outDir": "dist",
"resolveJsonModule": true
}
"extends": "../../tsconfig.json"
}

View File

@@ -1,7 +1,7 @@
import { defineConfig } from 'tsup'
export default defineConfig({
entry: ['src/index.ts', 'src/client.ts'],
entry: ['src/index.ts', 'src/client/index.ts'],
format: ['cjs', 'esm'],
splitting: false,
clean: true,

1222
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

16
tsconfig.json Normal file
View File

@@ -0,0 +1,16 @@
{
"compilerOptions": {
"target": "es2020",
"module": "esnext",
"strict": true,
"esModuleInterop": true,
"moduleResolution": "node",
"skipLibCheck": true,
"noUnusedLocals": true,
"noImplicitAny": true,
"allowJs": true,
"noEmit": true,
"outDir": "dist",
"resolveJsonModule": true
}
}