@dhruviii/attack-path 1.0.0 → 1.0.1

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,15 +1,14 @@
1
1
  {
2
2
  "name": "@dhruviii/attack-path",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
- "main": "dist/Attack-path.umd.cjs",
6
- "module": "dist/Attack-path.js",
7
- "types": "dist/Attack-path.d.ts",
5
+ "main": "dist/attack-path.cjs",
6
+ "module": "dist/attack-path.js",
7
+ "types": "./dist/Attack-path.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
- "import": "./dist/Attack-path.js",
11
- "require": "./dist/Attack-path.cjs",
12
- "types": "./dist/Attack-path.d.ts"
10
+ "import": "./dist/attack-path.js",
11
+ "require": "./dist/attack-path.cjs"
13
12
  }
14
13
  },
15
14
  "scripts": {
@@ -18,42 +17,41 @@
18
17
  "lint": "eslint .",
19
18
  "preview": "vite preview",
20
19
  "storybook": "storybook dev -p 6006",
21
- "build-storybook": "storybook build"
20
+ "build-storybook": "storybook build",
21
+ "prepublishOnly": "npm run build"
22
22
  },
23
23
  "peerDependencies": {
24
- "@tailwindcss/vite": "^4.2.1",
25
- "@types/three": "^0.185.1",
26
- "framer-motion": "^12.35.0",
27
- "lucide-react": "^0.577.0",
28
- "react-router-dom": "^7.13.1",
29
- "tailwindcss": "^4.2.1",
30
- "three": "^0.185.1"
24
+ "react": "^18 || ^19",
25
+ "react-dom": "^18 || ^19",
26
+ "three": "^0.185.1",
27
+ "framer-motion": "^12.35.0"
31
28
  },
32
29
  "devDependencies": {
30
+ "@chromatic-com/storybook": "^5.2.1",
33
31
  "@eslint/js": "^9.39.1",
32
+ "@storybook/addon-a11y": "^10.5.3",
33
+ "@storybook/addon-docs": "^10.5.3",
34
+ "@storybook/addon-mcp": "^0.7.0",
35
+ "@storybook/addon-vitest": "^10.5.3",
36
+ "@storybook/react-vite": "^10.5.3",
34
37
  "@types/node": "^24.10.1",
35
38
  "@types/react": "^19.2.7",
36
39
  "@types/react-dom": "^19.2.3",
37
40
  "@vitejs/plugin-react": "^5.1.1",
41
+ "@vitest/browser-playwright": "^4.1.10",
42
+ "@vitest/coverage-v8": "^4.1.10",
38
43
  "eslint": "^9.39.1",
39
44
  "eslint-plugin-react-hooks": "^7.0.1",
40
45
  "eslint-plugin-react-refresh": "^0.4.24",
46
+ "eslint-plugin-storybook": "^10.5.3",
41
47
  "globals": "^16.5.0",
48
+ "playwright": "^1.61.1",
49
+ "rollup-plugin-visualizer": "^7.0.1",
50
+ "storybook": "^10.5.3",
42
51
  "typescript": "~5.9.3",
43
52
  "typescript-eslint": "^8.48.0",
44
53
  "vite": "^7.3.1",
45
54
  "vite-plugin-dts": "^5.0.3",
46
- "storybook": "^10.5.3",
47
- "@storybook/react-vite": "^10.5.3",
48
- "@chromatic-com/storybook": "^5.2.1",
49
- "@storybook/addon-vitest": "^10.5.3",
50
- "@storybook/addon-a11y": "^10.5.3",
51
- "@storybook/addon-docs": "^10.5.3",
52
- "@storybook/addon-mcp": "^0.7.0",
53
- "eslint-plugin-storybook": "^10.5.3",
54
- "vitest": "^4.1.10",
55
- "playwright": "^1.61.1",
56
- "@vitest/browser-playwright": "^4.1.10",
57
- "@vitest/coverage-v8": "^4.1.10"
55
+ "vitest": "^4.1.10"
58
56
  }
59
- }
57
+ }
package/vite.config.ts CHANGED
@@ -8,10 +8,18 @@ import { fileURLToPath } from 'node:url';
8
8
  import { storybookTest } from '@storybook/addon-vitest/vitest-plugin';
9
9
  import { playwright } from '@vitest/browser-playwright';
10
10
  import peerDependencies from './package.json'
11
+ import {visualizer} from 'rollup-plugin-visualizer'
11
12
  const dirname = typeof __dirname !== 'undefined' ? __dirname : path.dirname(fileURLToPath(import.meta.url));
12
13
 
13
14
  export default defineConfig({
14
- plugins: [react(), dts({exclude: ["**/*.stories.ts","**/*.test.ts"]}), // Automatically generates your TypeScript types
15
+ plugins: [react(), dts({exclude: ["**/*.stories.ts","**/*.test.ts"]}),
16
+ visualizer({
17
+ open: true,
18
+ gzipSize: true,
19
+ brotliSize: true,
20
+ filename: 'dist/stats.html',
21
+ }),
22
+ // Automatically generates your TypeScript types
15
23
  ],
16
24
  build: {
17
25
  lib: {
@@ -25,6 +33,7 @@ export default defineConfig({
25
33
  'react-dom': 'react-dom',
26
34
  'react/jsx-runtime': 'react/jsx-runtime'
27
35
  }},
36
+
28
37
  // Do not bundle React to avoid version collisions for consumers
29
38
  // external: ['react', 'react-dom', 'react/jsx-runtime']
30
39
  }