chore(packages): remove dom package

This commit is contained in:
Rahim
2025-12-22 13:53:46 +11:00
parent b5a3f551f0
commit 1cd9e6b7a8
23 changed files with 63 additions and 112 deletions
+4
View File
@@ -14,6 +14,10 @@
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./dom": {
"types": "./dist/dom.d.ts",
"default": "./dist/dom.js"
}
},
"main": "dist/index.js",
+8
View File
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"composite": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"]
},
"include": ["./**/*.ts"]
}
+1 -2
View File
@@ -1,4 +1,3 @@
{
"extends": "./tsconfig.json",
"include": ["src"]
"extends": "./tsconfig.json"
}
+3 -1
View File
@@ -7,5 +7,7 @@
"@/*": ["src/*"]
}
},
"include": ["src"]
"references": [{ "path": "./src/dom" }],
"include": ["src"],
"exclude": ["src/dom"]
}
+1
View File
@@ -3,6 +3,7 @@ import { defineConfig } from 'tsdown';
export default defineConfig({
entry: {
index: './src/index.ts',
dom: './src/dom/index.ts',
},
platform: 'neutral',
format: 'es',
-32
View File
@@ -1,32 +0,0 @@
# @videojs/dom
[![package-badge]][package]
> **⚠️ Alpha - SUBJECT TO CHANGE** Not recommended for production use.
## Overview
Provides foundational tools for working with the DOM including:
- Attribute builders
- Event handling utilities
- Geometry and positioning helpers
- Component interfaces for data attributes and CSS custom properties
- Shared utilities for HTML and React implementations
## Community
If you need help with anything related to Video.js 10, or if you'd like to casually chat with other
members:
- [Join Discord Server][discord]
- [See GitHub Discussions][gh-discussions]
## License
[Apache-2.0](./LICENSE)
[package]: https://www.npmjs.com/package/@videojs/dom
[package-badge]: https://img.shields.io/npm/v/@videojs/dom/next?label=@videojs/dom@next
[discord]: https://discord.gg/JBqHh485uF
[gh-discussions]: https://github.com/videojs/v10/discussions
-43
View File
@@ -1,43 +0,0 @@
{
"name": "@videojs/dom",
"type": "module",
"version": "0.1.0-alpha.1",
"description": "Shared DOM utilities for Video.js",
"license": "Apache-2.0",
"keywords": [
"media",
"player",
"dom",
"videojs"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsdown",
"build:watch": "tsdown --watch --silent",
"dev": "pnpm run build:watch",
"test": "echo \"No tests yet\"",
"clean": "rm -rf dist"
},
"dependencies": {
"@videojs/core": "workspace:*",
"@videojs/utils": "workspace:*"
},
"devDependencies": {
"tsdown": "^0.15.9",
"typescript": "^5.9.3"
},
"publishConfig": {
"access": "public"
}
}
-4
View File
@@ -1,4 +0,0 @@
{
"extends": "./tsconfig.json",
"include": ["src"]
}
-11
View File
@@ -1,11 +0,0 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
},
"include": ["src"]
}
-17
View File
@@ -1,17 +0,0 @@
import { defineConfig } from 'tsdown';
export default defineConfig({
entry: {
index: 'src/index.ts',
},
platform: 'browser',
format: 'es',
sourcemap: true,
clean: true,
alias: {
'@': new URL('./src', import.meta.url).pathname,
},
dts: {
oxc: true,
},
});
+8
View File
@@ -15,6 +15,14 @@
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./dom": {
"types": "./dist/dom.d.ts",
"default": "./dist/dom.js"
},
"./react": {
"types": "./dist/react.d.ts",
"default": "./dist/react.js"
}
},
"main": "dist/index.js",
View File
+8
View File
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"composite": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"]
},
"include": ["./**/*.ts"]
}
View File
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"composite": true,
"jsx": "react-jsx",
"lib": ["ES2020", "DOM", "DOM.Iterable"]
},
"include": ["./**/*.ts", "./**/*.tsx"]
}
+3 -1
View File
@@ -7,5 +7,7 @@
"@/*": ["src/*"]
}
},
"include": ["src"]
"references": [{ "path": "./src/dom" }, { "path": "./src/react" }],
"include": ["src"],
"exclude": ["src/dom", "src/react"]
}
+2
View File
@@ -3,6 +3,8 @@ import { defineConfig } from 'tsdown';
export default defineConfig({
entry: {
index: './src/index.ts',
dom: './src/dom/index.ts',
react: './src/react/index.ts',
},
platform: 'neutral',
format: 'es',
+4
View File
@@ -13,6 +13,10 @@
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./dom": {
"types": "./dist/dom.d.ts",
"default": "./dist/dom.js"
}
},
"main": "dist/index.js",
View File
+8
View File
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"composite": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"]
},
"include": ["./**/*.ts"]
}
+3 -1
View File
@@ -7,5 +7,7 @@
"@/*": ["src/*"]
}
},
"include": ["src"]
"references": [{ "path": "./src/dom" }],
"include": ["src"],
"exclude": ["src/dom"]
}
+1
View File
@@ -3,6 +3,7 @@ import { defineConfig } from 'tsdown';
export default defineConfig({
entry: {
index: './src/index.ts',
dom: './src/dom/index.ts',
},
platform: 'neutral',
format: 'es',