diff --git a/index.html b/index.html
deleted file mode 100644
index e4b78ea..0000000
--- a/index.html
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
- Vite + React + TS
-
-
-
-
-
-
diff --git a/package.json b/package.json
index 5f48104..f718c6e 100644
--- a/package.json
+++ b/package.json
@@ -1,12 +1,26 @@
{
"name": "reactive-localstorage",
- "private": true,
+ "author": "kamranasad7",
"version": "1.0.0",
+ "private": false,
"type": "module",
+ "keywords": ["localstorage", "react", "reactive", "storage"],
+ "main": "./dist/reactive-localstorage.umd.cjs",
+ "module": "./dist/reactive-localstorage.js",
+ "exports": {
+ ".": {
+ "import": "./dist/reactive-localstorage.js",
+ "require": "./dist/reactive-localstorage.umd.cjs"
+ }
+ },
+ "files": [
+ "dist",
+ "README.md",
+ "LICENSE"
+ ],
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
diff --git a/src/main.tsx b/src/main.tsx
deleted file mode 100644
index 0dcbc78..0000000
--- a/src/main.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-import React from 'react'
-import ReactDOM from 'react-dom/client'
-import './index.css'
-
-ReactDOM.createRoot(document.getElementById('root')!).render(
-
- <>>
- ,
-)
diff --git a/vite.config.ts b/vite.config.ts
index 8ecce65..5ca2864 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,18 +1,16 @@
// vite.config.js
import { resolve } from 'path'
-import { fileURLToPath } from 'url';
import { dirname } from 'path';
+import { fileURLToPath } from 'url';
+import { defineConfig } from 'vite'
import dts from 'vite-plugin-dts'
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
-import { defineConfig } from 'vite'
-import react from '@vitejs/plugin-react-swc'
-
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [dts({ include: "lib" }), react()],
+ plugins: [dts({ include: "lib", insertTypesEntry: true, })],
build: {
copyPublicDir: false,
lib: {