@v360-tech/v360-player 1.0.1 → 1.2.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,11 +1,20 @@
1
1
  {
2
2
  "name": "@v360-tech/v360-player",
3
- "version": "1.0.1",
3
+ "version": "1.2.1",
4
4
  "description": "A lightweight, customizable HLS video player web component with built-in controls",
5
5
  "type": "module",
6
- "main": "dist/v360-player.umd.js",
7
- "module": "dist/v360-player.es.js",
6
+ "main": "dist/v360-player.browser.js",
7
+ "module": "dist/v360-player.js",
8
8
  "types": "dist/types/main.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/types/main.d.ts",
12
+ "browser": "./dist/v360-player.browser.js",
13
+ "import": "./dist/v360-player.js",
14
+ "require": "./dist/v360-player.browser.js",
15
+ "default": "./dist/v360-player.browser.js"
16
+ }
17
+ },
9
18
  "files": [
10
19
  "dist"
11
20
  ],
@@ -30,14 +39,20 @@
30
39
  "homepage": "https://github.com/v360tech/pro-movie-player#readme",
31
40
  "scripts": {
32
41
  "dev": "vite",
33
- "build": "tsc && vite build",
42
+ "build": "rm -rf dist && npm run build:es && npm run build:umd && tsc --emitDeclarationOnly",
43
+ "build:es": "BUILD_TARGET=es vite build",
44
+ "build:umd": "BUILD_TARGET=umd vite build --mode production --emptyOutDir false",
34
45
  "preview": "vite preview",
35
46
  "prepare": "npm run build",
36
47
  "test": "echo \"No tests yet\"",
37
- "prepublishOnly": "npm run build"
48
+ "prepublishOnly": "npm run build",
49
+ "release:patch": "npm version patch && npm publish --access public",
50
+ "release:minor": "npm version minor && npm publish --access public",
51
+ "release:major": "npm version major && npm publish --access public"
38
52
  },
39
53
  "devDependencies": {
40
54
  "@types/jquery": "^3.5.33",
55
+ "@types/node": "^24.3.1",
41
56
  "typescript": "~5.8.3",
42
57
  "vite": "^7.1.2"
43
58
  },
@@ -45,4 +60,4 @@
45
60
  "hls.js": "^1.6.11",
46
61
  "jquery": "^3.7.1"
47
62
  }
48
- }
63
+ }