From 794df0f7b557f02bb911652e751a24391505b3d3 Mon Sep 17 00:00:00 2001 From: Phil Date: Sat, 13 Apr 2024 22:58:59 -0700 Subject: [PATCH] Fix pkg exports --- package.json | 5 +++-- tsconfig.json | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b4c3827..d10cfe0 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,11 @@ { "name": "boring-vault-ui", - "version": "1.0.1", + "version": "1.0.2", "description": "A reusable package to quickly integrate boring vaults onto a UI.", "main": "dist/index.js", + "types": "dist/index.d.ts", "scripts": { - "build": "tsup", + "build": "echo Running tsc && tsc", "test": "jest", "dev": "webpack --mode production && webpack serve --mode development --open" }, diff --git a/tsconfig.json b/tsconfig.json index 1469f8c..2e15217 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,18 +1,20 @@ { "compilerOptions": { + "outDir": "./dist", "target": "es5", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, + "declaration": true, "strict": true, "forceConsistentCasingInFileNames": true, "module": "esnext", "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true, - "noEmit": true, // keep as true if you're only using TypeScript for type-checking + "noEmit": false, // Change this line to false to enable file emission "jsx": "react-jsx" }, "include": ["src/**/*"], // include all files in src