frontend-hamroun 1.1.14 → 1.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "frontend-hamroun",
3
- "version": "1.1.14",
3
+ "version": "1.1.16",
4
4
  "description": "A lightweight frontend framework with hooks and virtual DOM",
5
5
  "type": "module",
6
- "main": "./dist/index.d.ts",
7
- "module": "./dist/index.d.ts",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.mjs",
8
8
  "types": "./dist/index.d.ts",
9
9
  "files": [
10
10
  "dist",
@@ -16,7 +16,7 @@
16
16
  "exports": {
17
17
  ".": {
18
18
  "types": "./dist/index.d.ts",
19
- "import": "./dist/index.es.js",
19
+ "import": "./dist/index.mjs",
20
20
  "require": "./dist/index.js",
21
21
  "default": "./dist/index.es.js"
22
22
  }
@@ -27,10 +27,11 @@
27
27
  },
28
28
  "scripts": {
29
29
  "build": "vite build && tsc --emitDeclarationOnly",
30
- "clean": "node -e \"if(require('fs').existsSync('dist')) require('fs').rmSync('dist',{recursive:true})\"",
31
- "prepublishOnly": "npm run clean && npm run build",
30
+ "clean": "rimraf dist",
31
+ "prepublishOnly": "npm run build",
32
32
  "dev": "vite",
33
- "test": "jest"
33
+ "test": "jest",
34
+ "prepare": "npm run build"
34
35
  },
35
36
  "keywords": [
36
37
  "frontend",
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "my-app",
3
- "version": "1.0.0",
3
+ "private": true,
4
+ "version": "0.0.0",
4
5
  "type": "module",
5
6
  "scripts": {
6
7
  "dev": "vite",
7
- "build": "vite build",
8
+ "build": "tsc && vite build",
8
9
  "preview": "vite preview"
9
10
  },
10
11
  "dependencies": {
11
- "frontend-hamroun": "^1.1.11"
12
+ "frontend-hamroun": "latest"
12
13
  },
13
14
  "devDependencies": {
14
15
  "typescript": "^5.0.0",
@@ -1,6 +1,12 @@
1
1
  import { defineConfig } from 'vite';
2
2
 
3
3
  export default defineConfig({
4
+ resolve: {
5
+ dedupe: ['frontend-hamroun']
6
+ },
7
+ optimizeDeps: {
8
+ include: ['frontend-hamroun']
9
+ },
4
10
  esbuild: {
5
11
  jsxFactory: 'jsx',
6
12
  jsxFragment: 'Fragment'