Skip to content

Commit

Permalink
package json update and files cleaned
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranasad7 committed Nov 14, 2023
1 parent 074d62d commit 21ba66b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 29 deletions.
13 changes: 0 additions & 13 deletions index.html

This file was deleted.

18 changes: 16 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
9 changes: 0 additions & 9 deletions src/main.tsx

This file was deleted.

8 changes: 3 additions & 5 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down

0 comments on commit 21ba66b

Please sign in to comment.